A
A
Anto2017-10-11 13:09:41
1C-Bitrix
Anto, 2017-10-11 13:09:41

How to set up the output of the product after the search?

Good afternoon!
Tell me:
The site implements a search in the same way as on the online store of the 1C-Bitrix demo site, the search form is used - bitrix:search.title. When you enter the word Shoes or another product, there are shoes, when you click on the search button, only 2 pages are displayed on which there are about 60 products, although there are much more products with shoes, approximately 4,000, there are shoes: for women, children, men.
"TOP_COUNT" set to "6000" . Tell me what to configure so that the search would display in the search results all products by request?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Emelyanov, 2017-10-11
@ZIROKUL

The template components/bitrix/catalog.searchcontains a component:

$arElements = $APPLICATION->IncludeComponent(
  "bitrix:search.page",
  ".default",
  Array(
    "RESTART" => $arParams["RESTART"],
    "NO_WORD_LOGIC" => $arParams["NO_WORD_LOGIC"],
    "USE_LANGUAGE_GUESS" => $arParams["USE_LANGUAGE_GUESS"],
    "CHECK_DATES" => $arParams["CHECK_DATES"],
    "arrFILTER" => array("iblock_".$arParams["IBLOCK_TYPE"]),
    "arrFILTER_iblock_".$arParams["IBLOCK_TYPE"] => array($arParams["IBLOCK_ID"]),
    "USE_TITLE_RANK" => "N",
    "DEFAULT_SORT" => "rank",
    "FILTER_NAME" => "",
    "SHOW_WHERE" => "N",
    "arrWHERE" => array(),
    "SHOW_WHEN" => "N",
    "PAGE_RESULT_COUNT" => 50,
    "DISPLAY_TOP_PAGER" => "N",
    "DISPLAY_BOTTOM_PAGER" => "N",
    "PAGER_TITLE" => "",
    "PAGER_SHOW_ALWAYS" => "N",
    "PAGER_TEMPLATE" => "N",
  ),
  $component,
  array('HIDE_ICONS' => 'Y')
);

change the parameter PAGE_RESULT_COUNT
* just do not set large values, 200 is enough

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question