Sha256: 6abaf2ed5cab30d730bf682c5f87d2e970f4835d6f2bc8f997024e8dae388e09
Contents?: true
Size: 1.37 KB
Versions: 7
Compression:
Stored size: 1.37 KB
Contents
module Riddle class Configuration class RealtimeIndex < Riddle::Configuration::Section include Riddle::Configuration::IndexSettings def self.settings Riddle::Configuration::IndexSettings.settings + [ :rt_mem_limit, :rt_field, :rt_attr_uint, :rt_attr_bigint, :rt_attr_float, :rt_attr_timestamp, :rt_attr_string, :rt_attr_multi, :rt_attr_multi_64, :rt_attr_bool, :rt_attr_json ] end attr_accessor :rt_mem_limit, :rt_field, :rt_attr_uint, :rt_attr_bigint, :rt_attr_float, :rt_attr_timestamp, :rt_attr_string, :rt_attr_multi, :rt_attr_multi_64, :rt_attr_bool, :rt_attr_json def initialize(name) @name = name @rt_field = [] @rt_attr_uint = [] @rt_attr_bigint = [] @rt_attr_float = [] @rt_attr_timestamp = [] @rt_attr_string = [] @rt_attr_multi = [] @rt_attr_multi_64 = [] @rt_attr_bool = [] @rt_attr_json = [] initialize_settings end def type "rt" end def valid? !(@name.nil? || @path.nil?) end def render raise ConfigurationError unless valid? ( ["index #{name}", "{"] + settings_body + ["}", ""] ).join("\n") end end end end
Version data entries
7 entries across 7 versions & 1 rubygems