P
P
photosho2017-07-18 16:23:01
1C-Bitrix
photosho, 2017-07-18 16:23:01

How to implement search in Search.Page only by titles?

How can I disable the search in the text of materials in the standard "Search.Page" component, leaving the search only in the headings?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Nikolaev, 2017-07-18
@gromdron

You cannot remove the announcement and detailed text from search.page, because he searches in the search base, and not in the fields of the infoblock.
However, you can develop your own component that will only search by name.
True, there will be difficulties with morphology, but that's another story.

A
Alexey Emelyanov, 2017-07-19
@babarun

This is a page with a "Catalog.Search" component, within which "Search.Page" is included as standard. If it is possible to solve the problem with another component, I think there will be no problems with its connection.

I suggest replacing search.page with search.title - it just searches only by titles, but a little customization is probably required.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question