Search results are displayed in different orders each time randomly
How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!
While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.
Legacy Article
You are viewing an article from our legacy "FastTrack"
publication program, made available for informational purposes. Articles
in this program were published without a requirement for independent
editing or verification and are provided"as is" without
guarantee.
Before using any information from this article, independently verify its
suitability for your situation and project.
Issue
- When searching for the same word, the list of results can appear in different orders.
- This happens even when there's a Sort widget in the search page.
Environment
- Quarterly Release 2023.Q4
Resolution
- This behavior could be due to having orphan widgets in the page that interfere with the query to Elasticsearch.
- To check for this possibility:
- Take note of the Sort widget configuration just in case it needs to be restored and/or reconfigured.
- Go to Site Builder > Pages.
- On the search page, click on the 3-dot menu and then on Orphan Widgets.
- Change the view to List.
- Check if there are any (maybe repeated) entries for
com_liferay_portal_search_web_internal_sort_portlet_SortPortlet_INSTANCE_ and remove them.
- Check that the behavior has gone back to normal.
Did this article resolve your issue ?