Class: Xapian::Enquire
- Inherits:
-
Object
- Object
- Xapian::Enquire
- Defined in:
- lib/xapian.rb
Overview
Refer to the Xapian::Enquire C++ API documentation for methods not specific to Ruby. – Extend Xapian::Enquire with a nice wrapper for its dangerous iterators
Instance Method Summary collapse
-
#matching_terms(document) ⇒ Object
Get matching terms for some document.
Instance Method Details
#matching_terms(document) ⇒ Object
Get matching terms for some document. document can be either a Xapian::DocID or a Xapian::MSetIterator
182 183 184 185 186 187 |
# File 'lib/xapian.rb', line 182 def matching_terms(document) Xapian._safelyIterate(self._dangerous_matching_terms_begin(document), self._dangerous_matching_terms_end(document)) { |item| Xapian::Term.new(item.term, item.wdf) } end |