tags:

views:

11

answers:

0

Hello,

In the documentation I read that I can suppress the error message by specifying the @@relaxed option at the beginning of the query.

If for example I have this scenario:

Search 'Desalination' in all fields Also search 'manila tokyo oxford amsterdam' in locations field , where locations field is not present in all indices. Also search 'reverse osmosis nanofiltration' in technologies field, where technologies fields is not present in all indices.

How then will I construct my query ? Where shall I position the @@relaxed parameter? The words 'manila','tokyo','oxford','amsterdam' are separate words, how can I reflect this on my query?

Is this correct ?

$sphinx->AddQuery('Desalination @@relaxed @locations manila tokyo oxford amsterdam
@technologies reverse osmosis nanofiltration');

If I want an Or operator , I assume i would do this : Do i need to enclose multiple words into quotes?

$sphinx->AddQuery('Desalination @@relaxed @locations "manila|tokyo|oxford|amsterdam"
@technologies "reverse|osmosis|nanofiltration"');

Thanks!

related questions