lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <>
Subject [GitHub] [lucenenet] AntonOttoW edited a comment on issue #296: IndexOutOfRangeException when searching
Date Wed, 04 Nov 2020 18:53:37 GMT

AntonOttoW edited a comment on issue #296:

   In my case, when doing a fuzzy search using 4.8.0-beta00012 and doing load testing I get
the IndexOutOfRangeException with the following stack trace:
      at Lucene.Net.Util.Automaton.UTF32ToUTF8.Convert(Automaton utf32)
      at Lucene.Net.Util.Automaton.CompiledAutomaton..ctor(Automaton automaton, Nullable`1
finite, Boolean simplify)
      at Lucene.Net.Search.FuzzyTermsEnum.InitAutomata(Int32 maxDistance)
      at Lucene.Net.Search.FuzzyTermsEnum.GetAutomatonEnum(Int32 editDistance, BytesRef lastTerm)
      at Lucene.Net.Search.FuzzyTermsEnum.MaxEditDistanceChanged(BytesRef lastTerm, Int32
maxEdits, Boolean init)
      at Lucene.Net.Search.FuzzyTermsEnum..ctor(Terms terms, AttributeSource atts, Term term,
Single minSimilarity, Int32 prefixLength, Boolean transpositions)
      at Lucene.Net.Search.FuzzyQuery.GetTermsEnum(Terms terms, AttributeSource atts)
      at Lucene.Net.Search.TermCollectingRewrite`1.CollectTerms(IndexReader reader, MultiTermQuery
query, TermCollector collector)
      at Lucene.Net.Search.TopTermsRewrite`1.Rewrite(IndexReader reader, MultiTermQuery query)
      at Lucene.Net.Search.BooleanQuery.Rewrite(IndexReader reader)
      at Lucene.Net.Search.BooleanQuery.Rewrite(IndexReader reader)
      at Lucene.Net.Search.FilteredQuery.Rewrite(IndexReader reader)
      at Lucene.Net.Search.IndexSearcher.Rewrite(Query original)
      at Lucene.Net.Search.IndexSearcher.CreateNormalizedWeight(Query query)
      at Lucene.Net.Search.IndexSearcher.Search(Query query, Filter filter, Int32 n, Sort
   I'm running a thousand requests that is ramped up over 60 seconds. I then get an error
rate of about 20 to 30 percent. 
   I then included a retry whenever I catch this exception and have brought the error rate
down to 1 to 2 percent. (I don't count the errors in the retries and only the ones that didn't
return success after 3 attempts)
   Interesting thing is, when I removed the fuzzy search, I was able to do a 1000 successful
requests. No issues.

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:

View raw message