Class: Xapian::ESet
- Inherits:
-
Object
- Object
- Xapian::ESet
- Defined in:
- lib/xapian.rb
Overview
Refer to the Xapian::ESet C++ API documentation for methods not specific to Ruby. – ESetIterators are not dangerous, just inconvenient to use within a Ruby programming idiom. So we wrap them.
Instance Method Summary collapse
Instance Method Details
#terms ⇒ Object
213 214 215 216 217 218 219 220 221 |
# File 'lib/xapian.rb', line 213 def terms Xapian._safelyIterate(self._begin(), self._end()) { |item| # note: in the ExpandTerm wrapper, we implicitly rename # ESetIterator#term() (defined in xapian.i) to ExpandTerm#term() Xapian::ExpandTerm.new(item.term, item.weight) } end |