Hello!
I have used tags as part of my index so that I can query specific to index
fulltext=venue
type=cq:Page
path=/content/data
p.limit=10
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hi @zankarshah
You can try using the below in Query builder
fulltext=venue
type=cq:Page
path=/content/data
p.limit=10
p.indexTag=customSearch
p.indexTag - if set will include an index tag option in the query, It is mentioned in the documentation[0]
Thanks,
Sandeep
Hi,
Please elaborate you are query.
You are trying to fing pages with tags or finding pages with full text?
My main question is how to use the OPTION in Query Builder Debugger tool
In XPATH I can search results with OPTION as follow
/jcr:root/content/data/element(*, cq:Page)[(jcr:contains(., 'venue'))] option (index tag customSearch)
What is the equivalent way to do via Query Builder Debugger ?
Thanks,
Zankar
Hi @zankarshah
You can try below from CRX query, I am not sure if it is possible to use OPTION with querybuilder debugger.
Note each index can have multiple tags, and the same tag can be used in multiple indexes. The syntax to limit a query to a certain tag is: <query> option(index tag <tagName>)
:
XPATH
/jcr:root/content//element(*, nt:file)[jcr:contains(., 'test')] option(index tag x)
SQL
select * from [nt:file]
where ischildnode('/content')
and contains(*, 'test')
option(index tag [x])
Hi @zankarshah , I am working on a similar issue, let me know if you found a workaround to fix it
Views
Replies
Total Likes
hi @sateaswa94
I was not able to use Option in query builder. Luckily all my nodes were having certain property which I could use easily to identify
Thanks!
Zankar
Views
Replies
Total Likes
Hi @zankarshah
You can try using the below in Query builder
fulltext=venue
type=cq:Page
path=/content/data
p.limit=10
p.indexTag=customSearch
p.indexTag - if set will include an index tag option in the query, It is mentioned in the documentation[0]
Thanks,
Sandeep
This should be the accepted solution. Thanks sandeep
Views
Replies
Total Likes
Thank you for this. This perfectly works
Views
Replies
Total Likes