fixed bug: multiple formatIndexName in forceUpdate method (#1960)
This commit is contained in:
parent
5ab2ee3ae8
commit
578fd70395
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue