[Xapian-discuss] multiword synoyms

Olly Betts olly at survex.com
Tue Jul 10 04:01:09 BST 2012


On Fri, Jul 06, 2012 at 12:19:08PM +0200, QE :: Felix Ostmann wrote:
> I am using synoyms and cannot determine how to use them in following
> example:
> 
> $db->add_synonym('Zfoobar','Zfoo Zbar')
> or
> $db->add_synonym('Zfoobar','Zfoo AND Zbar')
> 
> Or is this general not possible?

You can only specify a term as a synonym, not a subquery.  You can
specify multiple synonyms for the same word, but they are combined with
OP_SYNONYM (or OP_OR if you're using an older version before OP_SYNONYM
was added), not OP_AND, as you seem to want.

Cheers,
    Olly



More information about the Xapian-discuss mailing list