QE :: Felix Ostmann | 6 Jul 2012 12:19
Picon
Gravatar

multiword synoyms

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?

MfG
Felix
Olly Betts | 10 Jul 2012 05:01
Favicon
Gravatar

Re: multiword synoyms

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

Gmane