# File lib/sup/xapian_index.rb, line 598 def add_term term if term.length <= Redwood::XapianIndex::MAX_TERM_LENGTH old_add_term term, 0 else warn "dropping excessively long term #{term}" end end
# File lib/sup/xapian_index.rb, line 582 def entry Marshal.load data end
# File lib/sup/xapian_index.rb, line 586 def entry=(x) self.data = Marshal.dump x end
# File lib/sup/xapian_index.rb, line 590 def index_text text, prefix, weight=1 term_generator = Xapian::TermGenerator.new term_generator.stemmer = Xapian::Stem.new(Redwood::XapianIndex::STEM_LANGUAGE) term_generator.document = self term_generator.index_text text, weight, prefix end