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)