[Xapian-discuss] QueryParser and booleans with spaces

Olly Betts olly at survex.com
Thu Oct 1 18:37:06 BST 2009


On Thu, Oct 01, 2009 at 11:56:33AM +0100, Tom Mortimer wrote:
> Does anyone know if it's possible to use the add_boolean_prefix
> technique in QueryParser with terms which include a space? I want to
> filter on (say) The Guardian, but none of these work:
> 
> title:The Guardian
> title:"The Guardian"
> title:(The Guardian)
> 
> I can work around it with a string substitution, e.g.
> title:The_Guardian, but I'd rather be able to keep the space, if
> possible.

I already answered on IRC, but for the archives, this isn't currently
possible.  And there is a ticket for it:

http://trac.xapian.org/ticket/128

Cheers,
    Olly



More information about the Xapian-discuss mailing list