Hi Team
Can I know the usage of Custom Indexing with queryPaths list.
What is the deference between queryPaths list vs includePaths list ?
Is it we can use for both property indexing and lucene indexing ?
Thanks !
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @JakeCham,
Below are the definitions from official documentation:
So the main difference is that includedPaths will affect the index size and it scope in terms of paths that will be take into account during indexing process. queryPaths is considered by query engine, executing query, checking if specific index should be used to run given query, base on path(s) configured in queryPaths property. In other words, if you need to ensure that a given index only gets used for query with specific path restrictions then you need to specify those paths.
As per documentation you should use includedPaths and queryPaths together.
Please check nice usage example, presented in the documentation: https://jackrabbit.apache.org/oak/docs/query/lucene.html#query-paths
Looking into property index documentation, it seems that only includedPaths is supported for this type of index https://jackrabbit.apache.org/oak/docs/query/property-index.html
Hi @JakeCham,
Below are the definitions from official documentation:
So the main difference is that includedPaths will affect the index size and it scope in terms of paths that will be take into account during indexing process. queryPaths is considered by query engine, executing query, checking if specific index should be used to run given query, base on path(s) configured in queryPaths property. In other words, if you need to ensure that a given index only gets used for query with specific path restrictions then you need to specify those paths.
As per documentation you should use includedPaths and queryPaths together.
Please check nice usage example, presented in the documentation: https://jackrabbit.apache.org/oak/docs/query/lucene.html#query-paths
Looking into property index documentation, it seems that only includedPaths is supported for this type of index https://jackrabbit.apache.org/oak/docs/query/property-index.html
Views
Likes
Replies
Views
Likes
Replies