Hi, everyone!
I’m facing a strange error when making a full text search in the contents page for some terms.
My main language is pt-BR and when I search for “Rio de Janeiro” in my collection (and other terms containing “de”, like “Duque de Caxias” - “de” is equivalent to “of”), an exception is being thrown in the TextIndexerGrain class, on line 98.
Does anyone has some idea on what is hapening here?
The line:
var hits = index.Searcher.Search(query, MaxResults).ScoreDocs;
The message:
Index was outside the bounds of the array.
The stack trace:
at Lucene.Net.Codecs.Lucene41.ForUtil.ReadBlock(IndexInput in, Byte[] encoded, Int32[] decoded) at Lucene.Net.Codecs.Lucene41.Lucene41PostingsReader.BlockDocsAndPositionsEnum.RefillDocs() at Lucene.Net.Codecs.Lucene41.Lucene41PostingsReader.BlockDocsAndPositionsEnum.Advance(Int32 target) at Lucene.Net.Search.ExactPhraseScorer.NextDoc() at Lucene.Net.Search.Weight.DefaultBulkScorer.ScoreRange(ICollector collector, Scorer scorer, Int32 currentDoc, Int32 end) at Lucene.Net.Search.BooleanScorer.Score(ICollector collector, Int32 max) at Lucene.Net.Search.BulkScorer.Score(ICollector collector) at Lucene.Net.Search.IndexSearcher.Search(IList
1 leaves, Weight weight, ICollector collector)
at Lucene.Net.Search.IndexSearcher.Search(IList1 leaves, Weight weight, ScoreDoc after, Int32 nDocs) at Lucene.Net.Search.IndexSearcher.Search(Weight weight, ScoreDoc after, Int32 nDocs) at Lucene.Net.Search.IndexSearcher.Search(Query query, Filter filter, Int32 n) at Lucene.Net.Search.IndexSearcher.Search(Query query, Int32 n) at Squidex.Domain.Apps.Entities.Contents.Text.TextIndexerGrain.SearchAsync(String queryText, SearchContext context) in D:\Projetos\Observatorio\src\admin\backend\src\Squidex.Domain.Apps.Entities\Contents\Text\TextIndexerGrain.cs:line 98 at Squidex.Domain.Apps.Entities.Contents.Text.OrleansCodeGenTextIndexerGrainMethodInvoker.<Invoke>d__0.MoveNext() in D:\Projetos\Observatorio\src\admin\backend\src\Squidex.Domain.Apps.Entities\obj\Debug\netcoreapp3.0\Squidex.Domain.Apps.Entities.orleans.g.cs:line 1429 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Orleans.Runtime.GrainMethodInvoker.<Invoke>d__21.MoveNext() at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Squidex.Infrastructure.Orleans.StateFilter.<Invoke>d__0.MoveNext() in D:\Projetos\Observatorio\src\admin\backend\src\Squidex.Infrastructure\Orleans\StateFilter.cs:line 21 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Orleans.Runtime.GrainMethodInvoker.<Invoke>d__21.MoveNext() at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Squidex.Infrastructure.Orleans.LoggingFilter.<Invoke>d__2.MoveNext() in D:\Projetos\Observatorio\src\admin\backend\src\Squidex.Infrastructure\Orleans\LoggingFilter.cs:line 30