Re: Fulltext search | Community
Skip to main content
Anmol_Bhardwaj
New Participant
April 11, 2022
Solved

Re: Fulltext search

  • April 11, 2022
  • 1 reply
  • 677 views

Hi @anasustic ,

 

For the search path to include the search path node as well, you would need to add another property in the search :

path.self=true

If true searches the subtree including the main node given in path, if false searches the subtree only.

 

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 Monendra_Singh

Yes, that is correct.

If you set the path.self property to true, the search will include the node specified in the path property as well as its children. If you set it to false, the search will only include the children of the node specified in the path property and will not include the node itself.

It's important to note that the path.self property is only applicable when performing a search using the path property. If you are not using the path property in your search, the path.self property will have no effect.

https://experienceleague.adobe.com/docs/experience-manager-64/developing/platform/query-builder/querybuilder-predicate-reference.html?lang=en

 

 

1 reply

Monendra_Singh
Monendra_SinghAccepted solution
New Participant
December 29, 2022

Yes, that is correct.

If you set the path.self property to true, the search will include the node specified in the path property as well as its children. If you set it to false, the search will only include the children of the node specified in the path property and will not include the node itself.

It's important to note that the path.self property is only applicable when performing a search using the path property. If you are not using the path property in your search, the path.self property will have no effect.

https://experienceleague.adobe.com/docs/experience-manager-64/developing/platform/query-builder/querybuilder-predicate-reference.html?lang=en