fixed a sphinx query bug

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

No files matched your search

+1 -1
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'] . ") ";
}