Реализуйте этот метод, чтобы украсить результат поиска, например изменить CSS.
Параметр
элемент
Элемент
Элемент, который можно украсить.
Значение не должно быть нулевым.
результат
Объект
Объект результата поиска из ответа
Значение не должно быть нулевым.
перехватитьSearchRequest
interceptSearchRequest(запрос) возвращает объект
Реализуйте этот метод, чтобы добавить в запрос дополнительные параметры.
Параметр
запрос
Объект
Исходный запрос
Значение не должно быть нулевым.
Возврат
non-null Object Обновленный запрос
перехватSearchResponse
interceptSearchResponse(ответ)
Реализуйте этот метод, чтобы прочитать ответ перед рендерингом. Объект ответа доступен только для чтения. Если поисковый вызов не удался, ответ будет содержать ошибку.
Если новый поисковый запрос выдается, пока один находится в ожидании, предыдущий запрос отменяется и метод не вызывается.
[null,null,["Последнее обновление: 2025-07-24 UTC."],[],[],null,["# Interface: ResultsContainerAdapter\n\nResultsContainerAdapter\n=======================\n\ninterface\n\nThe Adapter of results container\n\nMethods\n-------\n\n### createFacetResultElement\n\ncreateFacetResultElement(result) returns Element\n\nImplement this method to override rendering of a facet result.\n\n| #### Parameter ||\n|--------|--------------------------------------------------------------------|\n| result | Object A facet result object from response Value must not be null. |\n\nReturns\n\n: `non-null Element` element Element built based on a facet result.\n\n### createSearchResultElement\n\ncreateSearchResultElement(result) returns Element\n\nImplement this method to override rendering of a search result.\n\n| #### Parameter ||\n|--------|---------------------------------------------------------------------|\n| result | Object A search result object from response Value must not be null. |\n\nReturns\n\n: `non-null Element` element Element built based on a search result.\n\n### decorateFacetResultElement\n\ndecorateFacetResultElement(element, result)\n\nImplement this method to decorate a facet result, such as change CSS.\n\n| #### Parameter ||\n|---------|--------------------------------------------------------------------|\n| element | Element Element you can decorate on. Value must not be null. |\n| result | Object A facet result object from response Value must not be null. |\n\n### decoratePaginationElement\n\ndecoratePaginationElement(element)\n\nImplement this method to decorate pagination buttons, such as change CSS.\n\n| #### Parameter ||\n|---------|----------------------------------------------------------------|\n| element | Element Element of pagination buttons. Value must not be null. |\n\n### decorateSearchResultElement\n\ndecorateSearchResultElement(element, result)\n\nImplement this method to decorate a search result, such as change CSS.\n\n| #### Parameter ||\n|---------|---------------------------------------------------------------------|\n| element | Element Element you can decorate on. Value must not be null. |\n| result | Object A search result object from response Value must not be null. |\n\n### interceptSearchRequest\n\ninterceptSearchRequest(request) returns Object\n\nImplement this method to add extra params in request.\n\n| #### Parameter ||\n|---------|-----------------------------------------------------|\n| request | Object The original request Value must not be null. |\n\nReturns\n\n: `non-null Object` request The updated request\n\n### interceptSearchResponse\n\ninterceptSearchResponse(response)\n\nImplement this method to read the response prior to rendering. The\nresponse object is read-only. If the search call fails, the response\nwill contain the error.\n\nIf a new search request is issued while one is pending, the previous\nrequest is cancelled and the method is not called.\n\n| #### Parameter ||\n|----------|----------------------------------------------------|\n| response | Object The search response Value must not be null. |"]]