class Xapian::Query - RDoc Documentation
Description: class Xapian::Query: xapian. classXapian_1_1Query.
Keywords: ruby,class,Xapian::Query

# class Xapian::Query

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

### Public Instance Methods

terms (&block)
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)
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