mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 20:21:16 +00:00
do not use AND in query string, precede query term with <fieldname>:
This commit is contained in:
parent
36fff2cfcb
commit
6eb37664e9
|
@ -68,17 +68,19 @@ class SeedDMS_SQliteFTS_Search {
|
|||
}
|
||||
if($owner) {
|
||||
if($querystr)
|
||||
$querystr .= ' AND ';
|
||||
$querystr .= ' ';
|
||||
//$querystr .= ' AND ';
|
||||
$querystr .= 'owner:'.$owner;
|
||||
//$querystr .= $owner;
|
||||
}
|
||||
if($categories) {
|
||||
if($querystr)
|
||||
$querystr .= ' AND ';
|
||||
$querystr .= ' ';
|
||||
//$querystr .= ' AND ';
|
||||
$querystr .= 'category:';
|
||||
$querystr .= implode(' OR category:', $categories);
|
||||
$querystr .= '';
|
||||
}
|
||||
// echo $querystr;
|
||||
try {
|
||||
$hits = $this->index->find($querystr);
|
||||
$recs = array();
|
||||
|
|
Loading…
Reference in New Issue
Block a user