Hi Everyone,
I am using query builder api to get search results like below:
fulltext=baggage
group.p.or=true
group.1_group.path=/content/project1/ph/en/home
group.1_group.type=cq:PageContent
group.2_group.path=/content/dam/project1
group.2_group.type=dam:Asset
group.2_group.p.not=true
group.2_group.property=jcr:content/metadata/@dc:format
group.2_group.property.value=application/json
p.limit=-1
When I am checking in http://localhost:4502/libs/granite/operations/content/diagnosistools/queryPerformance.html
It is showing along with cqPageLucene Lucene index also triggering which is impacting AEM environment performance.
Error log when querying:
Is there any option to resolve this issue? Experts need your solution on this, Thanks in advance!
Solved! Go to Solution.
To improve the situation effectively, consider exploring following options.
fulltext=baggage
path=/content/project1/ph/en/home
type=cq:PageContent
For DAM assets (exclude JSON files):
fulltext=baggage
path=/content/dam/project1
type=dam:Asset
property=jcr:content/metadata/@dc:format
property.value!=application/json
This ensures the DAM-specific index (damAssetLucene) is used exclusively for assets, avoiding the costly generic Lucene index.
<index name="customPageLucene" type="lucene">
<property name="path" value="/content/project1"/>
<property name="type" value="cq:PageContent"/>
<property name="includePropertyTypes">
<value>metadata/@dc:format</value>
<value>jcr:title</value>
</property>
</index>
This will ensure the query targets a specific index instead of the generic one.
Further reading:
Query and Indexing Best Practices
To improve the situation effectively, consider exploring following options.
fulltext=baggage
path=/content/project1/ph/en/home
type=cq:PageContent
For DAM assets (exclude JSON files):
fulltext=baggage
path=/content/dam/project1
type=dam:Asset
property=jcr:content/metadata/@dc:format
property.value!=application/json
This ensures the DAM-specific index (damAssetLucene) is used exclusively for assets, avoiding the costly generic Lucene index.
<index name="customPageLucene" type="lucene">
<property name="path" value="/content/project1"/>
<property name="type" value="cq:PageContent"/>
<property name="includePropertyTypes">
<value>metadata/@dc:format</value>
<value>jcr:title</value>
</property>
</index>
This will ensure the query targets a specific index instead of the generic one.
Further reading:
Query and Indexing Best Practices
Views
Like
Replies