Skip to content

Commit

Permalink
Fix check for sim vector property
Browse files Browse the repository at this point in the history
  • Loading branch information
ffont committed Feb 9, 2024
1 parent 486476b commit 6fcb826
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/search/backends/solr555pysolr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6fcb826

Please sign in to comment.