fixed a sphinx query bug

This commit is contained in:
SJ
2013-08-25 21:57:04 +02:00
parent ce394f527d
commit d977dfcf89
2 changed files with 19 additions and 1 deletions

View File

@ -269,7 +269,7 @@ class ModelSearchSearch extends Model {
$data['any'] = $this->fixup_sphinx_operators($data['any']);
$data['any'] = $this->fix_email_address_for_sphinx($data['any']);
$fields = '';
if($match) { $match = "($match) & "; } $match .= "(@subject " . $data['any'] . " | @body " . $data['any'] . ") ";
if($match) { $match = "($match) & "; } $match .= "(@(subject,body) " . $data['any'] . ") ";
}