query particula property value contains jcr query builder | Community
Skip to main content
Level 2
October 16, 2015
Solved

query particula property value contains jcr query builder

  • October 16, 2015
  • 1 reply
  • 883 views

hi,
I want to ask a question.
I want to search for a particular sub-string across all the property's values across all nodes starting from a rootnode.
How to build the query for this?

i need to return all the instances where the  jcr:links property contains /catalog/menu .

The below is not returning anything, please let me know.

type=cq:Page
property=jcr:links
property.value=/catalog/menu"
p.hits=full
path=/content

Thanks

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 Ojjis

Have you tried using the full text search on relative paths ?

 

//more code... map.put("path", "/content"); map.put("type", "cq:Page"); map.put("group.p.or", "true"); map.put("group.1_fulltext", "/catalog/menu"); map.put("group.1_fulltext.relPath", "jcr:links"); map.put("group.2_fulltext", "something else of interes"); map.put("group.2_fulltext.relPath", "on another node perhaps"); //... more more code

/Johan

1 reply

Ojjis
OjjisAccepted solution
Level 7
October 16, 2015

Have you tried using the full text search on relative paths ?

 

//more code... map.put("path", "/content"); map.put("type", "cq:Page"); map.put("group.p.or", "true"); map.put("group.1_fulltext", "/catalog/menu"); map.put("group.1_fulltext.relPath", "jcr:links"); map.put("group.2_fulltext", "something else of interes"); map.put("group.2_fulltext.relPath", "on another node perhaps"); //... more more code

/Johan