There are search methods that don't require a filter, but you are
right that there is nothing quite as simple as search(q).
>From http://www.gossamer-threads.com/lists/lucene/java-user/95032 you can use
TopDocs tp = ms.search(lucquery, 1);
And then the total count is in tp.totalHits
--
Ian.
O
Hi,
I am currently mainly interested in the overall number of matches in a
document collection (several GBs) given a particular query.
At the moment I am not interested in the matching documents themselves;
just the number would be sufficient.
In previous versions of lucene the Searcher class h