Hello Everyone -I am trying to get all the components that are on the website. I wrote a below query to get the component,
path=/content/my-site/en
1_property=sling:resourceType
p.limit=-1
Note I selected "Extract facets" at the top to get all components.
This query works for subpages so there is no problem in the query.
But this query is not working at home page level as it needs to traverse a lot of nodes. Hence I increased the LimitReads and LimitInMemory property in the JMX console. Also increased Xmx and MaxPermSize values
But still AEM is not responsive and it keeps loading and responsive after a few mins. In the logs it recommended to have an index created so I am planning to create an index for my above query but the index generator is not working(below URL).
Oak Index Definition Generator in AEM
http://oakutils.appspot.com/generate/index
Could anyone tell me how to write a index for above query ?
Views
Replies
Total Likes
@Mario248 Could you try the below ?
path=/content/my-site/en
property=sling:resourceType
property.operation=exists
p.limit=-1
Please check if you have index like this for slingresourceType
You can run in explain query tool and see
http://localhost:4502/libs/granite/operations/content/diagnosistools/queryPerformance.html
I just tested it in my local, i am not getting infinite cost for the same query
Thanks for your response. Even after query index I get below error
Yeah, I have the same index but the node name alone is different but node name can be anything I guess
Any other clue?
Views
Likes
Replies
Views
Likes
Replies