Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
0.1-incubating
-
None
Description
Presently, the getNumHits() method reconstructs the given query by only translating the queryCriteria that are direct children of the Query object. This means that the only queries that receive correct results from this method are those that contain only one term or range criterion.
This bug can easily be fixed by instead using a recursive procedure that will translate each criterion into data understood by Lucene before doing the same to its children.