[Xapian-discuss] Unicode and complex queries from Python

James Aylett james-xapian at tartarus.org
Fri Sep 23 16:06:24 BST 2005


On Fri, Sep 23, 2005 at 10:58:06AM -0400, Amir Bakhtiar wrote:

> I understand that the current QueryParser is not unicode aware so I am 
> trying to build my own queries by stringing together various Queries with 
> OP_*. It seems that for anything complex, such as a three word phrase, I 
> need to call Query with begin and end iterators. I am not sure how to do 
> this? (As a hack I think I can create a document with 3 words and get its 
> TermIterator, but that seems circuitous.) It would be great if functions 
> such as this would take a Python list or iterator or Term or Query objects.

We're having difficulties with the system used to wrap Xapian for
Python. In theory you should be able to pass a Python sequence and
have everything work as expected.

How are you passing in iterators via Python? They aren't wrapped as
far as I know...

J

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



More information about the Xapian-discuss mailing list