jregnier opened a new issue #296:
URL: https://github.com/apache/lucenenet/issues/296
Hello, I'm getting an IndexOutOfRangeException when searching in some cases.
It's happening maybe 10% of the time so I'm unsure what is causing this. See
below for the search code and stack trace. I feel like it might be something
with the query but its more of a guess. Any guidance on this would be very much
appreciated.
`var sort = new Sort(new SortField(null, SortFieldType.DOC));
return _searcher.Search(Query, _reader.NumDocs, sort);`
`FATAL Update Data Set System.IndexOutOfRangeException: Index was
outside the bounds of the array.
at Lucene.Net.Store.ByteArrayDataInput.ReadVInt32()
at
Lucene.Net.Codecs.BlockTreeTermsReader.FieldReader.IntersectEnum.Frame.NextLeaf()
at Lucene.Net.Codecs.BlockTreeTermsReader.FieldReader.IntersectEnum.Next()
at Lucene.Net.Search.TermCollectingRewrite`1.CollectTerms(IndexReader
reader, MultiTermQuery query, TermCollector collector)
at Lucene.Net.Search.ConstantScoreAutoRewrite.Rewrite(IndexReader reader,
MultiTermQuery query)
at Lucene.Net.Join.ToParentBlockJoinQuery.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, Int32 n, Sort
sort)`
----------------------------------------------------------------
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:
[email protected]