Re: Passing Ids in query takes more time

2016-05-08 Thread Bhaumik Joshi
Thanks Jeff. TermsQueryParser worked for me. Thanks & Regards, Bhaumik Joshi From: Jeff Wartes <jwar...@whitepages.com> Sent: Thursday, May 5, 2016 8:19 AM To: solr-user@lucene.apache.org Subject: Re: Passing Ids in query takes more time An

Re: Passing IDs in query takes more time

2016-05-08 Thread Bhaumik Joshi
Thanks Erick. TermsQueryParser worked for me. Thanks & Regards, Bhaumik Joshi From: Erick Erickson <erickerick...@gmail.com> Sent: Friday, May 6, 2016 10:00 AM To: solr-user Subject: Re: Passing IDs in query takes more time Well, you're parsi

Re: Passing IDs in query takes more time

2016-05-06 Thread Erick Erickson
Well, you're parsing 80K IDs and forming them into a query. Consider what has to happen. Even in the very best case of the being evaluated first, for every doc that satisfies that clause the inverted index must be examined 80,000 times to see if that doc matches one of the IDs in your huge clause

Re: Passing Ids in query takes more time

2016-05-05 Thread Jeff Wartes
An ID lookup is a very simple and fast query, for one ID. Or’ing a lookup for 80k ids though is basically 80k searches as far as Solr is concerned, so it’s not altogether surprising that it takes a while. Your complaint seems to be that the query planner doesn’t know in advance that should be

Passing Ids in query takes more time

2016-05-05 Thread Bhaumik Joshi
Hi, I am retrieving ids from collection1 based on some query and passing those ids as a query to collection2 so the query to collection2 which contains ids in it takes much more time compare to normal query. Que. 1 - While passing ids to query why it takes more time compare to normal query

Passing IDs in query takes more time

2016-05-05 Thread Bhaumik Joshi
Hi, I am retrieving ids from collection1 based on some query and passing those ids as a query to collection2 so the query to collection2 which contains ids in it takes much more time compare to normal query. Que. 1 - While passing ids to query why it takes more time compare to normal query