So still use Ere's suggestion. There's no reason at all to
search all million every time. If start=0, just search the first
N (say 1,000). Keep doing that until you don't get docs
then add more docs.

Or fire off the first query then, when you know there are
going to be pagination, fire off the full query (up to millions)
in the background and use the CursorMark stuff to efficiently
page through.

If you need to return lots and lots of rows, consider using the
export functionality and/or Streaming Aggregation.

Best,
Erick

On Tue, Jan 5, 2016 at 7:45 AM, Mugeesh Husain <muge...@gmail.com> wrote:
> @Ere Maijala
>>>question is: WHY do you need to search for millions of IDs?
>
> I am explaining:
> I have a list of ID's of 1 Millions
> I will search  in solr suppose like below
> IP:8083/select?q=ID:(1,4,7,.......upto 1 Millions)&rows=10&start=0, then it
> will display 10 result ,
> for pagination next search will display
> IP:8083/select?q=ID:(1,4,7,.......upto 1 Millions)&rows=20&start=10 and so
> on.
>
> like eCommerce website while down to scrollbar something like that,
>
>
>
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/how-to-search-miilions-of-record-in-solr-query-tp4248360p4248689.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to