mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-02 03:08:53 +00:00
Improve Manticore Search results, return more relevant ones and more current
This commit is contained in:
@@ -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,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
|
||||
|
||||
Reference in New Issue
Block a user