Fix: Whoosh search - Remove old keyword

This commit is contained in:
Dirk Alders 2024-10-13 16:31:59 +02:00
parent 35ea8c148c
commit 30433d8733
2 changed files with 2 additions and 2 deletions

View File

@ -129,7 +129,7 @@ class page_data(object):
def is_available(self):
is_a = os.path.isfile(self.filename)
if not is_a:
logger.info("page.is_available: Not available - %s", self.filename)
logger.debug("page.is_available: Not available - %s", self.filename)
return is_a
@property

View File

@ -72,7 +72,7 @@ def add_item(ix, pw: page_wrapped):
)
with ix.writer() as w:
logger.info('Adding document with id=%s to the search index.', data.get('id'))
w.add_document(**data)
w.update_document(**data)
for key in data:
logger.debug(' - Adding %s=%s', key, repr(data[key]))