Skip to content

Commit

Permalink
Fix wrong condition
Browse files Browse the repository at this point in the history
  • Loading branch information
ffont committed Feb 9, 2024
1 parent 6fcb826 commit b982aa0
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 config_options['vector_property_name'] in data:
if data.get(config_options['vector_property_name'], None) is not None:
sim_vector_document_data = {
'content_type': SOLR_DOC_CONTENT_TYPES['similarity_vector'],
'analyzer': sa.analyzer,
Expand Down

0 comments on commit b982aa0

Please sign in to comment.