Hibernate search (lucene) has an issue: If you apply a criteria restriction to FullTextQuery
and apply pagination restrictions, i.e. criteria.setMaxResults()
and criteria.setFirstResult()
, the fullTextQuery.getResultSize()
returns a count which doesn't include the criteria restriction.
HSEARCH-753 acknoweldges this issue and resolves it (only so far as a warning exception is thrown)
Could anyone offer suggestions on how I may work around this issue?