[Xapian-discuss] Query / Database question
Bill Crawford
bill.crawford at wcn.co.uk
Wed Feb 21 10:39:37 GMT 2007
On Wednesday 21 Feb 2007, Ross Lawley wrote:
> i.e. Categories might be: car, bike and bicycle.
>
> The user may want to search:
>
> "bmw london" and select the car category
> or
> "nottingham" and select all categories
>
> Is that something that is easy to implement through the Xapian query
> interface? Or should I be using different xapian databases per category
> type?
I've done something similar by storing metadata as "key:value" terms without
any position information, added to the "real" terms from the document; these
terms cannot appear as part of real data because of the way I split the data
to index. You'd add "category:car" or whatever.
Another way is the "add_prefix" and "add_boolean_prefix" QueryParser methods.
> Ross
--
http://www.lost.eu/175db
More information about the Xapian-discuss
mailing list