class Xapian::Document - RDoc Documentation
Description: class Xapian::Document: Xapian_1_1Document. Ruby.
Keywords: ruby,class,Xapian::Document

# class Xapian::Document

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

### Public Instance Methods

terms (&block)
Source

    # File xapian.rb, line 147
    def terms(&block)
      Xapian._safelyIterate(self._dangerous_termlist_begin(),
                            self._dangerous_termlist_end(),
                            lambda {
                              |item| Xapian::Term.new(item.term, item.wdf)
                            },
                            &block)
    end

values (&block)
Source

    # File xapian.rb, line 156
    def values(&block)
      Xapian._safelyIterate(self._dangerous_values_begin(),
                            self._dangerous_values_end(),
                            lambda {
                              |item| Xapian::Value.new(item.value,
                                                       item.valueno,
                                                       0)
                            },
                            &block)
    end