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 adm1n <ev...@gmail.com> on 2013/02/26 16:25:50 UTC
Dropping slow queries
Hi,
Is there a way to drop slow query in the distributed search?
In another words, is there a way to tell SolrCloud to wait x ms for the
response from shards in the cloud and to return the results which were
returned during the specified period of time (x ms)?
For example X=10 ms. There are 4 shards in the cloud. 3 of them served the
request in 3 ms and the last one in 15 seconds, so the total time for the
query will be 15 seconds. I prefer to return less results (from 3 fast
shards), but in much less time. Is there any configuration that can help to
achieve this?
thanks.
--
View this message in context: http://lucene.472066.n3.nabble.com/Dropping-slow-queries-tp4043074.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Dropping slow queries
Posted by adm1n <ev...@gmail.com>.
Thanks, but it not exactly what I need. According to the documentation "this
value *only* applies to the search and *not to requests* in general."
What I need is to effect the request - to drop it. To tell to the cloud to
drop all requests which take more then x msec. No matter why - slow search
in the shard, network issues between the shards, etc.
thanks
--
View this message in context: http://lucene.472066.n3.nabble.com/Dropping-slow-queries-tp4043074p4043592.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Dropping slow queries
Posted by Dotan Cohen <do...@gmail.com>.
On Thu, Feb 28, 2013 at 7:47 AM, adm1n <ev...@gmail.com> wrote:
> Am I missing something? which answer do you mean?
>
> And actually, just to clarify, the question was how can I force the partial
> results and drop the results from the slow shard?
>
Michael was referring to this post by David:
http://mail-archives.apache.org/mod_mbox/lucene-solr-user/201302.mbox/%3C1361895346858-4043089.post@n3.nabble.com%3E
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
Re: Dropping slow queries
Posted by adm1n <ev...@gmail.com>.
Am I missing something? which answer do you mean?
And actually, just to clarify, the question was how can I force the partial
results and drop the results from the slow shard?
--
View this message in context: http://lucene.472066.n3.nabble.com/Dropping-slow-queries-tp4043074p4043549.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Dropping slow queries
Posted by Michael Della Bitta <mi...@appinions.com>.
I'm pretty sure David's answer is correct.
When this happens, you'll see a "partialResults" field in the response.
Michael Della Bitta
------------------------------------------------
Appinions
18 East 41st Street, 2nd Floor
New York, NY 10017-6271
www.appinions.com
Where Influence Isn’t a Game
On Wed, Feb 27, 2013 at 9:29 AM, adm1n <ev...@gmail.com> wrote:
> Anybody?
>
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Dropping-slow-queries-tp4043074p4043387.html
> Sent from the Solr - User mailing list archive at Nabble.com.
Re: Dropping slow queries
Posted by adm1n <ev...@gmail.com>.
Anybody?
--
View this message in context: http://lucene.472066.n3.nabble.com/Dropping-slow-queries-tp4043074p4043387.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Dropping slow queries
Posted by David Vdd <da...@gmail.com>.
Maybe use the setting of the timeAllowed parameter. I don't know if it works
on multiple shards etc...
http://wiki.apache.org/solr/CommonQueryParameters#timeAllowed
--
View this message in context: http://lucene.472066.n3.nabble.com/Dropping-slow-queries-tp4043074p4043089.html
Sent from the Solr - User mailing list archive at Nabble.com.