Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
- Home
- General
- Feature Requests
- RE: Liferay Objects API - pagesize should not apply to aggregations / facets
RE: Liferay Objects API - pagesize should not apply to aggregations / facets
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.
Feature Request Created: https://liferay.atlassian.net/browse/LPS-205307
Powered by Liferay™