From 4178c169ddc4ddd86a734131719986281b500d7b Mon Sep 17 00:00:00 2001 From: Veloman Yunkan Date: Tue, 27 Apr 2021 16:33:04 +0400 Subject: [PATCH] Xapian documents in book DB store only the book id --- src/library.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/library.cpp b/src/library.cpp index 20a3e00a9..66a457ff6 100644 --- a/src/library.cpp +++ b/src/library.cpp @@ -283,14 +283,6 @@ void Library::updateBookDB(const Book& book) const std::string publisher = normalizeText(book.getPublisher()); const std::string creator = normalizeText(book.getCreator()); const std::string tags = normalizeText(book.getTags()); - doc.add_value(0, title); - doc.add_value(1, desc); - doc.add_value(2, name); - doc.add_value(3, category); - doc.add_value(4, lang); - doc.add_value(5, publisher); - doc.add_value(6, creator); - doc.add_value(7, tags); doc.set_data(book.getId()); indexer.index_text(title, 1, "S");