you limit the number of results by using the rows parameter. You query
however may hit more documents (stored in numFound of the response) that
what will be returned back to you as rows prescribes.


On Fri, Mar 7, 2014 at 11:48 AM, Salman Akram <
salman.ak...@northbaysolutions.net> wrote:

> All,
>
> Is it possible to get partial counts in SOLR? The idea is to get the count
> but if its above a certain limit than just return that limit.
>
> 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??
>
> e.g. Something similar that we can do in MySQL:
>
> SELECT COUNT(*) FROM ( (SELECT * FROM table where 1 = 1) LIMIT 100) Alias
>
>
> --
> Regards,
>
> Salman Akram
>



-- 
Dmitry
Blog: http://dmitrykan.blogspot.com
Twitter: http://twitter.com/dmitrykan

Reply via email to