1) timeAllowed does limit spellcheck (at least in all the code paths i can think of that may be "slow") ... have you tried it?
2) what is your configuration for the dictionaries you are using? 3) be wary of https://github.com/apache/lucene/issues/12077 : Date: Tue, 2 May 2023 00:04:27 +0530 : From: kumar gaurav <kg2...@gmail.com> : Reply-To: users@solr.apache.org : To: solr-u...@lucene.apache.org, users@solr.apache.org : Subject: Re: Help regarding solr request timeout because of spellcheck : component performance. : : Just a reminder if someone can help here. : : On Mon, 24 Apr 2023 at 13:40, kumar gaurav <kg2...@gmail.com> wrote: : : > ++ users@solr.apache.org : > : > On Mon, 24 Apr 2023 at 13:12, kumar gaurav <kg2...@gmail.com> wrote: : > : >> HI Everyone : >> : >> I am getting a solr socket timeout exception in the select search query : >> because of bad spellcheck performance. : >> : >> I am using the spellcheck component in solr select request handler. : >> solrconfig : >> : >> <requestHandler name="/select" class="solr.SearchHandler" lazy="true"> : >> : >> <lst name="defaults"> : >> <str name="defType">edismax</str> : >> <str name="facet">true</str> : >> <str name="facet.mincount">1</str> : >> <str name="q.op">AND</str> : >> <str name="mm">100</str> : >> <str name="sow">true</str> : >> <str name="spellcheck.count">25</str> : >> <str name="spellcheck.onlyMorePopular">false</str> : >> <str name="spellcheck.collate">true</str> : >> <str name="spellcheck.collateExtendedResults">true</str> : >> <str name="spellcheck">true</str> : >> <str name="spellcheck.extendedResults">false</str> : >> <str name="spellcheck.maxCollations">10</str> : >> <str name="spellcheck.maxCollationTries">150</str> : >> <str name="spellcheck.collateParam.mm">100%</str> : >> <str name="spellcheck.dictionary">default</str> : >> <str name="spellcheck.dictionary">wordbreak</str> : >> </lst> : >> <arr name="last-components"> : >> <str>spellcheck</str> : >> </arr> : >> </requestHandler> : >> : >> : >> Do we have any time allowed parameter for spellcheck like query : >> timeAllowed parameter ? : >> : >> how can i identify query timeout because of spellcheck component process ? : >> : >> Please help. Thanks in advance. : >> : >> : >> : >> -- : >> Thanks & Regards : >> Kumar Gaurav : >> : > : -Hoss http://www.lucidworks.com/