[Xapian-devel] How to filter search result with query with has white space.

Olly Betts olly at survex.com
Sun Sep 22 07:08:38 BST 2013


[Note: xapian-discuss is more appropriate for questions about how to use
Xapian]

On Sun, Sep 22, 2013 at 10:55:15AM +0530, Naveen A.N. wrote:
> But "xapian title:Xapian is good" fails.

You need double quotes to get the boolean prefix to apply to more than
just "Xapian" - try searching for:

    xapian title:"Xapian is good"

See http://trac.xapian.org/wiki/FAQ/NoMatches for tips on debugging this
sort of problem.

You probably don't want to treat the title as a boolean term though - a
title is usually better handled as a probabilistic field.

Cheers,
    Olly



More information about the Xapian-devel mailing list