mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 05:31:42 +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($owner) {
|
||||||
if($querystr)
|
if($querystr)
|
||||||
$querystr .= ' AND ';
|
$querystr .= ' ';
|
||||||
|
//$querystr .= ' AND ';
|
||||||
$querystr .= 'owner:'.$owner;
|
$querystr .= 'owner:'.$owner;
|
||||||
|
//$querystr .= $owner;
|
||||||
}
|
}
|
||||||
if($categories) {
|
if($categories) {
|
||||||
if($querystr)
|
if($querystr)
|
||||||
$querystr .= ' AND ';
|
$querystr .= ' ';
|
||||||
|
//$querystr .= ' AND ';
|
||||||
$querystr .= 'category:';
|
$querystr .= 'category:';
|
||||||
$querystr .= implode(' OR category:', $categories);
|
$querystr .= implode(' OR category:', $categories);
|
||||||
$querystr .= '';
|
$querystr .= '';
|
||||||
}
|
}
|
||||||
// echo $querystr;
|
|
||||||
try {
|
try {
|
||||||
$hits = $this->index->find($querystr);
|
$hits = $this->index->find($querystr);
|
||||||
$recs = array();
|
$recs = array();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user