UnIndex
: surprising behaviour if more than a single attribute is indexed
#64
Labels
UnIndex
: surprising behaviour if more than a single attribute is indexed
#64
UnIndex
suggests that it can index a document under several attributes (-->indexed_attrs
).However, it does not document what this means.
The current implementation effectively uses at most one attribute for any given object -- the last one in
indexed_attrs
for which the object has a value.I do not think that this behaviour is intensional:
index_object
iterates ofindexed_attrs
and updates_index
and_unindex
for each attribute for which the object has a value - with later attributes undoing the update of former ones; one could get the same effect without successive updatesI suggest to clearly document what indexing under several attributes should mean and ensure that the implementation follows (naturally) the intension.
The text was updated successfully, but these errors were encountered: