DATAES-497 - Polishing.

Consistently add anchors to headings. Tiny syntax tweaks. Remove superfluous newlines.

Original pull request: #291.
This commit is contained in:
Mark Paluch 2019-07-16 09:32:33 +02:00
parent ef01211639
commit c8c3cb7909
6 changed files with 12 additions and 10 deletions

View File

@ -1,3 +1,4 @@
[[preface]]
= Preface = Preface
The Spring Data Elasticsearch project applies core Spring concepts to the development of solutions using the Elasticsearch Search Engine. It provides: The Spring Data Elasticsearch project applies core Spring concepts to the development of solutions using the Elasticsearch Search Engine. It provides:

View File

@ -123,7 +123,7 @@ Mono<IndexResponse> response = client.index(request ->
.setRefreshPolicy(IMMEDIATE); .setRefreshPolicy(IMMEDIATE);
); );
---- ----
<1> Use the builder to provide cluster addresses, set default `HttpHeaders` or enbale SSL. <1> Use the builder to provide cluster addresses, set default `HttpHeaders` or enable SSL.
==== ====
NOTE: The ReactiveClient response, especially for search operations, is bound to the `from` (offset) & `size` (limit) options of the request. NOTE: The ReactiveClient response, especially for search operations, is bound to the `from` (offset) & `size` (limit) options of the request.

View File

@ -1,8 +1,12 @@
[[new-features]]
= What's new = What's new
[[new-features.3-2-0]]
== New in Spring Data Elasticsearch 3.2 == New in Spring Data Elasticsearch 3.2
* Secured Elasticsearch cluster support with Basic Authentication and SSL transport. * Secured Elasticsearch cluster support with Basic Authentication and SSL transport.
* Upgrade to Elasticsearch 6.8.1. * Upgrade to Elasticsearch 6.8.1.
* Reactive programming support with <<elasticsearch.reactive.operations>> and <<elasticsearch.reactive.repositories>>. * Reactive programming support with <<elasticsearch.reactive.operations>> and <<elasticsearch.reactive.repositories>>.
* Introduction of the <<elasticsearch.mapping.meta-model,ElasticsearchEntityMapper>> as an alternative to the Jackson `ObjectMapper`. * Introduction of the <<elasticsearch.mapping.meta-model,ElasticsearchEntityMapper>> as an alternative to the Jackson `ObjectMapper`.
* Field name customization in `@Field`.
* Support for Delete by Query.

View File

@ -21,7 +21,7 @@ public class Config extends AbstractElasticsearchConfiguration { <1>
@Override @Override
public RestHighLevelClient elasticsearchClient() { public RestHighLevelClient elasticsearchClient() {
return RestClients.create(ClientConfiguration.create("localhost:9200")).rest() return RestClients.create(ClientConfiguration.create("localhost:9200")).rest();
} }
} }
---- ----
@ -110,7 +110,7 @@ Those type hints are represented as `_class` attributes within the document and
==== ====
[source,java] [source,java]
---- ----
public class Person { <1> public class Person { <1>
@Id String id; @Id String id;
String firstname; String firstname;
@ -138,7 +138,7 @@ to already have entity information available when first reading data from the st
==== ====
[source,java] [source,java]
---- ----
@TypeAlias("human") <1> @TypeAlias("human") <1>
public class Person { public class Person {
@Id String id; @Id String id;
@ -148,7 +148,7 @@ public class Person {
[source,json] [source,json]
---- ----
{ {
"_class" : "human", <1> "_class" : "human", <1>
"id" : ... "id" : ...
} }
---- ----
@ -254,7 +254,7 @@ public class Config extends AbstractElasticsearchConfiguration {
@Override @Override
public RestHighLevelClient elasticsearchClient() { public RestHighLevelClient elasticsearchClient() {
return RestClients.create(ClientConfiguration.create("localhost:9200")).rest() return RestClients.create(ClientConfiguration.create("localhost:9200")).rest();
} }
@Bean @Bean

View File

@ -45,7 +45,6 @@ public class TransportClientConfig extends ElasticsearchConfigurationSupport {
} }
} }
---- ----
<1> Setting up the <<elasticsearch.clients.transport>>. <1> Setting up the <<elasticsearch.clients.transport>>.
<2> Creating the `ElasticsearchTemplate` bean, offering both names, _elasticsearchOperations_ and _elasticsearchTemplate_. <2> Creating the `ElasticsearchTemplate` bean, offering both names, _elasticsearchOperations_ and _elasticsearchTemplate_.
<3> Using the <<elasticsearch.mapping.meta-model>> ElasticsearchMapper. <3> Using the <<elasticsearch.mapping.meta-model>> ElasticsearchMapper.
@ -84,7 +83,6 @@ public class RestClientConfig extends AbstractElasticsearchConfiguration {
<1> Setting up the <<elasticsearch.clients.rest>>. <1> Setting up the <<elasticsearch.clients.rest>>.
<2> The base class `AbstractElasticsearchConfiguration` already provides the `elasticsearchTemplate` bean. <2> The base class `AbstractElasticsearchConfiguration` already provides the `elasticsearchTemplate` bean.
<3> Using the <<elasticsearch.mapping.meta-model>> ElasticsearchMapper. <3> Using the <<elasticsearch.mapping.meta-model>> ElasticsearchMapper.
==== ====
[[elasticsearch.operations.usage]] [[elasticsearch.operations.usage]]
@ -127,7 +125,6 @@ public class TestController {
} }
---- ----
<1> Let Spring inject the provided `ElasticsearchOperations` bean in the constructor. <1> Let Spring inject the provided `ElasticsearchOperations` bean in the constructor.
<2> Store some entity in the Elasticsearch cluster. <2> Store some entity in the Elasticsearch cluster.
<3> Retrieve the entity with a query by id. <3> Retrieve the entity with a query by id.

View File

@ -4,7 +4,7 @@
Reactive Elasticsearch repository support builds on the core repository support explained in <<repositories>> utilizing Reactive Elasticsearch repository support builds on the core repository support explained in <<repositories>> utilizing
operations provided via <<elasticsearch.reactive.operations>> executed by a <<elasticsearch.clients.reactive>>. operations provided via <<elasticsearch.reactive.operations>> executed by a <<elasticsearch.clients.reactive>>.
Spring Data Elasticsearchs reactive repository support uses https://projectreactor.io/[Project Reactor] as its reactive Spring Data Elasticsearch reactive repository support uses https://projectreactor.io/[Project Reactor] as its reactive
composition library of choice. composition library of choice.
There are 3 main interfaces to be used: There are 3 main interfaces to be used: