How to Increase search result limit in AEM ? | Community
Skip to main content
Level 2
August 23, 2023
Solved

How to Increase search result limit in AEM ?

  • August 23, 2023
  • 3 replies
  • 1480 views

Hi Team,

 

While searching for any asset in AEM, the search's result is capped at 1000. I want to see all the search results.

 

Is there any way to increase the search result limit, or is this the default behaviour of AEM?

 

Please help me to resolve the issue.

 

Thanks in advance.

 

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 Harwinder-singh

@kaibalyajena_123  Add a p.limit=-1 to your query builder parameters and it will give you all results. 

 

It should look something like this 

path=/content
1_property=sling:resourceType
1_property.value=foundation/components/text
1_property.operation=like
p.limit=-1
orderby=path

3 replies

Harwinder-singh
Community Advisor
Harwinder-singhCommunity AdvisorAccepted solution
Community Advisor
August 23, 2023

@kaibalyajena_123  Add a p.limit=-1 to your query builder parameters and it will give you all results. 

 

It should look something like this 

path=/content
1_property=sling:resourceType
1_property.value=foundation/components/text
1_property.operation=like
p.limit=-1
orderby=path
sherinregi-1
Community Advisor
Community Advisor
August 23, 2023

Hi @kaibalyajena_123 

If you are searching from the search panel in AEM , yes it is a default behavior as p.guessTotal is set to 1000 by default.

If you want to override you can update on below file in libs which will work for you but will not be recommended.

 

/libs/granite/ui/components/shell/omnisearch/overlay/overlay.jsp

Update p.guessTotal = 1000 as per your requirement.

 

 

Sachin_Arora_
Community Advisor
Community Advisor
August 23, 2023

By default 10 results are shown but you can increase the limit using p.limit=N or p.limit=-1(for all results) where N stands for number of result you want to see.

April 12, 2024

@sachin_arora_ @harwinder-singh @kaibalyajena_123  where do i add/change the limits in default component?

 

Thank you