AEMaaCS: how to safely configure localized fulltext queries on pages, in a multitenant environment?
Hi,
what is the recommended way to implement localized fulltext queries on pages on an AEMaaCS multi-tenant environment?
I was guessing it would have been possible to:
- Create a custom index for each use case, potentially for each (tenant, language) pair.
- For each index:
- Set tenant and/or language-wise includedPaths/excludedPaths, as described in https://jackrabbit.apache.org/oak/docs/query/lucene.html#include-exclude , or alternatively place the index under the language root node, https://jackrabbit.apache.org/oak/docs/query/lucene.html#non-root-index-definitions
- Add a language specific analyzer.
But I found some warnings in the docs:
- The “Indexing best practices in AEM” tutorial page orders to “Avoid creating a custom index on the same node type as the OOTB index.”, https://experienceleague.adobe.com/en/docs/experience-manager-learn/foundation/development/understand-indexing-best-practices
- The “Query and Indexing Best Practices” user guide seems to give way to multiple indexes on pages, “For nodetypes which have existing indexes (such as dam:Asset or cq:Page) prefer extension of OOTB indexes to the addition of new indexes.”, but doesn't tell what could happen, e.g. if the AEM application itself would behave badly, https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/operations/query-and-indexing-best-practices#index-definition-best-practices
Given the above warnings, is it safe to implement the strategy I was figuring?
Thanks!