Skip to content

Commit

Permalink
Fix new bug in vocab transforming action
Browse files Browse the repository at this point in the history
  • Loading branch information
jensens committed Dec 1, 2023
1 parent 775f97b commit 8a0e2cd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
Changelog
=========

2.0.0rc6 (2023-12-01)
2.0.0rc7 (2023-12-01)
---------------------

- Fix new bug in vocab transforming action [jensens]


2.0.0rc7 (2023-12-01)
---------------------

- Fix the wrong OPENSEARCH fix [jensens]
Expand Down
2 changes: 1 addition & 1 deletion src/collective/elastic/ingest/preprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def action_strip_vocabulary_term_titles(content, full_schema, config):
isinstance(field, list)
and len(field) > 0
and isinstance(field[0], dict)
and set(field.keys()) == {"title", "token"}
and set(field[0].keys()) == {"title", "token"}
):
content[fieldname] = [el["token"] for el in field]

Expand Down

0 comments on commit 8a0e2cd

Please sign in to comment.