[Xapian-devel] ruby bindings odds and ends

James Aylett james-xapian at tartarus.org
Thu May 11 13:29:51 BST 2006

On Thu, May 11, 2006 at 12:05:25AM +0100, Olly Betts wrote:

> And lastly, for most languages, there's an extra Enquire method -
> get_matching_terms() which just returns the matching terms as a list or
> array or similar.  I'm not sure why this one case gets special treatment
> really - I think it's mostly just a historical oddity.

It is - the aim should be language-specific iterator patterns so you
can treat the MSet in the appropriate way for the language. I don't
know which bindings languages actually support that at present
though... the idea is that get_matching_terms() is a *cheap*
alternative to getting this right, as it'll probably be easier to use
in the language than getting the wrapped MSetIterator, which doesn't
behave in the expected fashion without more work in the bindings.


  James Aylett                                                  xapian.org
  james at tartarus.org                               uncertaintydivision.org

More information about the Xapian-devel mailing list