mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-26 07:20:11 +01:00
improved tag/note search
This commit is contained in:
parent
f06448f035
commit
c94959378a
@ -439,7 +439,7 @@ class ModelSearchSearch extends Model {
|
|||||||
|
|
||||||
$s = $this->fixup_sphinx_operators($s);
|
$s = $this->fixup_sphinx_operators($s);
|
||||||
|
|
||||||
$q = $this->sphx->query("SELECT iid FROM $sphx_table WHERE uid=" . $session->get("uid") . " AND MATCH('@$field $s') ");
|
$q = $this->sphx->query("SELECT iid FROM $sphx_table WHERE uid=" . $session->get("uid") . " AND MATCH('@$field $s') LIMIT 0," . MAX_SEARCH_HITS . " OPTION max_matches=" . MAX_SEARCH_HITS);
|
||||||
if(ENABLE_SYSLOG == 1) { syslog(LOG_INFO, "sphinx query: " . $q->query . ", hits: " . $q->total_found); }
|
if(ENABLE_SYSLOG == 1) { syslog(LOG_INFO, "sphinx query: " . $q->query . ", hits: " . $q->total_found); }
|
||||||
|
|
||||||
foreach($q->rows as $a) {
|
foreach($q->rows as $a) {
|
||||||
|
Loading…
Reference in New Issue
Block a user