[Xapian-devel] FLAG_PARTIAL and subset words

Olly Betts olly at survex.com
Sat May 14 04:08:40 BST 2011


On Fri, May 13, 2011 at 03:22:37AM +0200, Greg wrote:
> I've encountered a very interesting bug/limitation of Xapian while
> trying to implement an auto-complete search. For instance while
> searching for "volvo v" the results were identical to just "volvo"
> digging a little bit I found out it has to do with the fact that the
> second partial word is a subset of the first word so results such as
> Volvo v90 are not considered to be better than Volvo s70, same thing
> happens with Ford F150, basically searching for "volvo vol" (assuming
> volvo volume) ignores the second partial word. It's not a huge issue,
> since "volvo s" works as expected and is only a special case but I
> thought it was worth mentioning.

I'm unable to reproduce this with trunk.

What version of Xapian are you using?

How have you configured the QueryParser?

What does get_description() return on the Query object you get from the
QueryParser?  (Or if you're using python, call str(query_obj) to get
this).

Cheers,
    Olly



More information about the Xapian-devel mailing list