My current query with predicate type=cq:Page does not finds property from subNode but only finds till node level propNode
But when i remove the "group.1_group.type=cq:Page" then below fulltext query looks under entire depth and fetch all nodes containing the term
With this nodes containing search term are returned while we expect the cq:page to be returned as in previous query.
Do we know what controls the depth for fulltext search with type=cq:Page. fulltext query without the type looks under entire depth.
And how can we get only cq:Page in search results when using updated query.
cc @kautuk_sahni Jörg_Hoh Arun_Patidar
As you must be aware queries like these work based on indexes in AEM. So if you try to search for a term using a type "cq:Page" it essentially searches based on indexes built for cqPageLucene you can check the configurations of these under "/oak:index/cqPageLucene"
Your observation is correct that when you use the type cq:Page you are getting results for node till "propNode" (level 4), and when you remove it you get it to subNode level as well. The reasoning is that:
To understand more about index aggregation configurations in this documentation
I hope this answers your query,