Hi everyone,
When we use path in queries and while indexing why do we need to use included paths and excluded paths already we are filtering the query through path in our query?
Thanks in advance.
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @KKeerthi
From the Adobe's best practice documentation:
"Use includedPaths and avoid excludedPaths property. Always set queryPaths value to the same value as includedPaths value."
Hi @KKeerthi ,
Even if your query filters by a path, adding includedPaths and excludedPaths in the AEM index definition improves performance and efficiency.
includedPaths tells AEM to only index content under specific paths.
excludedPaths lets you skip paths that aren’t needed.
This helps in reducing the index size also Speed up indexing
Without these, the index applies to the whole repository, which can slow down query execution and indexing.
So, using them ensures your index is focused and optimized for your specific use case.
Hi @KKeerthi
From the Adobe's best practice documentation:
"Use includedPaths and avoid excludedPaths property. Always set queryPaths value to the same value as includedPaths value."
Views
Likes
Replies
Views
Likes
Replies