Cannot add segment with thousands of conditions due to indexing problems
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
learn-legacy-article-disclaimer-text
Issue
- When adding a segment with with thousands of conditions there are problems with the indexing by Elasticsearch.
- The logs show a
StackOverflowError stacktrace.
Environment
- Quarterly Release 2023.Q3
Resolution
- Needing a segment with thousands of conditions is very unusual. Consider another approach to reduce the number of needed conditions.
- If such a large number of conditions is unavoidable, you'll need to adapt the size of the JVM stacks for both Liferay and Elasticsearch (using the configuration flag
-Xss) to these requirements.
- Such large segments might also push the default limit of Elasticsearch's configuration
indices.query.bool.max_nested_depth.
did-this-article-resolve-your-issue