Hi,
I need to exclude two paths from my search results and hence I have added my paths under property excludedPaths in the node: /oak:index/cqPageLucene-custom-11. But still I could see the two paths in the search results.
I have changed the reindex property to true, waited for some time so that it chnaged to false and the reindexCount got updated. Still could see the paths in search results.
Kindly help.
Solved! Go to Solution.
Views
Replies
Total Likes
I would suggest formulating the query as you expect the results to be:
path=/content/my-site/us/en
type=cq:Page
group.1_group.p.not=true
group.1_group.path=/content/my-site/us/en/services
group.1_group.path.self=true
group.2_group.p.not=true
group.2_group.path=/content/my-site/us/en/products
group.2_group.path.self=true
Src: https://sourcedcode.com/blog/aem/query-builder-api-exclude-pages-or-paths#google_vignette
Benefits:
Also, please verify that when you do not use excludes in query, is it the custom index thats picked or any other.
I would suggest formulating the query as you expect the results to be:
path=/content/my-site/us/en
type=cq:Page
group.1_group.p.not=true
group.1_group.path=/content/my-site/us/en/services
group.1_group.path.self=true
group.2_group.p.not=true
group.2_group.path=/content/my-site/us/en/products
group.2_group.path.self=true
Src: https://sourcedcode.com/blog/aem/query-builder-api-exclude-pages-or-paths#google_vignette
Benefits:
Also, please verify that when you do not use excludes in query, is it the custom index thats picked or any other.