Skip to content

Commit

Permalink
Store keywords always as OOset
Browse files Browse the repository at this point in the history
  • Loading branch information
andbag committed May 24, 2019
1 parent e319a05 commit bcbd74d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Products/PluginIndexes/KeywordIndex/KeywordIndex.py
Expand Up @@ -82,7 +82,7 @@ def _index_object(self, documentId, obj, threshold=None, attr=''):
except TypeError:
return 0

self._unindex[documentId] = list(newKeywords)
self._unindex[documentId] = OOSet(newKeywords)

if oldKeywords in (missing, empty):
self.removeSpecialIndexEntry(oldKeywords, documentId)
Expand All @@ -103,7 +103,7 @@ def _index_object(self, documentId, obj, threshold=None, attr=''):
if fdiff or rdiff:
# if we've got forward or reverse changes
if newKeywords:
self._unindex[documentId] = list(newKeywords)
self._unindex[documentId] = OOSet(newKeywords)
else:
self.insertSpecialIndexEntry(specialvalue, documentId)
self._unindex[documentId] = specialvalue
Expand Down

0 comments on commit bcbd74d

Please sign in to comment.