From 6c07601c84ac55edf51bd36b6b1c6b5e66e81b45 Mon Sep 17 00:00:00 2001 From: Albert S Date: Thu, 9 Aug 2018 21:03:49 +0200 Subject: [PATCH] also store a complete copy of the document --- addindex | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/addindex b/addindex index 3fb297a..e0ae2eb 100755 --- a/addindex +++ b/addindex @@ -60,10 +60,13 @@ def process_pdf(path): result.append(data) count += 1 - #everything = pagedata() - #everything.page = 0 - #everything.content = content.replace("\f", "") - #result.append(everything) + #TODO: current hack, so we can fts search several words over the whole document + #this of course uses more space, but in the end that's not a big problem + #Nevertheless, this remains a hack + everything = pagedata() + everything.page = 0 + everything.content = content.replace("\f", "") + result.append(everything) return result def process_odt(path):