Skip to content

Commit bc7667f

Browse files
authored
Update documentation.
Original Pull Request #2400 Closes #2404
1 parent 2ea568d commit bc7667f

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

src/main/asciidoc/reference/elasticsearch-join-types.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,11 +224,11 @@ The following code shows as an example how to retrieve all entries that have a _
224224
SearchHits<Statement> hasVotes() {
225225
226226
Query query = NativeQuery.builder()
227-
.withQuery(co.elastic.clients.elasticsearch._types.query_dsl.Query.of(qb -> qb //
227+
.withQuery(co.elastic.clients.elasticsearch._types.query_dsl.Query.of(qb -> qb
228228
.hasChild(hc -> hc
229-
.queryName("vote") //
230-
.query(matchAllQueryAsQuery()) //
231-
.scoreMode(ChildScoreMode.None)//
229+
.queryName("vote")
230+
.query(matchAllQueryAsQuery())
231+
.scoreMode(ChildScoreMode.None)
232232
)))
233233
.build();
234234

src/main/asciidoc/reference/elasticsearch-misc.adoc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ stream.close();
135135

136136
There are no methods in the `SearchOperations` API to access the scroll id, if it should be necessary to access this,
137137
the following methods of the `AbstractElasticsearchTemplate` can be used (this is the base implementation for the
138-
different `ElasticsearchOperations` implementations:
138+
different `ElasticsearchOperations` implementations):
139139

140140
====
141141
[source,java]
@@ -281,9 +281,8 @@ This works with every implementation of the `Query` interface.
281281
[[elasticsearch.misc.point-in-time]]
282282
== Point In Time (PIT) API
283283

284-
`ElasticsearchOperations` supports the point in time API of Elasticsearch (see https://www.elastic
285-
.co/guide/en/elasticsearch/reference/8.3/point-in-time-api.html). The following code snippet shows how to use this
286-
feature with a fictional `Person` class:
284+
`ElasticsearchOperations` supports the point in time API of Elasticsearch (see https://www.elastic.co/guide/en/elasticsearch/reference/8.3/point-in-time-api.html).
285+
The following code snippet shows how to use this feature with a fictional `Person` class:
287286

288287
====
289288
[source,java]

src/main/asciidoc/reference/elasticsearch-operations.adoc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ There is support for automatic creation of indices and writing the mappings when
3535

3636
The example shows how to use an injected `ElasticsearchOperations` instance in a Spring REST controller.
3737
The example assumes that `Person` is a class that is annotated with `@Document`, `@Id` etc (see <<elasticsearch.mapping.meta-model.annotations>>).
38+
3839
.ElasticsearchOperations usage
3940
====
4041
[source,java]
@@ -135,7 +136,7 @@ NOTE: when talking about AND or OR when combining criteria keep in mind, that in
135136
====
136137
[source,java]
137138
----
138-
Criteria criteria = new Criteria("price").is(42.0);
139+
Criteria criteria = new Criteria("price").is(42.0L);
139140
Query query = new CriteriaQuery(criteria);
140141
----
141142
====
@@ -146,7 +147,7 @@ Conditions for the same field can be chained, they will be combined with a logic
146147
====
147148
[source,java]
148149
----
149-
Criteria criteria = new Criteria("price").greaterThan(42.0).lessThan(34.0L);
150+
Criteria criteria = new Criteria("price").greaterThan(42.0L).lessThan(34.0L);
150151
Query query = new CriteriaQuery(criteria);
151152
----
152153
====

src/main/asciidoc/reference/reactive-elasticsearch-operations.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public class Person {
3737
[source,java]
3838
----
3939
40-
ReactiveELasticsearchOperations operations; <.>
40+
ReactiveElasticsearchOperations operations;
4141
4242
// ...
4343

0 commit comments

Comments
 (0)