[Xapian-devel] Bindings and overloading

James Aylett james-xapian at tartarus.org
Thu Jun 3 16:46:46 BST 2004


On Thu, Jun 03, 2004 at 03:50:23PM +0100, Alex Bowley wrote:

> > q = xapian.Query(xapian.Query.OP_PHRASE, ['bodega', 'sell', 'fish'])
> > 
> > but it doesn't work because (I think) we're either not instantiating
> > the right template, or possibly because we're missing a typemap. I'm
> > looking at this at the moment, but I don't know how much time I can
> > devote to it.
> 
> How did one construct >2 element phrases in Xapian before the existence
> of the variable-term constructor?

I'm not aware that anyone has ever tried, except in C++. The bindings
are still comparatively recent compared to the rest of the library.

For AND and OR operators, you can fudge it using a tree. NEAR and
PHRASE work differently, and you can't.

J

-- 
/--------------------------------------------------------------------------\
  James Aylett                                                  xapian.org
  james at tartarus.org                               uncertaintydivision.org




More information about the Xapian-devel mailing list