Legacy Knowledge Base
公開されました Jun. 30, 2025

Search Result Limit Resets to 10000 After Container Restart

Written By

Tímea Bihari

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

  • We changed the index.search.limit property in portal-ext.properties
  • We also set the same value in Control Panel -> System settings -> Search -> Elasticsearch 7 -> Max Result Window
  • The search result limit reverts to 10000 after container restarts.

 

Environment

  • Quarterly Releases
  • Containerized environment (e.g., Docker)
  • Remote Elasticsearch

 

Resolution

The issue occurs because the Elasticsearch configuration within the container is not persisting across restarts. To resolve this, you need to configure and bind mount the Elasticsearch OSGi configuration directory.

  1. Create or edit the Elasticsearch configuration file in the osgi/configs directory.
  2. Set the following property in the config file: indexMaxResultWindow=
  3. Bind mount the osgi/configs directory. For example, if using Docker:
    --mount type=bind,src="$(pwd)/dxp/osgi/configs",target=/opt/liferay/osgi/configs
    (For more information on bind mounts, please refer to the official Docker documentation: Bind mounts | Docker Docs.)
  4. Set the index.search.limit property in your portal-ext.properties file to match the indexMaxResultWindow value.
  5. Configure the Max Result Window in the System Settings (Control Panel > System settings > Search > Elasticsearch 7 > Max Result Window) to the desired value. Ensure this value matches the values set in the previous steps.
  6. Perform a reindex after applying these changes.

 

Additional Information

Did this article resolve your issue ?

Legacy Knowledge Base