Sha256: 6395086e862b20f6bb6c778a51f12e1a1093a30f5aaa91865051e1b85f102802

Contents?: true

Size: 697 Bytes

Versions: 1

Compression:

Stored size: 697 Bytes

Contents

module Riddle
  class Configuration
    class Indexer < Riddle::Configuration::Section
      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, :rlp_root, :rlp_environment,
          :rlp_max_batch_size, :rlp_max_batch_docs
        ]
      end

      attr_accessor *self.settings

      def render
        raise ConfigurationError unless valid?

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
riddle-1.5.10 lib/riddle/configuration/indexer.rb