Hi @JakeCham,
Below are the definitions from official documentation:
- includedPaths - defines list of paths which should be included in the index.
- queryPaths - defines list of paths for which the index can be used to perform queries.
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