Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

what is the field more:false in api responce?

Avatar

Level 7

akshaybhujbale_0-1661254785046.png

what is the meaning of this field more: false

I am getting this as responce of below api.

http://localhost:4503/bin/querybuilder.json?type=cq:Page&path=/content&p.limit=100&p.offset=1100

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

The response can be interpreted as the following outcome:

  • total=1131, more=false - Indicates that total number of hits is 1131. The UI can show up to 31 results as part of the first page and provide pagination for the next three pages. You can also use this implementation to display a descriptive text like “1131 results found”.
  • total=1131, more=true - Indicates that the total number of hits is greater than 1131 and the exact count is not known. The UI can show up to 31 as part of the first page and provide pagination for the next 31 pages. You can also use this to display a text like “more than1131 results found”. As the user goes to the next pages calls made to the Query Builder would increase the limit of guessTotal and also of the offset and limit parameters.


Arun Patidar

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

The response can be interpreted as the following outcome:

  • total=1131, more=false - Indicates that total number of hits is 1131. The UI can show up to 31 results as part of the first page and provide pagination for the next three pages. You can also use this implementation to display a descriptive text like “1131 results found”.
  • total=1131, more=true - Indicates that the total number of hits is greater than 1131 and the exact count is not known. The UI can show up to 31 as part of the first page and provide pagination for the next 31 pages. You can also use this to display a text like “more than1131 results found”. As the user goes to the next pages calls made to the Query Builder would increase the limit of guessTotal and also of the offset and limit parameters.


Arun Patidar