When putting a restriction on facets such as
I would expect the facets with the top 10 results to be returned which appears to be true but it seems some are randomly missing (like the 10 are somehow spread across all results as opposed to the top ten). Removing the max restriction and only returning the first ten entries shows the correct results.
The two code examples should return the exact same thing but the don't. The below code is my workaround but as you can imaging this could potentially take a dangerous amount of memory due to it effectively loading the entire index.
My WebResult class has OneToOne relations to various other objects (e.g. country)
hibernate 3.6.4, hibernate search 3.4