Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

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

Avatar

Level 3

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
Level 7

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

Level 4

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 3

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

Level 4

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
Level 7

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!