RE: Liferay Objects API - pagesize should not apply to aggregations / facets

Jamie Sammons, modified 1 Year ago. New Member Posts: 3 Join Date: 1/8/24 Recent Posts

Currently the search-result in Liferay Objects can be limited by a page-size. For some reason this size also applies to the returned number of aggregations/facets.
This makes it pretty much impossible to let the user page through a search-result correctly, using facetted searching.

This normally is the behaviour on SOLR, Elastic, etc.... The facetting includes all results, if not specifically being limited by something.

An example - you have an object using a 2 char iso-code for countries - you have 100 objects with 50 different countries....

You aggregate by country and have pagesize of 5 - no other query in place.

You get back 5 items and 5 country-facets, all have the correct count of occurrences throughout the entire result, not just the first page.
As this seems to be intended behaviour we'd like to suggest another parameter or aggregations-syntax to let the system return all facets throughout the entire result matching the filter. This has also been observed by Fabian Bouche and was expecting all facets to be returned, too.

thumbnail
Jamie Sammons, modified 1 Year ago. Expert Posts: 367 Join Date: 9/5/14 Recent Posts

Feature Request Created: https://liferay.atlassian.net/browse/LPS-205307