class Xapian::Document

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

Public Instance Methods

terms(&block) click to toggle source
# File xapian.rb, line 148
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) click to toggle source
# File xapian.rb, line 157
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