class Xapian::ValueCountMatchSpy - RDoc Documentation
Description: class Xapian::ValueCountMatchSpy: Xapian_1_1ValueCountMatchSpy. Ruby.
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 359
    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 351
    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