Hello,
We got an exception during a search that seems to be pretty rare. We were not able to reproduce it again, but we still want to report it to you and hope that you can fix it based on this description…
This is the exception we got during an index.Serch call:
System.Exception: Document is not found. Document ID: 7021
at .(Int32 )
at .( , String , , SearchOptions , ChunkSearchToken , Boolean )
at .(SearchQuery , SearchOptions , Cancellation , ChunkSearchToken , Boolean )
at Jam.Xy.ExecuteIndexQuery(System.ValueTuple`2<System.String,GroupDocs.Search.Index> pIndex, GroupDocs.Search.SearchQuery pQuery)
Jam.Xy.ExecuteIndexQuery
is our code and it’s just doing this:
var searchOptions = new SearchOptions { RetrieveAttributes = true };
IEnumerable<FoundDocument> searchResult = index.Search(pQuery, searchOptions);
What’s special here: The exception occurred during an index.Add() call that took around 15 seconds and added around 100 MB of extracted data from 39 files manually to the index.
Conclusion: When executing a search on an index during a longer running index.Add() call, this exception can occur