Legacy Knowledge Base
Published Sep. 10, 2025

Configurations file is not reflecting for Elasticsearch

Written By

Kanchan Bisht

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 users try to change configurations using .config files, these may not always be reflected.

Environment

  • Liferay DXP 7.4

Resolution

The concerns outlined above mostly happen when the configuration is saved in the database, overriding the configuration provided in the files. There might be multiple entries for the .config files, so it could be beneficial to delete all of the configurations from the configuration_ table before making changes to the UI. 


Now, the UI and osgi configuration files are directly in sync.

The following are the steps which can be used to confirm this:

  1. Export the file, add it to osgi/configs, and perform certain changes to it.
  2. Now, refresh the portal 2-3 times, and the changes of the config file should be reflected on the UI.
  3. Again perform the changes to the UI. 
  4. The above UI changes are automatically reflected in the config files without manual interventions.

However, as highlighted in the 'Single Read Only Value' page, assigning a config parameter's value via the portal property has precedence over DB and Config.

  • Therefore, the following actions would be helpful in case the issue persists:
    1. Export the current ES config
    2. Make the desired changes to all the parameters.
    3. Now, pick each parameter, and add it to the portal property like:
      configuration.override.com.liferay.portal.search.elasticsearch7.configuration.ElasticsearchConfiguration_username="test"
    4. Save this portal property and take a restart of the system. This will ensure that only the values provided from the portal property will take precedence here.

Additional Information

  • Please ensure to test the behavior in lower environments first before proceeding with the production environment. 
Did this article resolve your issue ?

Legacy Knowledge Base