This commit is contained in:
Kovid Goyal 2022-04-27 15:44:29 +05:30
parent 4502569b90
commit 2b23d75f13
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -969,7 +969,8 @@ class DB:
return self.fts.queue_job(book_id, fmt, path, fmt_size, fmt_hash) return self.fts.queue_job(book_id, fmt, path, fmt_size, fmt_hash)
def commit_fts_result(self, book_id, fmt, fmt_size, fmt_hash, text, err_msg): def commit_fts_result(self, book_id, fmt, fmt_size, fmt_hash, text, err_msg):
return self.fts.commit_result(book_id, fmt, fmt_size, fmt_hash, text, err_msg) if self.fts is not None:
return self.fts.commit_result(book_id, fmt, fmt_size, fmt_hash, text, err_msg)
def fts_search(self, def fts_search(self,
fts_engine_query, use_stemming, highlight_start, highlight_end, snippet_size, restrict_to_book_ids, fts_engine_query, use_stemming, highlight_start, highlight_end, snippet_size, restrict_to_book_ids,