Skip to content

Commit 2fb9062

Browse files
committed
Polishing.
1 parent bc7667f commit 2fb9062

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ public class TestController {
6666
----
6767
6868
<.> Let Spring inject the provided `ElasticsearchOperations` bean in the constructor.
69-
<.> Store some entity in the Elasticsearch cluster. The id is read from the returned entity, as it might have been
70-
null in the `person` object and been created by Elasticsearch.
69+
<.> Store some entity in the Elasticsearch cluster.
70+
The id is read from the returned entity, as it might have been null in the `person` object and been created by Elasticsearch.
7171
<.> Retrieve the entity with a get by id.
7272
====
7373

@@ -136,7 +136,7 @@ NOTE: when talking about AND or OR when combining criteria keep in mind, that in
136136
====
137137
[source,java]
138138
----
139-
Criteria criteria = new Criteria("price").is(42.0L);
139+
Criteria criteria = new Criteria("price").is(42.0);
140140
Query query = new CriteriaQuery(criteria);
141141
----
142142
====
@@ -147,7 +147,7 @@ Conditions for the same field can be chained, they will be combined with a logic
147147
====
148148
[source,java]
149149
----
150-
Criteria criteria = new Criteria("price").greaterThan(42.0L).lessThan(34.0L);
150+
Criteria criteria = new Criteria("price").greaterThan(42.0).lessThan(34.0);
151151
Query query = new CriteriaQuery(criteria);
152152
----
153153
====

0 commit comments

Comments
 (0)