From 22edd82b2aee4cab6907cbc1ed01e1f9930443ea Mon Sep 17 00:00:00 2001 From: DariusIII Date: Mon, 21 Jan 2019 23:53:18 +0100 Subject: [PATCH] Improve Manticore Search results, return more relevant ones and more current --- Blacklight/SphinxSearch.php | 2 +- Changelog | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Blacklight/SphinxSearch.php b/Blacklight/SphinxSearch.php index dfa4fd6e8..329f3975b 100755 --- a/Blacklight/SphinxSearch.php +++ b/Blacklight/SphinxSearch.php @@ -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); diff --git a/Changelog b/Changelog index 2cb806773..830d4f35e 100755 --- a/Changelog +++ b/Changelog @@ -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