Re: "timeAllowed" param with "numFound" having a count value but doc list is empty

2021-01-22 Thread Aleksandr Yaroslavskiy
Hi, I am using timeAllowed and a collection with shards. Docs list contains results only if QTime(query time) < timeAllowed. In other cases (partialResults=true in responseHeader) docs are empty. /solr/collection_with_shards/select?etimeAllowed=1000&q=some_slow_query docs is empty If access a spe

Re: TimeAllowed and Partial Results

2020-09-22 Thread Erick Erickson
TimeAllowed stops looking when the timer expires. If it hasn’t found any docs with a non-zero score by then, you’ll get zero hits. It has to be this way, because Solr doesn’t know whether a doc is a hit until Solr scores it. So this is normal behavior, assuming that some part of the processing

Re: "timeAllowed" param with "numFound" having a count value but doc list is empty

2020-09-16 Thread Mark Robinson
Thanks Colvin! All the responses were helpful. Best Mark On Wed, Sep 16, 2020 at 4:06 AM Colvin Cowie wrote: > Hi Mark, > > If queries taking 10 (or however many) seconds isn't acceptable, then > either you need to a) prevent or optimize those queries, b) improve the > performance of your index

Re: "timeAllowed" param with "numFound" having a count value but doc list is empty

2020-09-16 Thread Mark Robinson
Thanks much Bram! Best, Mark On Wed, Sep 16, 2020 at 3:59 AM Bram Van Dam wrote: > There are a couple of open issues related to the timeAllowed parameter. > For instance it currently doesn't work on conjunction with the > cursorMark parameter [1]. And on Solr 7 it doesn't work at all [2]. > > B

Re: "timeAllowed" param with "numFound" having a count value but doc list is empty

2020-09-16 Thread Colvin Cowie
Hi Mark, If queries taking 10 (or however many) seconds isn't acceptable, then either you need to a) prevent or optimize those queries, b) improve the performance of your index, c) use timeAllowed and accept that queries taking that long may fail or provide incomplete results, or d) a combination

Re: "timeAllowed" param with "numFound" having a count value but doc list is empty

2020-09-16 Thread Bram Van Dam
There are a couple of open issues related to the timeAllowed parameter. For instance it currently doesn't work on conjunction with the cursorMark parameter [1]. And on Solr 7 it doesn't work at all [2]. But other than that, when users have a lot of query flexibility, it's a pretty good idea to lim

Re: "timeAllowed" param with "numFound" having a count value but doc list is empty

2020-09-15 Thread Mark Robinson
Thanks Dominique! So is this parameter generally recommended or not. I wanted to try with a value of 10s. We are not using it now. My goal is to prevent a query from running more than 10s on the solr server and choking it. What is the general recommendation. Thanks! Mark On Tue, Sep 15, 2020 at

Re: "timeAllowed" param with "numFound" having a count value but doc list is empty

2020-09-15 Thread Dominique Bejean
Hi, 1. Yes, your analysis is correct 2. Yes, it can occurs too with very slow query. Regards Dominique Le mar. 15 sept. 2020 à 15:14, Mark Robinson a écrit : > Hi, > > When in a sample query I used "timeAllowed" as low as 10mS, I got value for > > "numFound" as say 2000, but no docs were ret

Re: timeAllowed?

2016-11-30 Thread Walter Underwood
We use it on all requests. We are running 4.10.4 for most searches. We set a pretty high timeAllowed, either five or thirty seconds, depending on the service. wunder Walter Underwood wun...@wunderwood.org http://observer.wunderwood.org/ (my blog) > On Nov 30, 2016, at 6:28 PM, William Bell wr

Re: timeAllowed

2016-03-11 Thread Anil
Sorry for that. i could not share direct query. response header is "QTime":5536, "params":{ "hl.fragsize":"50", "indent":"true", "hl.simple.pre":"", "collection":"case-collection_2011", "hl.fl":"*", "wt":"json", "hl":"true", "rows":"10", "d

Re: timeAllowed

2016-03-11 Thread Upayavira
The screenshots didn't come through. Can you paste text into email? The query URL is the most important thing. Thx On Fri, 11 Mar 2016, at 02:00 PM, Anil wrote: > HI Upayavira, > > Thanks for your response. Following are the screenshots of the same > query with and without partial results in

Re: timeAllowed

2016-03-11 Thread Anil
HI Upayavira, Thanks for your response. Following are the screenshots of the same query with and without partial results in the response. Please let me know if you have any questions. [image: Inline images 1] [image: Inline images 2] Regards, Anil On 11 March 2016 at 19:13, Upayavira wrote:

Re: timeAllowed

2016-03-11 Thread Upayavira
Show us the query URL. It would seem like your timeallowed isn't taking effect. Upayavira On Fri, 11 Mar 2016, at 12:48 PM, Anil wrote: > Thank you. > > in my test, i have timeallowed 10 ms. response has no partial results (no > partial flag in the response header) and Qtime is 200 ms. so little

Re: timeAllowed

2016-03-11 Thread Anil
Thank you. in my test, i have timeallowed 10 ms. response has no partial results (no partial flag in the response header) and Qtime is 200 ms. so little confused. On 11 March 2016 at 18:07, Upayavira wrote: > > > On Fri, 11 Mar 2016, at 07:22 AM, Anil wrote: > > HI, > > > > is timeallowed is m

Re: timeAllowed

2016-03-11 Thread Upayavira
On Fri, 11 Mar 2016, at 07:22 AM, Anil wrote: > HI, > > is timeallowed is max threshold of Qtime ? or overall time ? Please > clarify. I do not understand the difference. Basically, when a query is happening, a collector gathers matching documents. The timeallowed parameter sets a point at whi

Re: timeAllowed in not honoring

2014-05-11 Thread Aman Tandon
Apologies for late reply, Thanks Toke for a great explaination :) I am new in solr so i am unaware of DocValues, so please can you explain. With Regards Aman Tandon On Fri, May 2, 2014 at 1:52 PM, Toke Eskildsen wrote: > On Thu, 2014-05-01 at 23:03 +0200, Aman Tandon wrote: > > So can you expla

Re: timeAllowed in not honoring

2014-05-02 Thread Toke Eskildsen
On Thu, 2014-05-01 at 23:03 +0200, Aman Tandon wrote: > So can you explain how enum is faster than default. The fundamental difference is than enum iterates terms and counts how many of the documents associated to the terms are in the hits, while fc iterates all hits and updates a counter for the

Re: timeAllowed in not honoring

2014-05-02 Thread Toke Eskildsen
On Thu, 2014-05-01 at 23:38 +0200, Shawn Heisey wrote: > I was surprised to read that fc uses less memory. I think that is an error in the documentation. Except for special cases, such as asking for all facet values on a high cardinality field, I would estimate that enum uses less memory than fc.

Re: timeAllowed in not honoring

2014-05-01 Thread Shawn Heisey
On 5/1/2014 3:03 PM, Aman Tandon wrote: > Please check that link > http://wiki.apache.org/solr/SimpleFacetParameters#facet.method there is > something mentioned in facet.method wiki > > *The default value is fc (except for BoolField which uses enum) since it > tends to use less memory and is faster

Re: timeAllowed in not honoring

2014-05-01 Thread Aman Tandon
Hi Shawn, Please check that link http://wiki.apache.org/solr/SimpleFacetParameters#facet.method there is something mentioned in facet.method wiki *The default value is fc (except for BoolField which uses enum) since it tends to use less memory and is faster then the enumeration method when a fiel

Re: timeAllowed in not honoring

2014-05-01 Thread Shawn Heisey
On 4/30/2014 5:53 PM, Aman Tandon wrote: > Shawn -> Yes we have some plans to move to SolrCloud, Our total index size > is 40GB with 11M of Docs, Available RAM 32GB, Allowed heap space for solr > is 14GB, the GC tuning parameters using in our server > is -XX:+UseConcMarkSweepGC -XX:+PrintGCApplicat

Re: timeAllowed in not honoring

2014-04-30 Thread Aman Tandon
Jeff -> Thanks Jeff this discussion on jira is really quite helpful. Thanks for this. Shawn -> Yes we have some plans to move to SolrCloud, Our total index size is 40GB with 11M of Docs, Available RAM 32GB, Allowed heap space for solr is 14GB, the GC tuning parameters using in our server is -XX:+U

Re: timeAllowed in not honoring

2014-04-30 Thread Jeff Wartes
It¹s not just FacetComponent, here¹s the original feature ticket for timeAllowed: https://issues.apache.org/jira/browse/SOLR-502 As I read it, timeAllowed only limits the time spent actually getting documents, not the time spent figuring out what data to get or how. I think that means the primar

Re: timeAllowed in not honoring

2014-04-30 Thread Shawn Heisey
On 4/29/2014 11:43 PM, Aman Tandon wrote: > My heap size is 14GB and i am not using solr cloud currently, 40GB index > is replicated from master to two slaves. > > I read somewhere that it return the partial results which is computed by > the query in that specified amount of time which is define

Re: timeAllowed in not honoring

2014-04-30 Thread Mikhail Khludnev
On Wed, Apr 30, 2014 at 2:16 PM, Aman Tandon wrote: > name="time">3337.0 > 6739.0 > Most time is spent in facet counting. FacetComponent doesn't checks timeAllowed right now. You can try to experiment with facet.method=enum or even with https://issues.apache.org/jira/b

Re: timeAllowed in not honoring

2014-04-30 Thread Aman Tandon
Hi Salman, here is the my debug query dump please help!. I am unable to find the wildcards in it. true 0 10080 884159 629472 491426 259356 259029 257193 195077 193569 179369 115356 111644 86794 80621 72815 68982 65082

Re: timeAllowed in not honoring

2014-04-29 Thread Salman Akram
I had this issue too. timeAllowed only works for a certain phase of the query. I think that's the 'process' part. However, if the query is taking time in 'prepare' phase (e.g. I think for wildcards to get all the possible combinations before running the query) it won't have any impact on that. You

Re: timeAllowed in not honoring

2014-04-29 Thread Aman Tandon
Shawn this is the first time i raised this problem. My heap size is 14GB and i am not using solr cloud currently, 40GB index is replicated from master to two slaves. I read somewhere that it return the partial results which is computed by the query in that specified amount of time which is defin

Re: timeAllowed in not honoring

2014-04-29 Thread Shawn Heisey
On 4/29/2014 10:05 PM, Aman Tandon wrote: > I am using solr 4.2 with the index size of 40GB, while querying to my index > there are some queries which is taking the significant amount of time of > about 22 seconds *in the case of minmatch of 50%*. So i added a parameter > timeAllowed = 2000 in my q

Re: timeAllowed query parameter not working?

2014-03-29 Thread Erick Erickson
I'm not even sure what this is intended to produce. All documents with terms two or more characters long? What use-case is this intended to solve? Because unless there's a _really_ good reason to do this, I'd just dis-allow pure-wildcard queries on the app end. This seems like an "XY" question. P

RE: timeAllowed query parameter not working?

2014-03-27 Thread Michael Ryan
Unfortunately the timeAllowed parameter doesn't apply to the part of the processing that makes wildcard queries so slow. It only applies to a later part of the processing when the matching documents are being collected. There's some discussion in the original ticket that implemented this (https

Re: timeAllowed flag in the response

2012-06-09 Thread Lance Norskog
Please file a JIRA. And a patch if you are so inclined. On Fri, Jun 8, 2012 at 4:55 AM, Michael Kuhlmann wrote: > Am 08.06.2012 11:55, schrieb Laurent Vaills: > >> Hi Michael, >> >> Thanks for the details that helped me to take a deeper look in the source >> code. I noticed that each time a TimeE

Re: timeAllowed flag in the response

2012-06-08 Thread Michael Kuhlmann
Am 08.06.2012 11:55, schrieb Laurent Vaills: Hi Michael, Thanks for the details that helped me to take a deeper look in the source code. I noticed that each time a TimeExceededException is caught the method setPartialResults(true) is called...which seems to be what I'm looking for. I have to i

Re: timeAllowed flag in the response

2012-06-08 Thread Laurent Vaills
Hi Michael, Thanks for the details that helped me to take a deeper look in the source code. I noticed that each time a TimeExceededException is caught the method setPartialResults(true) is called...which seems to be what I'm looking for. I have to investigate, since this partialResults does not s

Re: timeAllowed flag in the response

2012-06-08 Thread Michael Kuhlmann
Hi Laurent, alas there is currently no such option. The time limit is handled by an internal TimeLimitingCollector, which is used inside SolrIndexSearcher. Since the using method only returns the DocList and doesn't have access to the QueryResult, it won't be easy to return this information in

Re: timeAllowed flag in the response

2012-06-07 Thread Walter Underwood
Are you requesting a large number of rows? If so, request smaller chunks, like ten at a time. Then you can show those with a "waiting" note. wunder On Jun 7, 2012, at 1:14 PM, Laurent Vaills wrote: > Hi everyone, > > We have some grouping queries that are quite long to execute. Some are too >