[Xapian-discuss] constructing phrase queries

James Aylett james-xapian at tartarus.org
Wed Sep 29 11:23:29 BST 2004


On Wed, Sep 29, 2004 at 03:29:29AM -0600, gervin23 wrote:

> i've been playing with constructing my own queries without the help of 
> queryparser(). one thing i don't get is how to construct a phrase with 3 
> or more terms.

The Python bindings as they stand can't do this - it's a nasty problem
to do with SWIG not coping with extension overloaded constructors. I'm
not quite sure how to fix it properly, so I'm working on a workaround
that would allow you to build queries out of lists of strings with a
single operator.

Just rebuilding the latest Xapian + bindings, I'll get back to you
what shape it's in ...

J

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



More information about the Xapian-discuss mailing list