From 6fcb826c697e37f186c99a391ea0e6c931aa29c9 Mon Sep 17 00:00:00 2001 From: ffont Date: Fri, 9 Feb 2024 13:48:16 +0100 Subject: [PATCH] Fix check for sim vector property --- utils/search/backends/solr555pysolr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/search/backends/solr555pysolr.py b/utils/search/backends/solr555pysolr.py index e1c79937c..c60015496 100644 --- a/utils/search/backends/solr555pysolr.py +++ b/utils/search/backends/solr555pysolr.py @@ -261,7 +261,7 @@ def add_similarity_vectors_to_documents(self, sound_objects, documents): similarity_vectors_per_analyzer_per_sound=[] data = sa.get_analysis_data_from_file() if data is not None: - if data[config_options['vector_property_name']] is not None: + if config_options['vector_property_name'] in data: sim_vector_document_data = { 'content_type': SOLR_DOC_CONTENT_TYPES['similarity_vector'], 'analyzer': sa.analyzer,