fixed bug: multiple formatIndexName in forceUpdate method (#1960)

This commit is contained in:
a198720 2018-11-25 22:14:08 +08:00 committed by 彭勇升 pengys
parent 5ab2ee3ae8
commit 578fd70395
1 changed files with 0 additions and 2 deletions

View File

@ -142,7 +142,6 @@ public class ElasticSearchClient implements Client {
}
public void forceUpdate(String indexName, String id, XContentBuilder source, long version) throws IOException {
indexName = formatIndexName(indexName);
UpdateRequest request = prepareUpdate(indexName, id, source);
request.version(version);
request.setRefreshPolicy(WriteRequest.RefreshPolicy.IMMEDIATE);
@ -150,7 +149,6 @@ public class ElasticSearchClient implements Client {
}
public void forceUpdate(String indexName, String id, XContentBuilder source) throws IOException {
indexName = formatIndexName(indexName);
UpdateRequest request = prepareUpdate(indexName, id, source);
request.setRefreshPolicy(WriteRequest.RefreshPolicy.IMMEDIATE);
client.update(request);