Skip to content

Commit

Permalink
Fix consistent check for missing _unindex entry
Browse files Browse the repository at this point in the history
  • Loading branch information
andbag committed May 24, 2019
1 parent 5f6c287 commit 0c5493a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Products/PluginIndexes/KeywordIndex/KeywordIndex.py
Expand Up @@ -67,9 +67,9 @@ def _index_object(self, documentId, obj, threshold=None, attr=''):
# we'll do so.

newKeywords = self._get_object_keywords(obj, attr)
oldKeywords = self._unindex.get(documentId, None)
oldKeywords = self._unindex.get(documentId, _marker)

if oldKeywords is None or oldKeywords in (missing, empty):
if oldKeywords is _marker or oldKeywords in (missing, empty):
# we've got a new document, let's not futz around.
if newKeywords in (missing, empty):
self.insertSpecialIndexEntry(newKeywords, documentId)
Expand Down

0 comments on commit 0c5493a

Please sign in to comment.