[Xapian-discuss] Unicode and complex queries from Python

James Aylett james-xapian at tartarus.org
Sun Sep 25 17:15:00 BST 2005


On Sat, Sep 24, 2005 at 01:18:28PM -0400, Amir Bakhtiar wrote:

> >How are you passing in iterators via Python? They aren't wrapped as
> >far as I know...
> 
> I tried passing a list and an iterator. Both failed with the wrong 
> number/type of args.
> 
> I also tried creating a document and passing the termlist_begin and 
> termlist_end and got a segmentation fault.

Yeah, that's what I thought - it won't work from Python, because those
methods aren't available. Basically, I'm running into problems
actually getting SWIG's default STL (std::vector<std::string>)
typemaps to work. For that matter, I didn't have much success getting
custom ones to work either - I think the problem is that typemaps
don't play well with extended methods, even though they really should :-(

I've asked about this on the SWIG list, but without a helpful reply.

> Any ETA on the unicode aware QueryParser?

It won't happen before the 1.0 release of Xapian, for the reasons Olly
has given.

J

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



More information about the Xapian-discuss mailing list