You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Здравствуйте. Никак не могу разобраться как при помощи данного клиента можно задать приоритет полям
$client = new \Manticoresearch\Client( array(
'host' => $config_db['manticore.db_server'],
'port' => 9308)
);
$this->manticore = new \Manticoresearch\Search($client);
$this->manticore->setIndex('index');
$this->manticore->maxMatches($config->maxResults);
$this->manticore->limit(30);
if (isset($filter['visible']))
$this->manticore->filter('visible', 'eq', intval($filter['visible']));
// только для продуктов так как нужный индекс есть только там
if (!empty($filter['status']))
$this->manticore->filter('status', 'in', (array) $filter['status']);
// только для продуктов так как нужный индекс есть только там
if (!empty($filter['sort_priority_stock']))
$this->manticore->sort('status_sort', 'desc');
$result_search] = array();
$results = $this->manticore->match(['query'=>$search_query, 'operator'=>'and'])->get();
foreach($results as $hit)
{
$result_search[] = $hit->getId();
}
The text was updated successfully, but these errors were encountered:
Здравствуйте. Никак не могу разобраться как при помощи данного клиента можно задать приоритет полям
The text was updated successfully, but these errors were encountered: