Hi Gus,

Thanks for your helpful information.

> Have you tried this in Solr 9.6 or later? SOLR-17172 made a change that
may help you:
>
https://github.com/apache/solr/pull/2323/files#diff-3d7ebc10bdaedfb20fa269bc0c0a417fd326717a0b06c0b00ee19078d3894092R113

Regarding this, I've tested on Solr 9.7.0 and confirmed that, as expected,
when the processing time for highlighting and faceting exceeded the
specified timeAllowed, the query was interrupted, and the following
information was returned in the response header.

```
"responseHeader":{
"partialResults":true,
"partialResultsDetails":"Limits exceeded! (Faceting counts): Query limits:
[TimeAllowedLimit:LIMIT EXCEEDED]",
"partialResultsDetails":"Limits exceeded! (Highlighting process): Query
limits: [TimeAllowedLimit:LIMIT EXCEEDED]",
... ...
```

> Andrzej Bialecki, Chris Hostetter and I have been working to improve this
> area over the last couple versions. It's now looking like I'll be able to
> get additional checks between components into 9.8 when it comes out
> (soonish)...
> The hub of these changes is this ticket:
> https://issues.apache.org/jira/browse/SOLR-17138

Thank you for this great improvement; I’m eager to try it out!


Best regards,
Zhao

2024年11月8日(金) 12:46 Gus Heck <gus.h...@gmail.com>:

> Have you tried this in Solr 9.6 or later? SOLR-17172 made a change that may
> help you:
>
>
> https://github.com/apache/solr/pull/2323/files#diff-3d7ebc10bdaedfb20fa269bc0c0a417fd326717a0b06c0b00ee19078d3894092R113
>
> Andrzej Bialecki, Chris Hostetter and I have been working to improve this
> area over the last couple versions. It's now looking like I'll be able to
> get additional checks between components into 9.8 when it comes out
> (soonish)...
>
> The hub of these changes is this ticket:
> https://issues.apache.org/jira/browse/SOLR-17138
>
> -Best,
> Gus
>
> On Thu, Nov 7, 2024 at 10:00 PM チョウメイシュン <mingchun.zha...@gmail.com>
> wrote:
>
> > Hi,
> >
> > I’ve tried using timeAllowed in both Solr 8 and Solr 9, but it appears
> that
> > the highlight processing time is not included within the timeAllowed
> value.
> >
> > BTW, according to the reference guide under 'Major Changes in Solr 9', It
> > seems to imply that in Solr versions below 9.3, timeAllowed could be used
> > to cancel not only the core search processing but also other components
> > such as spellcheck and faceting.
> >
> >
> https://solr.apache.org/guide/solr/latest/upgrade-notes/major-changes-in-solr-9.html#use-of-timeallowed
> >
> > ```
> > use of timeAllowedQuery timeouts with timeAllowed are implemented
> > differently. It should be faster albeit have less fidelity – will not
> > timeout a query outside of core query processing (e.g. won’t cancel
> > spellcheck or faceting). Use solr.useExitableDirectoryReader to use the
> > previous behavior. Please share your experience with Solr developers! The
> > previous behavior should not be enabled if timeAllowed isn’t used because
> > unfortunately its performance tax is now imposed on all queries, even
> those
> > without timeAllowed.
> > ```
> >
> > Any ideas please?
> >
>
>
> --
> http://www.needhamsoftware.com (work)
> https://a.co/d/b2sZLD9 (my fantasy fiction book)
>

Reply via email to