C
C
cirega2018-02-05 11:00:03
1C-Bitrix
cirega, 2018-02-05 11:00:03

Bitrix search does not search if the query contains words that are not in the index, how to win?

Good afternoon, I'm doing a search with morphology on Bitrix, such a code

CModule::IncludeModule('search');
$q = $_REQUEST['q'];
$module_id = "iblock";
$obSearch = new CSearch;

$obSearch->Search(array(
    "QUERY" => $q,
    "SITE_ID" => LANG,
    "MODULE_ID" => $module_id,
));

The problem is that let's say we are looking for "Mercedes Bumper", then everything is found, and if we include a word that is not in the index in the line, then we do not find anything, the query "Mercedes Bumper Random" will not return anything, how to win? All api dug up. Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2018-02-08
Madzhugin @Suntechnic

Remove the search module along with the tables. Install back and re-index the site.
What would be the connection? And sometimes it helps.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question