Module: Riddle::Configuration::IndexSettings
- Included in:
- Index, RealtimeIndex, TemplateIndex
- Defined in:
- lib/riddle/configuration/index_settings.rb
Instance Attribute Summary collapse
-
#bigram_freq_words ⇒ Object
Returns the value of attribute bigram_freq_words.
-
#bigram_index ⇒ Object
Returns the value of attribute bigram_index.
-
#blend_chars ⇒ Object
Returns the value of attribute blend_chars.
-
#blend_mode ⇒ Object
Returns the value of attribute blend_mode.
-
#charset_dictpath ⇒ Object
Returns the value of attribute charset_dictpath.
-
#charset_table ⇒ Object
Returns the value of attribute charset_table.
-
#charset_type ⇒ Object
Returns the value of attribute charset_type.
-
#dict ⇒ Object
Returns the value of attribute dict.
-
#docinfo ⇒ Object
Returns the value of attribute docinfo.
-
#enable_star ⇒ Object
Returns the value of attribute enable_star.
-
#exception_files ⇒ Object
Returns the value of attribute exception_files.
-
#expand_keywords ⇒ Object
Returns the value of attribute expand_keywords.
-
#global_idf ⇒ Object
Returns the value of attribute global_idf.
-
#ha_strategy ⇒ Object
Returns the value of attribute ha_strategy.
-
#hitless_words ⇒ Object
Returns the value of attribute hitless_words.
-
#html_index_attrs ⇒ Object
Returns the value of attribute html_index_attrs.
-
#html_remove_element_tags ⇒ Object
Returns the value of attribute html_remove_element_tags.
-
#html_strip ⇒ Object
Returns the value of attribute html_strip.
-
#ignore_characters ⇒ Object
Returns the value of attribute ignore_characters.
-
#index_exact_words ⇒ Object
Returns the value of attribute index_exact_words.
-
#index_field_lengths ⇒ Object
Returns the value of attribute index_field_lengths.
-
#index_sp ⇒ Object
Returns the value of attribute index_sp.
-
#index_zones ⇒ Object
Returns the value of attribute index_zones.
-
#infix_field_names ⇒ Object
Returns the value of attribute infix_field_names.
-
#inplace_docinfo_gap ⇒ Object
Returns the value of attribute inplace_docinfo_gap.
-
#inplace_enable ⇒ Object
Returns the value of attribute inplace_enable.
-
#inplace_hit_gap ⇒ Object
Returns the value of attribute inplace_hit_gap.
-
#inplace_reloc_factor ⇒ Object
Returns the value of attribute inplace_reloc_factor.
-
#inplace_write_factor ⇒ Object
Returns the value of attribute inplace_write_factor.
-
#min_infix_len ⇒ Object
Returns the value of attribute min_infix_len.
-
#min_prefix_len ⇒ Object
Returns the value of attribute min_prefix_len.
-
#min_stemming_len ⇒ Object
Returns the value of attribute min_stemming_len.
-
#min_word_len ⇒ Object
Returns the value of attribute min_word_len.
-
#mlock ⇒ Object
Returns the value of attribute mlock.
-
#morphologies ⇒ Object
Returns the value of attribute morphologies.
-
#name ⇒ Object
Returns the value of attribute name.
-
#ngram_characters ⇒ Object
Returns the value of attribute ngram_characters.
-
#ngram_len ⇒ Object
Returns the value of attribute ngram_len.
-
#ondisk_attrs ⇒ Object
Returns the value of attribute ondisk_attrs.
-
#ondisk_dict ⇒ Object
Returns the value of attribute ondisk_dict.
-
#overshort_step ⇒ Object
Returns the value of attribute overshort_step.
-
#path ⇒ Object
Returns the value of attribute path.
-
#phrase_boundaries ⇒ Object
Returns the value of attribute phrase_boundaries.
-
#phrase_boundary_step ⇒ Object
Returns the value of attribute phrase_boundary_step.
-
#prefix_field_names ⇒ Object
Returns the value of attribute prefix_field_names.
-
#preopen ⇒ Object
Returns the value of attribute preopen.
-
#regexp_filter ⇒ Object
Returns the value of attribute regexp_filter.
-
#rlp_context ⇒ Object
Returns the value of attribute rlp_context.
-
#stopword_files ⇒ Object
Returns the value of attribute stopword_files.
-
#stopword_step ⇒ Object
Returns the value of attribute stopword_step.
-
#stopwords_unstemmed ⇒ Object
Returns the value of attribute stopwords_unstemmed.
-
#type ⇒ Object
Returns the value of attribute type.
-
#wordform_files ⇒ Object
Returns the value of attribute wordform_files.
Class Method Summary collapse
Instance Method Summary collapse
- #exceptions ⇒ Object
- #exceptions=(exceptions) ⇒ Object
- #html_remove_elements ⇒ Object
- #html_remove_elements=(html_remove_elements) ⇒ Object
- #ignore_chars ⇒ Object
- #ignore_chars=(ignore_chars) ⇒ Object
- #infix_fields ⇒ Object
- #infix_fields=(fields) ⇒ Object
- #initialize_settings ⇒ Object
- #morphology ⇒ Object
- #morphology=(morphology) ⇒ Object
- #ngram_chars ⇒ Object
- #ngram_chars=(ngram_chars) ⇒ Object
- #phrase_boundary ⇒ Object
- #phrase_boundary=(phrase_boundary) ⇒ Object
- #prefix_fields ⇒ Object
- #prefix_fields=(fields) ⇒ Object
- #stopwords ⇒ Object
- #stopwords=(stopwords) ⇒ Object
- #wordforms ⇒ Object
- #wordforms=(wordforms) ⇒ Object
Instance Attribute Details
#bigram_freq_words ⇒ Object
Returns the value of attribute bigram_freq_words.
25 26 27 |
# File 'lib/riddle/configuration/index_settings.rb', line 25 def bigram_freq_words @bigram_freq_words end |
#bigram_index ⇒ Object
Returns the value of attribute bigram_index.
25 26 27 |
# File 'lib/riddle/configuration/index_settings.rb', line 25 def bigram_index @bigram_index end |
#blend_chars ⇒ Object
Returns the value of attribute blend_chars.
25 26 27 |
# File 'lib/riddle/configuration/index_settings.rb', line 25 def blend_chars @blend_chars end |
#blend_mode ⇒ Object
Returns the value of attribute blend_mode.
25 26 27 |
# File 'lib/riddle/configuration/index_settings.rb', line 25 def blend_mode @blend_mode end |
#charset_dictpath ⇒ Object
Returns the value of attribute charset_dictpath.
25 26 27 |
# File 'lib/riddle/configuration/index_settings.rb', line 25 def charset_dictpath @charset_dictpath end |
#charset_table ⇒ Object
Returns the value of attribute charset_table.
25 26 27 |
# File 'lib/riddle/configuration/index_settings.rb', line 25 def charset_table @charset_table end |
#charset_type ⇒ Object
Returns the value of attribute charset_type.
25 26 27 |
# File 'lib/riddle/configuration/index_settings.rb', line 25 def charset_type @charset_type end |
#dict ⇒ Object
Returns the value of attribute dict.
25 26 27 |
# File 'lib/riddle/configuration/index_settings.rb', line 25 def dict @dict end |
#docinfo ⇒ Object
Returns the value of attribute docinfo.
25 26 27 |
# File 'lib/riddle/configuration/index_settings.rb', line 25 def docinfo @docinfo end |
#enable_star ⇒ Object
Returns the value of attribute enable_star.
25 26 27 |
# File 'lib/riddle/configuration/index_settings.rb', line 25 def enable_star @enable_star end |
#exception_files ⇒ Object
Returns the value of attribute exception_files.
25 26 27 |
# File 'lib/riddle/configuration/index_settings.rb', line 25 def exception_files @exception_files end |
#expand_keywords ⇒ Object
Returns the value of attribute expand_keywords.
25 26 27 |
# File 'lib/riddle/configuration/index_settings.rb', line 25 def @expand_keywords end |
#global_idf ⇒ Object
Returns the value of attribute global_idf.
25 26 27 |
# File 'lib/riddle/configuration/index_settings.rb', line 25 def global_idf @global_idf end |
#ha_strategy ⇒ Object
Returns the value of attribute ha_strategy.
25 26 27 |
# File 'lib/riddle/configuration/index_settings.rb', line 25 def ha_strategy @ha_strategy end |
#hitless_words ⇒ Object
Returns the value of attribute hitless_words.
25 26 27 |
# File 'lib/riddle/configuration/index_settings.rb', line 25 def hitless_words @hitless_words end |
#html_index_attrs ⇒ Object
Returns the value of attribute html_index_attrs.
25 26 27 |
# File 'lib/riddle/configuration/index_settings.rb', line 25 def html_index_attrs @html_index_attrs end |
#html_remove_element_tags ⇒ Object
Returns the value of attribute html_remove_element_tags.
25 26 27 |
# File 'lib/riddle/configuration/index_settings.rb', line 25 def @html_remove_element_tags end |
#html_strip ⇒ Object
Returns the value of attribute html_strip.
25 26 27 |
# File 'lib/riddle/configuration/index_settings.rb', line 25 def html_strip @html_strip end |
#ignore_characters ⇒ Object
Returns the value of attribute ignore_characters.
25 26 27 |
# File 'lib/riddle/configuration/index_settings.rb', line 25 def ignore_characters @ignore_characters end |
#index_exact_words ⇒ Object
Returns the value of attribute index_exact_words.
25 26 27 |
# File 'lib/riddle/configuration/index_settings.rb', line 25 def index_exact_words @index_exact_words end |
#index_field_lengths ⇒ Object
Returns the value of attribute index_field_lengths.
25 26 27 |
# File 'lib/riddle/configuration/index_settings.rb', line 25 def index_field_lengths @index_field_lengths end |
#index_sp ⇒ Object
Returns the value of attribute index_sp.
25 26 27 |
# File 'lib/riddle/configuration/index_settings.rb', line 25 def index_sp @index_sp end |
#index_zones ⇒ Object
Returns the value of attribute index_zones.
25 26 27 |
# File 'lib/riddle/configuration/index_settings.rb', line 25 def index_zones @index_zones end |
#infix_field_names ⇒ Object
Returns the value of attribute infix_field_names.
25 26 27 |
# File 'lib/riddle/configuration/index_settings.rb', line 25 def infix_field_names @infix_field_names end |
#inplace_docinfo_gap ⇒ Object
Returns the value of attribute inplace_docinfo_gap.
25 26 27 |
# File 'lib/riddle/configuration/index_settings.rb', line 25 def inplace_docinfo_gap @inplace_docinfo_gap end |
#inplace_enable ⇒ Object
Returns the value of attribute inplace_enable.
25 26 27 |
# File 'lib/riddle/configuration/index_settings.rb', line 25 def inplace_enable @inplace_enable end |
#inplace_hit_gap ⇒ Object
Returns the value of attribute inplace_hit_gap.
25 26 27 |
# File 'lib/riddle/configuration/index_settings.rb', line 25 def inplace_hit_gap @inplace_hit_gap end |
#inplace_reloc_factor ⇒ Object
Returns the value of attribute inplace_reloc_factor.
25 26 27 |
# File 'lib/riddle/configuration/index_settings.rb', line 25 def inplace_reloc_factor @inplace_reloc_factor end |
#inplace_write_factor ⇒ Object
Returns the value of attribute inplace_write_factor.
25 26 27 |
# File 'lib/riddle/configuration/index_settings.rb', line 25 def inplace_write_factor @inplace_write_factor end |
#min_infix_len ⇒ Object
Returns the value of attribute min_infix_len.
25 26 27 |
# File 'lib/riddle/configuration/index_settings.rb', line 25 def min_infix_len @min_infix_len end |
#min_prefix_len ⇒ Object
Returns the value of attribute min_prefix_len.
25 26 27 |
# File 'lib/riddle/configuration/index_settings.rb', line 25 def min_prefix_len @min_prefix_len end |
#min_stemming_len ⇒ Object
Returns the value of attribute min_stemming_len.
25 26 27 |
# File 'lib/riddle/configuration/index_settings.rb', line 25 def min_stemming_len @min_stemming_len end |
#min_word_len ⇒ Object
Returns the value of attribute min_word_len.
25 26 27 |
# File 'lib/riddle/configuration/index_settings.rb', line 25 def min_word_len @min_word_len end |
#mlock ⇒ Object
Returns the value of attribute mlock.
25 26 27 |
# File 'lib/riddle/configuration/index_settings.rb', line 25 def mlock @mlock end |
#morphologies ⇒ Object
Returns the value of attribute morphologies.
25 26 27 |
# File 'lib/riddle/configuration/index_settings.rb', line 25 def morphologies @morphologies end |
#name ⇒ Object
Returns the value of attribute name.
25 26 27 |
# File 'lib/riddle/configuration/index_settings.rb', line 25 def name @name end |
#ngram_characters ⇒ Object
Returns the value of attribute ngram_characters.
25 26 27 |
# File 'lib/riddle/configuration/index_settings.rb', line 25 def ngram_characters @ngram_characters end |
#ngram_len ⇒ Object
Returns the value of attribute ngram_len.
25 26 27 |
# File 'lib/riddle/configuration/index_settings.rb', line 25 def ngram_len @ngram_len end |
#ondisk_attrs ⇒ Object
Returns the value of attribute ondisk_attrs.
25 26 27 |
# File 'lib/riddle/configuration/index_settings.rb', line 25 def ondisk_attrs @ondisk_attrs end |
#ondisk_dict ⇒ Object
Returns the value of attribute ondisk_dict.
25 26 27 |
# File 'lib/riddle/configuration/index_settings.rb', line 25 def ondisk_dict @ondisk_dict end |
#overshort_step ⇒ Object
Returns the value of attribute overshort_step.
25 26 27 |
# File 'lib/riddle/configuration/index_settings.rb', line 25 def overshort_step @overshort_step end |
#path ⇒ Object
Returns the value of attribute path.
25 26 27 |
# File 'lib/riddle/configuration/index_settings.rb', line 25 def path @path end |
#phrase_boundaries ⇒ Object
Returns the value of attribute phrase_boundaries.
25 26 27 |
# File 'lib/riddle/configuration/index_settings.rb', line 25 def phrase_boundaries @phrase_boundaries end |
#phrase_boundary_step ⇒ Object
Returns the value of attribute phrase_boundary_step.
25 26 27 |
# File 'lib/riddle/configuration/index_settings.rb', line 25 def phrase_boundary_step @phrase_boundary_step end |
#prefix_field_names ⇒ Object
Returns the value of attribute prefix_field_names.
25 26 27 |
# File 'lib/riddle/configuration/index_settings.rb', line 25 def prefix_field_names @prefix_field_names end |
#preopen ⇒ Object
Returns the value of attribute preopen.
25 26 27 |
# File 'lib/riddle/configuration/index_settings.rb', line 25 def preopen @preopen end |
#regexp_filter ⇒ Object
Returns the value of attribute regexp_filter.
25 26 27 |
# File 'lib/riddle/configuration/index_settings.rb', line 25 def regexp_filter @regexp_filter end |
#rlp_context ⇒ Object
Returns the value of attribute rlp_context.
25 26 27 |
# File 'lib/riddle/configuration/index_settings.rb', line 25 def rlp_context @rlp_context end |
#stopword_files ⇒ Object
Returns the value of attribute stopword_files.
25 26 27 |
# File 'lib/riddle/configuration/index_settings.rb', line 25 def stopword_files @stopword_files end |
#stopword_step ⇒ Object
Returns the value of attribute stopword_step.
25 26 27 |
# File 'lib/riddle/configuration/index_settings.rb', line 25 def stopword_step @stopword_step end |
#stopwords_unstemmed ⇒ Object
Returns the value of attribute stopwords_unstemmed.
25 26 27 |
# File 'lib/riddle/configuration/index_settings.rb', line 25 def stopwords_unstemmed @stopwords_unstemmed end |
#type ⇒ Object
Returns the value of attribute type.
25 26 27 |
# File 'lib/riddle/configuration/index_settings.rb', line 25 def type @type end |
#wordform_files ⇒ Object
Returns the value of attribute wordform_files.
25 26 27 |
# File 'lib/riddle/configuration/index_settings.rb', line 25 def wordform_files @wordform_files end |
Class Method Details
.settings ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/riddle/configuration/index_settings.rb', line 6 def self.settings [ :type, :path, :docinfo, :mlock, :morphology, :dict, :index_sp, :index_zones, :min_stemming_len, :stopwords, :wordforms, :exceptions, :min_word_len, :charset_dictpath, :charset_type, :charset_table, :ignore_chars, :min_prefix_len, :min_infix_len, :prefix_fields, :infix_fields, :enable_star, :expand_keywords, :ngram_len, :ngram_chars, :phrase_boundary, :phrase_boundary_step, :blend_chars, :blend_mode, :html_strip, :html_index_attrs, :html_remove_elements, :preopen, :ondisk_dict, :inplace_enable, :inplace_hit_gap, :inplace_docinfo_gap, :inplace_reloc_factor, :inplace_write_factor, :index_exact_words, :overshort_step, :stopword_step, :hitless_words, :ha_strategy, :bigram_freq_words, :bigram_index, :index_field_lengths, :regexp_filter, :stopwords_unstemmed, :global_idf, :rlp_context, :ondisk_attrs ] end |
Instance Method Details
#exceptions ⇒ Object
78 79 80 |
# File 'lib/riddle/configuration/index_settings.rb', line 78 def exceptions nil_join @exception_files, " " end |
#exceptions=(exceptions) ⇒ Object
82 83 84 |
# File 'lib/riddle/configuration/index_settings.rb', line 82 def exceptions=(exceptions) @exception_files = nil_split exceptions, ' ' end |
#html_remove_elements ⇒ Object
134 135 136 |
# File 'lib/riddle/configuration/index_settings.rb', line 134 def html_remove_elements nil_join @html_remove_element_tags, ", " end |
#html_remove_elements=(html_remove_elements) ⇒ Object
138 139 140 |
# File 'lib/riddle/configuration/index_settings.rb', line 138 def html_remove_elements=(html_remove_elements) @html_remove_element_tags = nil_split html_remove_elements, /,\s?/ end |
#ignore_chars ⇒ Object
86 87 88 |
# File 'lib/riddle/configuration/index_settings.rb', line 86 def ignore_chars nil_join @ignore_characters, ", " end |
#ignore_chars=(ignore_chars) ⇒ Object
90 91 92 |
# File 'lib/riddle/configuration/index_settings.rb', line 90 def ignore_chars=(ignore_chars) @ignore_characters = nil_split ignore_chars, /,\s?/ end |
#infix_fields ⇒ Object
106 107 108 |
# File 'lib/riddle/configuration/index_settings.rb', line 106 def infix_fields nil_join @infix_field_names, ", " end |
#infix_fields=(fields) ⇒ Object
110 111 112 113 114 115 116 |
# File 'lib/riddle/configuration/index_settings.rb', line 110 def infix_fields=(fields) if fields.is_a?(Array) @infix_field_names = fields else @infix_field_names = fields.split(/,\s*/) end end |
#initialize_settings ⇒ Object
40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/riddle/configuration/index_settings.rb', line 40 def initialize_settings @morphologies = [] @stopword_files = [] @wordform_files = [] @exception_files = [] @ignore_characters = [] @prefix_field_names = [] @infix_field_names = [] @ngram_characters = [] @phrase_boundaries = [] @html_remove_element_tags = [] @regexp_filter = [] end |
#morphology ⇒ Object
54 55 56 |
# File 'lib/riddle/configuration/index_settings.rb', line 54 def morphology nil_join @morphologies, ", " end |
#morphology=(morphology) ⇒ Object
58 59 60 |
# File 'lib/riddle/configuration/index_settings.rb', line 58 def morphology=(morphology) @morphologies = nil_split morphology, /,\s?/ end |
#ngram_chars ⇒ Object
118 119 120 |
# File 'lib/riddle/configuration/index_settings.rb', line 118 def ngram_chars nil_join @ngram_characters, ", " end |
#ngram_chars=(ngram_chars) ⇒ Object
122 123 124 |
# File 'lib/riddle/configuration/index_settings.rb', line 122 def ngram_chars=(ngram_chars) @ngram_characters = nil_split ngram_chars, /,\s?/ end |
#phrase_boundary ⇒ Object
126 127 128 |
# File 'lib/riddle/configuration/index_settings.rb', line 126 def phrase_boundary nil_join @phrase_boundaries, ", " end |
#phrase_boundary=(phrase_boundary) ⇒ Object
130 131 132 |
# File 'lib/riddle/configuration/index_settings.rb', line 130 def phrase_boundary=(phrase_boundary) @phrase_boundaries = nil_split phrase_boundary, /,\s?/ end |
#prefix_fields ⇒ Object
94 95 96 |
# File 'lib/riddle/configuration/index_settings.rb', line 94 def prefix_fields nil_join @prefix_field_names, ", " end |
#prefix_fields=(fields) ⇒ Object
98 99 100 101 102 103 104 |
# File 'lib/riddle/configuration/index_settings.rb', line 98 def prefix_fields=(fields) if fields.is_a?(Array) @prefix_field_names = fields else @prefix_field_names = fields.split(/,\s*/) end end |
#stopwords ⇒ Object
62 63 64 |
# File 'lib/riddle/configuration/index_settings.rb', line 62 def stopwords nil_join @stopword_files, " " end |
#stopwords=(stopwords) ⇒ Object
66 67 68 |
# File 'lib/riddle/configuration/index_settings.rb', line 66 def stopwords=(stopwords) @stopword_files = nil_split stopwords, ' ' end |
#wordforms ⇒ Object
70 71 72 |
# File 'lib/riddle/configuration/index_settings.rb', line 70 def wordforms nil_join @wordform_files, " " end |
#wordforms=(wordforms) ⇒ Object
74 75 76 |
# File 'lib/riddle/configuration/index_settings.rb', line 74 def wordforms=(wordforms) @wordform_files = nil_split wordforms, ' ' end |