legacy-knowledge-base
公開されました Jun. 30, 2025

Search Result Limit Resets to 10000 After Container Restart

投稿者

Tímea Bihari

knowledge-article-header-disclaimer-how-to

knowledge-article-header-disclaimer

legacy-article

learn-legacy-article-disclaimer-text

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