"Document is not found. Document ID: 7021" during search during index.Add() call

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 :confused:

1 Like

@jamsharp
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): SEARCHNET-3488

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.