diff options
| author | 2018-03-14 17:20:41 +0100 | |
|---|---|---|
| committer | 2018-03-14 17:20:41 +0100 | |
| commit | 84d891f8cf43e4bb097a8b05a85dfeb4c48bd215 (patch) | |
| tree | ea2ebffb204c3c31a3cb77bd93351d16fcb5a473 /p/api/greader.php | |
| parent | 881ed44005ec6212f21c0973b772a1652ef1b42a (diff) | |
Light Boolean search implementation (#1828)
* Light Boolean search implementation
"Hello intitle:World OR date:P1D example"
https://github.com/FreshRSS/FreshRSS/issues/879
* Doc Boolean search
* Doc typos
Diffstat (limited to 'p/api/greader.php')
| -rw-r--r-- | p/api/greader.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/p/api/greader.php b/p/api/greader.php index 9778aecf5..2a32ead4e 100644 --- a/p/api/greader.php +++ b/p/api/greader.php @@ -535,7 +535,7 @@ function streamContents($path, $include_target, $start_time, $count, $order, $ex } $entryDAO = FreshRSS_Factory::createEntryDao(); - $entries = $entryDAO->listWhere($type, $include_target, $state, $order === 'o' ? 'ASC' : 'DESC', $count, $continuation, new FreshRSS_Search(''), $start_time); + $entries = $entryDAO->listWhere($type, $include_target, $state, $order === 'o' ? 'ASC' : 'DESC', $count, $continuation, new FreshRSS_BooleanSearch(''), $start_time); $items = entriesToArray($entries); @@ -595,7 +595,7 @@ function streamContentsItemsIds($streamId, $start_time, $count, $order, $exclude } $entryDAO = FreshRSS_Factory::createEntryDao(); - $ids = $entryDAO->listIdsWhere($type, $id, $state, $order === 'o' ? 'ASC' : 'DESC', $count, $continuation, new FreshRSS_Search(''), $start_time); + $ids = $entryDAO->listIdsWhere($type, $id, $state, $order === 'o' ? 'ASC' : 'DESC', $count, $continuation, new FreshRSS_BooleanSearch(''), $start_time); if ($continuation != '') { array_shift($ids); //Discard first element that was already sent in the previous response |
