Search engine interface contains method needRemoveWithUpdate() to decide if the object needs to be removed before it's updated. By default it was returning true, causing documents to disappear from index in come cases (for example adding a Location), until the cronjob re-indexes it from the added entry in ezpending_actions table.
The behavior was initially copied from default implementation, but should not be really needed for integration with Solr search engine. This PR adds IndexOptions/NeedRemoveWithUpdate configuration option, by default configured to true in order to keep the existing behavior.
Search engine interface contains method
needRemoveWithUpdate()
to decide if the object needs to be removed before it's updated. By default it was returningtrue
, causing documents to disappear from index in come cases (for example adding a Location), until the cronjob re-indexes it from the added entry inezpending_actions
table.The behavior was initially copied from default implementation, but should not be really needed for integration with Solr search engine. This PR adds
IndexOptions/NeedRemoveWithUpdate
configuration option, by default configured totrue
in order to keep the existing behavior.