[Xapian-discuss] constructing phrase queries
gervin23
gervin23 at fastmail.fm
Wed Sep 29 20:43:44 BST 2004
> 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.
sounds like a more pythonic way of doing it. would i be able to build
complex queries (i.e. phrases mixed with booleans)?
if there were a way to send a string exactly like what get_description()
returns, i'd be good to go. for example, using queryparser() for
"golfing at two" returns 'Xapian::Query((golfing:(pos=1) PHRASE 3
at:(pos=2) PHRASE 3 two:(pos=3)))'. i would have no problem building
this (or the inner portion of it) as a string if there were a way to
send it directly to enquire.set_query()
thanks,
andrew
More information about the Xapian-discuss
mailing list