batch book status updates

bug fixes, esp. threading
This commit is contained in:
Robert McRackan 2021-09-23 14:33:04 -04:00
parent 613c97524a
commit 14e14ba9bd
7 changed files with 64 additions and 19 deletions

View file

@ -315,7 +315,7 @@ namespace LibationSearchEngine
var docs = searcher.Search(query, 1);
var scoreDoc = docs.ScoreDocs.SingleOrDefault();
if (scoreDoc == null)
throw new Exception("document not found");
return;
var document = searcher.Doc(scoreDoc.Doc);