Query for AEM Tags along with property search in bulk set of nodes | Community
Skip to main content
archana_r
Level 2
November 6, 2023
Solved

Query for AEM Tags along with property search in bulk set of nodes

  • November 6, 2023
  • 1 reply
  • 585 views

Hi All, 

 

I have a requirement to query for matching tags on parent node and matching property on child nodes.  we need to query each time, based on the user selection.  As this a bulk query, can we create an index that fit both my searches?  Or is there a better way to restructure content to optimize query?

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 Sudheer_Sundalam

@archana_r ,

 

You may write both SQL2 or XPath query to find the matching nodes based on the tags.

If we know the more details on the query requirement, we maybe able suggest on how to approach the query.

After you figure out the query, you can use this Oak Index generator tools to create indexes to improve query performance

https://oakutils.appspot.com/generate/index

 

1 reply

Sudheer_Sundalam
Community Advisor
Sudheer_SundalamCommunity AdvisorAccepted solution
Community Advisor
November 6, 2023

@archana_r ,

 

You may write both SQL2 or XPath query to find the matching nodes based on the tags.

If we know the more details on the query requirement, we maybe able suggest on how to approach the query.

After you figure out the query, you can use this Oak Index generator tools to create indexes to improve query performance

https://oakutils.appspot.com/generate/index