Fix: Whoosh search - Remove old keyword
This commit is contained in:
parent
35ea8c148c
commit
30433d8733
@ -129,7 +129,7 @@ class page_data(object):
|
|||||||
def is_available(self):
|
def is_available(self):
|
||||||
is_a = os.path.isfile(self.filename)
|
is_a = os.path.isfile(self.filename)
|
||||||
if not is_a:
|
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
|
return is_a
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
@ -72,7 +72,7 @@ def add_item(ix, pw: page_wrapped):
|
|||||||
)
|
)
|
||||||
with ix.writer() as w:
|
with ix.writer() as w:
|
||||||
logger.info('Adding document with id=%s to the search index.', data.get('id'))
|
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:
|
for key in data:
|
||||||
logger.debug(' - Adding %s=%s', key, repr(data[key]))
|
logger.debug(' - Adding %s=%s', key, repr(data[key]))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user