mirror of
https://github.com/spring-projects/spring-data-elasticsearch.git
synced 2025-06-01 09:42:11 +00:00
Documentation fix: Types are in the process of being removed.
Original Pull Request: #1754
This commit is contained in:
parent
dfc68cd33b
commit
d66f8a0650
@ -85,11 +85,12 @@ public class RestClientConfig extends AbstractElasticsearchConfiguration {
|
|||||||
|
|
||||||
// ...
|
// ...
|
||||||
|
|
||||||
IndexRequest request = new IndexRequest("spring-data", "elasticsearch", randomID())
|
IndexRequest request = new IndexRequest("spring-data")
|
||||||
|
.id(randomID())
|
||||||
.source(singletonMap("feature", "high-level-rest-client"))
|
.source(singletonMap("feature", "high-level-rest-client"))
|
||||||
.setRefreshPolicy(IMMEDIATE);
|
.setRefreshPolicy(IMMEDIATE);
|
||||||
|
|
||||||
IndexResponse response = highLevelClient.index(request);
|
IndexResponse response = highLevelClient.index(request,RequestOptions.DEFAULT);
|
||||||
----
|
----
|
||||||
<1> Use the builder to provide cluster addresses, set default `HttpHeaders` or enable SSL.
|
<1> Use the builder to provide cluster addresses, set default `HttpHeaders` or enable SSL.
|
||||||
<2> Create the RestHighLevelClient.
|
<2> Create the RestHighLevelClient.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user