You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Thrinadh Kuppili <th...@gmail.com> on 2016/06/16 00:14:57 UTC
Limit Solr to search for only 500 records based on the search
criteria
Hi,
When i am trying to search in Solr based on given search criteria it is
searching all the records which is taking some massive time to complete the
Query.
I want a solution where i can restrict search to find only till it find 500
records and then solr should stop the querying.
Since there are more than 10 million records and when searching for text
like "AND" which is very common word. It is taking 18000 milliseconds some
time even more but i need only the top 500 records which has contains "AND"
in it
Appreciate the help in advance.
--
View this message in context: http://lucene.472066.n3.nabble.com/Limit-Solr-to-search-for-only-500-records-based-on-the-search-criteria-tp4282519.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Limit Solr to search for only 500 records based on the search
criteria
Posted by Thrinadh Kuppili <th...@gmail.com>.
Thanks Eric for the info.
I have figured out a solution to use time allowed parameter and it worked
for my need.
--
View this message in context: http://lucene.472066.n3.nabble.com/Limit-Solr-to-search-for-only-500-records-based-on-the-search-criteria-tp4282519p4284583.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Limit Solr to search for only 500 records based on the search criteria
Posted by Erick Erickson <er...@gmail.com>.
What is? You have to separate getting the response from rendering, so first
I'd measure with curl or similar. Second, returning 1,000 records is
usually a bad idea, when returning that many rows you may want to use the
export handler.
Sent from my phone
On Jun 16, 2016 3:25 AM, "Thrinadh Kuppili" <th...@gmail.com> wrote:
> Thanks Eric,
> Can you please elaborate "I'd also suggest that your response times are
> tunable" ??
>
> I have set the start to 0 and rows to 1000 initially and entered a search
> field as below
>
> CompanyName : private limited
>
> when i clicked on search button in the UI it is not responsive at all.
>
> When i remove the start and rows values it is good and resulting in 65k
> records out of which 10 are displayed in the solr UI.
>
>
>
>
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Limit-Solr-to-search-for-only-500-records-based-on-the-search-criteria-tp4282519p4282559.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
Re: Limit Solr to search for only 500 records based on the search
criteria
Posted by Thrinadh Kuppili <th...@gmail.com>.
Thanks Eric,
Can you please elaborate "I'd also suggest that your response times are
tunable" ??
I have set the start to 0 and rows to 1000 initially and entered a search
field as below
CompanyName : private limited
when i clicked on search button in the UI it is not responsive at all.
When i remove the start and rows values it is good and resulting in 65k
records out of which 10 are displayed in the solr UI.
--
View this message in context: http://lucene.472066.n3.nabble.com/Limit-Solr-to-search-for-only-500-records-based-on-the-search-criteria-tp4282519p4282559.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Limit Solr to search for only 500 records based on the search criteria
Posted by Erick Erickson <er...@gmail.com>.
This is pretty much logically impossible. I'd also suggest that your
response times
are tunable, even a very common word such as "AND" shouldn't be taking 18
seconds for 10M docs.
Say you're returning the top 100 doc. You can't know whether the last document
scored should be in the top 100 until you score it. So to tell Solr to
"stop searching
after 100 docs" would not return the best 100.
FWIW,
Erick
On Wed, Jun 15, 2016 at 5:14 PM, Thrinadh Kuppili
<th...@gmail.com> wrote:
> Hi,
>
> When i am trying to search in Solr based on given search criteria it is
> searching all the records which is taking some massive time to complete the
> Query.
>
> I want a solution where i can restrict search to find only till it find 500
> records and then solr should stop the querying.
>
> Since there are more than 10 million records and when searching for text
> like "AND" which is very common word. It is taking 18000 milliseconds some
> time even more but i need only the top 500 records which has contains "AND"
> in it
>
> Appreciate the help in advance.
>
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Limit-Solr-to-search-for-only-500-records-based-on-the-search-criteria-tp4282519.html
> Sent from the Solr - User mailing list archive at Nabble.com.