mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 09:20:11 +01:00
fixed a sphinx query
This commit is contained in:
parent
bedb7b0acc
commit
28d12e9a52
@ -186,7 +186,6 @@ class ModelSearchSearch extends Model {
|
||||
|
||||
|
||||
if(RESTRICTED_AUDITOR == 1) {
|
||||
/* !!!FIXME!!! test this evaluation */
|
||||
$domain_restrictions = ' (@todomain ' . $sd . ' | @fromdomain ' . $sd . ')';
|
||||
}
|
||||
|
||||
@ -269,7 +268,8 @@ class ModelSearchSearch extends Model {
|
||||
$data['any'] = $this->fixup_meta_characters($data['any']);
|
||||
$data['any'] = $this->fixup_sphinx_operators($data['any']);
|
||||
$data['any'] = $this->fix_email_address_for_sphinx($data['any']);
|
||||
if($match) { $match = "($match) & "; } $match .= "(" . $data['any'] . ") ";
|
||||
$fields = '';
|
||||
if($match) { $match = "($match) & "; $fields = '@subject,@body '; } $match .= "($fields " . $data['any'] . ") ";
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user