[Search] Fix reindexing

Flag domain objects as non-indexed on mutation to ensure
reindexing. Done in the context of nasa/openmctweb#141.
This commit is contained in:
Victor Woeltjen 2015-09-29 12:00:05 -07:00
parent 866c8882ca
commit fe8543158e

View File

@ -171,6 +171,7 @@ define(
// Re-index items when they are mutated // Re-index items when they are mutated
mutationTopic.listen(function (domainObject) { mutationTopic.listen(function (domainObject) {
indexed[domainObject.getId()] = false;
indexItems([domainObject]); indexItems([domainObject]);
}); });
} }