[Xapian-discuss] Newbie question: searching certain fields only

goran kent gorankent at gmail.com
Sat Sep 25 13:31:51 BST 2010


Hallo,

I'm new to xapian and have only started checking it out, so please forgive
my silly questions.

I'm trying to get my head around the following:

Given the following fields (values with prefixes):

Name:  ....
Surname:  ....
Address: ....
...

How can I (by default) search in Name and Surname only?  ie, I want to
ignore the Address field during search, unless I explicitly search it (eg,
by using "+address:..." in my query).

I don't want to add "-address:..." to the query (even silently in the
background) since this might inadvertently exclude desired results.

Sorry if my question is not very clear.  Any suggestions welcome.

Thanks


More information about the Xapian-discuss mailing list