From 2fb90621a2adfe0ede5bf5c374526c2d5007bac4 Mon Sep 17 00:00:00 2001 From: Peter-Josef Meisch Date: Fri, 23 Dec 2022 14:20:56 +0100 Subject: [PATCH] Polishing. --- src/main/asciidoc/reference/elasticsearch-operations.adoc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/asciidoc/reference/elasticsearch-operations.adoc b/src/main/asciidoc/reference/elasticsearch-operations.adoc index 1ca99be93..c170283e1 100644 --- a/src/main/asciidoc/reference/elasticsearch-operations.adoc +++ b/src/main/asciidoc/reference/elasticsearch-operations.adoc @@ -66,8 +66,8 @@ public class TestController { ---- <.> Let Spring inject the provided `ElasticsearchOperations` bean in the constructor. -<.> Store some entity in the Elasticsearch cluster. The id is read from the returned entity, as it might have been -null in the `person` object and been created by Elasticsearch. +<.> Store some entity in the Elasticsearch cluster. +The id is read from the returned entity, as it might have been null in the `person` object and been created by Elasticsearch. <.> Retrieve the entity with a get by id. ==== @@ -136,7 +136,7 @@ NOTE: when talking about AND or OR when combining criteria keep in mind, that in ==== [source,java] ---- -Criteria criteria = new Criteria("price").is(42.0L); +Criteria criteria = new Criteria("price").is(42.0); Query query = new CriteriaQuery(criteria); ---- ==== @@ -147,7 +147,7 @@ Conditions for the same field can be chained, they will be combined with a logic ==== [source,java] ---- -Criteria criteria = new Criteria("price").greaterThan(42.0L).lessThan(34.0L); +Criteria criteria = new Criteria("price").greaterThan(42.0).lessThan(34.0); Query query = new CriteriaQuery(criteria); ---- ====