Skip to content

Commit

Permalink
Merge pull request #491 from microsoft/ryonsteele/6442-indexing-tags
Browse files Browse the repository at this point in the history
Fix multitag index array values to allow for proper search
  • Loading branch information
ryonsteele authored Feb 20, 2024
2 parents 6eb2b1a + 3faf96e commit 7d280dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/enrichment/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,9 @@ def get_tags_and_upload_to_cosmos(blob_service_client, blob_path):
tags = blob_properties.metadata.get("tags")
if tags is not None:
if isinstance(tags, str):
tags_list = [unquote(tags)]
tags_list = [unquote(tag.strip()) for tag in tags.split(",")]
else:
tags_list = [unquote(tag) for tag in tags.split(",")]
tags_list = [unquote(tag.strip()) for tag in tags]
else:
tags_list = []
# Write the tags to cosmos db
Expand Down

0 comments on commit 7d280dc

Please sign in to comment.