Comment 16 for bug 282995

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

A fix is in progress for searching with an hyphen however implicit wildcard when searching for a package name with a prefix e.g. name:ubuntu-res is not possible with the current version of xapian:

Extract from the discussion on #xapian:
"It needs two new options: firstly, to make it handle wildcards (and implicit wildcards from FLAG_PARTIAL) for boolean fields and secondly to make it handle wildcards and implicit wildcards at the end of hypenated phrases."

A workaround (but very bad practice) is to replace '-' by '* ' when the prefix 'name:' and replace '-' by ' ' when no prefix is used.
With this a query such as 'name:ubuntu-res' will be parsed as XPubuntu* AND res* (with wildcard expansion)
but a query such as 'name:(ubuntu-res*)' won't return anything