Improve Manticore Search results, return more relevant ones and more current

This commit is contained in:
DariusIII
2019-01-21 23:53:18 +01:00
parent 57478eed57
commit 22edd82b2a
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -195,7 +195,7 @@ class SphinxSearch
*/
public function searchIndexes(string $rt_index, $searchString = '', $column = [], array $searchArray = []): array
{
$query = $this->sphinxQL->select()->from($rt_index)->option('max_matches', 10000)->option('ranker', 'matchany')->limit(0, 10000)->orderBy('weight()', 'desc');
$query = $this->sphinxQL->select()->from($rt_index)->option('max_matches', 100000)->option('ranker', 'sph04')->option('sort_method', 'pq')->limit(0, 100000);
if (! empty($searchArray)) {
foreach ($searchArray as $key => $value) {
$query->match($key, $value);
+1
View File
@@ -1,4 +1,5 @@
2019-01-21 DariusIII
* Chg: Improve Manticore Search results, return more relevant ones and more current
* Fix: Fix XML_Response atom:link url reported for api v1
* Chg: Slightly optimize searchIndexes query
* Fix: Fix error on search with argument 16 not being an array but null