How to search query builder fulltext in a path by excluding Child path? | Community
Skip to main content
keshava219
New Participant
October 17, 2022
Solved

How to search query builder fulltext in a path by excluding Child path?

  • October 17, 2022
  • 3 replies
  • 1284 views

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by HeenaMadan

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!

3 replies

HeenaMadan
HeenaMadanAccepted solution
New Participant
October 17, 2022

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!

TarunKumar
New Participant
October 17, 2022

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

keshava219
New Participant
October 17, 2022

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

TarunKumar
New Participant
October 17, 2022

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?