: Reason: In an index with millions of documents I don't want to know that a : certain query matched 1 million docs (of course it will take time to : calculate that). Why don't just stop looking for more results lets say : after it finds 100 docs? Possible??
but if you care about sorting, ie: you want the top 100 documents sorted by score, or sorted by date, you still have to "collect" all 1 million matches in order to know what the first 100 are. if you really don't care about sorting, you can use the "timAllowed" option to tell the seraching method to do the best job it can in an (approximated) limited amount of time, and then pretend that the docs collected so far represent the total number of matches... https://cwiki.apache.org/confluence/display/solr/Common+Query+Parameters#CommonQueryParameters-ThetimeAllowedParameter -Hoss http://www.lucidworks.com/