[ https://issues.apache.org/jira/browse/JAMES-3750?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17523501#comment-17523501 ]
René Cordier commented on JAMES-3750: ------------------------------------- Not necessary at the end, as we can reach the same wanted behavior by using the index method. It replaces the old document by the new one anyways. > Add an upsert method in ElasticsearchIndexer > -------------------------------------------- > > Key: JAMES-3750 > URL: https://issues.apache.org/jira/browse/JAMES-3750 > Project: James Server > Issue Type: Improvement > Reporter: René Cordier > Priority: Major > Time Spent: 40m > Remaining Estimate: 0h > > Now that our index generation code is more generic, allowing custom > implementation of James to easily add their own, it would be useful as well > to add an upsert method to the ElasticsearchIndexer as well > It is like an update, with the difference that if the document is not > referenced, we index it. The code change is minimal and does not change the > normal update behavior. > DoD: Unit tests -- This message was sent by Atlassian Jira (v8.20.1#820001) --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org