class Xapian::Query - RDoc Documentation
Description: class Xapian::Query: Xapian_1_1Query. Ruby.
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 175
    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 185
    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