M
M
mills2020-08-04 16:42:04
1C-Bitrix
mills, 2020-08-04 16:42:04

How to sort the search result "bitrix:search.page"?

Hello!
How to sort in bitrix:search.page ?
It is necessary that from the beginning it would display a more accurate match and then everything else.
As far as I noticed, it displays by creation date.

Or do you search only for the TAG SEO property?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Emelyanov, 2020-08-04
@babarun

<?$APPLICATION->IncludeComponent("bitrix:search.page","",Array(
        //...
        "DEFAULT_SORT" => "rank",
        //...
    )
);?>

Default sort DEFAULT_SORT Specifies the default sort order for search results: by relevance (rank) or by date (date).
https://dev.1c-bitrix.ru/user_help/components/sluz...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question