class Xapian::Query

Refer to the Xapian::Query C++ API documentation for methods not specific to Ruby.

Public Instance Methods

terms(&block) click to toggle source
# File xapian.rb, line 176
def terms(&block)
  # termfreq is not supported by TermIterators from Queries
  Xapian._safelyIterate(self._dangerous_terms_begin(),
                        self._dangerous_terms_end(),
                        lambda {
                          |item| Xapian::Term.new(item.term, item.wdf)
                        },
                        &block)
end
unique_terms(&block) click to toggle source
# File xapian.rb, line 186
def unique_terms(&block)
  # termfreq is not supported by TermIterators from Queries
  Xapian._safelyIterate(self._dangerous_unique_terms_begin(),
                        self._dangerous_unique_terms_end(),
                        lambda {
                          |item| Xapian::Term.new(item.term, item.wdf)
                        },
                        &block)
end