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

goran kent gorankent at gmail.com
Mon Sep 27 11:40:33 BST 2010

On Sun, Sep 26, 2010 at 1:49 PM, Olly Betts <olly at survex.com> wrote:

>    qp.add_prefix("", "XNAME");
>    qp.add_prefix("", "XSURNAME");
>    qp.add_prefix("name", "XNAME");
>    qp.add_prefix("surname", "XSURNAME");
>    qp.add_prefix("address", "XADDRESS");
> This results in fewer terms in the index, but searches without a prefix
> need to look up two terms rather than just one, so it's not obvious which
> is likely to be more efficient.
with your inside knowledge, which do you think is more likely to be the most
efficient in search performance?

More information about the Xapian-discuss mailing list