From 1dbd7b9bb472816fdfbcfc1346c74c693880d53b Mon Sep 17 00:00:00 2001 From: jonaswinkler <17569239+jonaswinkler@users.noreply.github.com> Date: Mon, 5 Apr 2021 21:53:07 +0200 Subject: [PATCH] fix some issues with the search index --- src/documents/index.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/documents/index.py b/src/documents/index.py index 6fdcff42f..6cd136d80 100644 --- a/src/documents/index.py +++ b/src/documents/index.py @@ -29,7 +29,7 @@ def get_schema(): sortable=True ), content=TEXT(), - archive_serial_number=NUMERIC( + asn=NUMERIC( sortable=True ), @@ -122,7 +122,7 @@ def update_document(writer, doc): has_type=doc.document_type is not None, created=doc.created, added=doc.added, - archive_serial_number=doc.archive_serial_number, + asn=doc.archive_serial_number, modified=doc.modified, )