How to exclude child path by using search query builder ?
trying below query : I want to exclude chapter-5 path "/content/summit/l4080/chapter-5"
path=/content/summit/l4080
type=cq:Page
group.p.and=true
group.1_fulltext=articles
p.offset=0
p.limit=-1
any reference query?
Solved! Go to Solution.
Views
Replies
Total Likes
you need to include : group.1_group.p.not=true
Use below query to exclude child path from search for fulltext search. I tried it works fine.
path=/content/summit/l4080 type=cq:Page group.p.and=true group.1_group.fulltext=articles group.2_group.p.not=true group.2_group.path=/content/summit/l4080/chapter-5 group.2_group.path.self=true p.offset=0 p.limit=-1
Hope this helps!
HI @keshava219
You can add below in your query :
group.1_group.p.not=true
group.1_group.path=/content/summit/l4080/chapter-5
group.1_group.path.self=true
Hi @TarunKumar
tried below query not working:
path=/content/summit/l4080
type=cq:Page
group.p.and=true
group.1_fulltext=articles
group.1_group.p.not=true
group.1_group.path=/content/summit/l4080/chapter-5
group.1_group.path.self=true
p.offset=0
p.limit=-1
Hi @keshava219
It should work, I am sharing the complete query below:
path=/content/summit/l4080 type=cq:Page group.p.and=true group.1_group.fulltext=articles group.2_group.p.not=true group.2_group.path=/content/summit/l4080/chapter-5 group.2_group.path.self=true
Let me know if you still face the issue?
you need to include : group.1_group.p.not=true
Use below query to exclude child path from search for fulltext search. I tried it works fine.
path=/content/summit/l4080 type=cq:Page group.p.and=true group.1_group.fulltext=articles group.2_group.p.not=true group.2_group.path=/content/summit/l4080/chapter-5 group.2_group.path.self=true p.offset=0 p.limit=-1
Hope this helps!
Views
Likes
Replies
Views
Likes
Replies