How to search query builder fulltext in a path by excluding Child path? | Community
Skip to main content
keshava219
Level 3
Oct 17, 2022 5:41 AM UTC
Solved

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

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.
HeenaMadan
HeenaMadanAccepted solution
New Participant
Oct 17, 2022 7:55 AM UTC

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!

5 replies

HeenaMadan
HeenaMadanAccepted solution
New Participant
Oct 17, 2022 7:55 AM UTC

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!

Translate
TarunKumar
New Participant
Oct 17, 2022 5:55 AM UTC

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

Translate
keshava219
Level 3
Oct 17, 2022 6:05 AM UTC

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

Translate
TarunKumar
New Participant
Oct 17, 2022 9:41 AM UTC

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?

Translate