search for: _index_dir

Displaying 1 result from an estimated 1 matches for "_index_dir".

Did you mean: index_dir
2006 Oct 05
4
search results autocompletion
...terms.each{|term| suggestion = Suggestion.new suggestion.term = term SUGGESTION_INDEX << suggestion.to_doc } } SUGGESTION_INDEX.optimize end def self.all_terms(klass) reader = Index::IndexReader.new(Object.const_get(klass.name.upcase + "_INDEX_DIR")) terms = [] begin reader.field_names.each {|field_name| term_enum = reader.terms(field_name) begin term = term_enum.term() if !term.nil? if klass::SUGGESTIONABLE_FIELDS.include?(field_name) terms << term end...