L
L
lie22020-03-03 09:51:47
1C-Bitrix
lie2, 2020-03-03 09:51:47

Search in the catalog (market:catalog) as in market:search.title?

Good day!
I am finalizing the site and the following task fell from the customer - "make the search look so beautiful" and everything like that, in principle, you can close your eyes to something, but more to the point:
there is a search in the site header (performed in market:search. title): 12.pngand it works, kind of like it should, BUT as soon as I press Enter or the link "all results" / "other" the page SHOULD be opened search (performed in market:catalog), but it's just hell
12.png
. looks at the title and displays what is needed, then here - whatever ... that is, of course, on request, but it searches not only in the titles, but also in the text of the description.

In theory, it’s enough for me to simply correct the final search and issue only those positions where the search query matches exactly the title (excluding descriptions).

I tried to write as clearly as possible .... I hope for your help on this issue.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2020-03-03
@lie2

The first is CSearchTitle search and the second is just CSearch. Since, judging by the names of the components, they are customized, you can climb to change to the desired method.
The second option is to hang a handler on the BeforeIndex event and do unset($arFileds['DETAIL_TEXT']) there

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question