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,