Expand my Community achievements bar.

SOLVED

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

Avatar

Level 4

How to exclude child path by using search query builder ?

 

keshava219_1-1665985233184.png

 

 

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?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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!

View solution in original post

5 Replies

Avatar

Community Advisor

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

Avatar

Level 4

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

Avatar

Community Advisor

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?

Avatar

Correct answer by
Community Advisor

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!