Expand my Community achievements bar.

SOLVED

How to Increase search result limit in AEM ?

Avatar

Level 2

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.

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@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

View solution in original post

4 Replies

Avatar

Correct answer by
Community Advisor

@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

Avatar

Community Advisor

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.

 

sherinregi_0-1692769373357.png

 

Avatar

Community Advisor

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.