Closed njohner closed 3 years ago
Yes you're right it returns None
in that case (🙈), the end result is the same. And yes, it does not get called when the attributes list is empty, but it would also return None
in that case 😅
I've updated the description for clearer future reference.
Two problems surfaced that hinder reindexing only
SearchableText
andUID
in opengever.core.UID
is of course used only to avoid reindexing everything in Gever catalog, so we really only want to reindex theSearchableText
in solr. When indexes are specified,collective.indexing
will actually pass theattributes
as a tuple. The handler inftw.solr
, tries to removeSearchableText
from that tuple, which fails.Moreover the
add_atomic_update_modifier
will returnNone
whenever theattributes
list contains only theunique_key
, i.e.UID
in our case. In such cases, the call of theextract
method would fail, because it tries to retrieve theunique_key
from that empty dictionary.For https://4teamwork.atlassian.net/browse/CA-1361