class Riddle::Configuration::Indexer

Public Class Methods

settings() click to toggle source
# File lib/riddle/configuration/indexer.rb, line 4
def self.settings
  [
    :mem_limit, :max_iops, :max_iosize, :max_xmlpipe2_field,
    :write_buffer, :max_file_field_buffer, :on_file_field_error,
    :lemmatizer_base, :lemmatizer_cache, :json_autoconv_numbers,
    :on_json_attr_error
  ]
end

Public Instance Methods

render() click to toggle source
# File lib/riddle/configuration/indexer.rb, line 15
def render
  raise ConfigurationError unless valid?

  (
    ["indexer", "{"] +
    settings_body +
    ["}", ""]
  ).join("\n")
end