It appears this setter needs to be called: org.apache.solr.parser.SolrQueryParserBase#setFuzzyMinSim and it could be done by edismax. PR welcome!
~ David Smiley Apache Lucene/Solr Search Developer http://www.linkedin.com/in/davidwsmiley On Thu, Mar 18, 2021 at 12:28 PM Olivier Tavard <olivier.tav...@gmail.com> wrote: > Hi, > > I have a question regarding the fuzzy search. > By reading previous questions on the ML in the past I saw that the > parameter max expansions is set to 50 in the code. > I have the same behavior that for other users meaning that if I have a > Solrcloud cluster with many shards, I obtain more results for a fuzzy > search than if I were on a monoserver with a single shard cause of the max > expansions parameter because the value is per shard. > So I would like to increase the value but to my knowledge, I need to change > it in the code and recompile Solr. Is there a way to set it directly at the > query, I did not find anything in the documentation. I am aware that it can > cause poor search performance but I need to increase it. I saw that in > ElasticSearch, recently they did a modification to set it at query time but > not in Solr as I see, am I correct ? > > Thank you, > > Olivier >