Fixed
Details
Assignee
Fabio Massimo ErcoliFabio Massimo ErcoliReporter
Yoann RodièreYoann RodièreComponents
Sprint
NoneFix versions
Priority
Major
Details
Details
Assignee
Fabio Massimo Ercoli
Fabio Massimo ErcoliReporter
Yoann Rodière
Yoann RodièreComponents
Sprint
None
Fix versions
Priority
Created September 11, 2018 at 1:24 PM
Updated January 31, 2019 at 3:08 PM
Resolved December 12, 2018 at 10:28 AM
At the very least we should implement it by calling
SearchResult.getHitCount()
.If necessary, we can think about a better performing solution that would not fetch hits when we only need the result count. We could take advantage of a new, dedicated SPI such as
SearchQuery.executeCount()
, we could set theSearchQuery
result limit to 0 before executing it in that specific case.For testing, see org/hibernate/search/v6poc/integrationtest/orm/OrmAnnotationMappingIT.java:398 and org/hibernate/search/v6poc/integrationtest/orm/OrmProgrammaticMappingIT.java:393