Re: Stop a long running query

2022-05-03 Thread Mikhail Khludnev
Hello, Rahul. Well, if facets are counted over docvalues or method=enum and hit directory I/O and abandoned by ExitableDirectoryOrSomtehing. see CloudExitableDirectoryReaderTest. If this resolution is not enough one can extend FacetComponent and check timeAllowed inside the routine. The first stat

Re: Stop a long running query

2022-05-02 Thread Rahul Goswami
Hi Mikhail, Since the timeAllowed parameter would cause partial results to return, the response may not be a correct one. In certain scenarios, it might be better to return a failure rather than partial results. Also, a query may spend more time in faceting than in the query phase. Since the timeA

Re: Stop a long running query

2022-04-29 Thread Mikhail Khludnev
Hello, Rahul. I probably not fully get what you expect, but curiously I believe that timeAllowed does what you expect. Just clarify your context, please. On Fri, Apr 29, 2022 at 12:22 AM Rahul Goswami wrote: > Hello, > I am using Solr 7.7.2. Is it possible to stop a long running request ? > Usin

Stop a long running query

2022-04-28 Thread Rahul Goswami
Hello, I am using Solr 7.7.2. Is it possible to stop a long running request ? Using the "timeAllowed" parameter would return partial results, but I want the query to outright terminate and ideally throw an exception so as to not utilize additional resources. Thanks, Rahul