class Xapian::ValueCountMatchSpy - RDoc Documentation
Description: class Xapian::ValueCountMatchSpy: xapian. classXapian_1_1ValueCountMatchSpy.
Keywords: ruby,class,Xapian::ValueCountMatchSpy

# class Xapian::ValueCountMatchSpy

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

### Public Instance Methods

top_values (maxvalues, &block)
Source

    # File xapian.rb, line 360
    def top_values(maxvalues, &block)
      Xapian._safelyIterate(self._dangerous_top_values_begin(maxvalues),
                            self._dangerous_top_values_end(maxvalues),
                            lambda { |item| Xapian::Term.new(item.term, 0, item.termfreq) },
                            &block)
    end

Returns an Array of the top values seen, by frequency

values (&block)
Source

    # File xapian.rb, line 352
    def values(&block)
      Xapian._safelyIterate(self._dangerous_values_begin(),
                            self._dangerous_values_end(),
                            lambda { |item| Xapian::Term.new(item.term, 0, item.termfreq) },
                            &block)
    end

Returns an Array of all the values seen, in alphabetical order