Class: Xapian::ESet
- Inherits:
-
Object
- Object
- Xapian::ESet
- Defined in:
- lib/xapian.rb
Overview
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
195 196 197 198 199 200 201 202 203 |
# File 'lib/xapian.rb', line 195 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 |