Polishing.

This commit is contained in:
Peter-Josef Meisch 2022-12-23 14:20:56 +01:00
parent bc7667fdbc
commit 2fb90621a2
No known key found for this signature in database
GPG Key ID: DE108246970C7708

View File

@ -66,8 +66,8 @@ public class TestController {
---- ----
<.> Let Spring inject the provided `ElasticsearchOperations` bean in the constructor. <.> 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 <.> Store some entity in the Elasticsearch cluster.
null in the `person` object and been created by Elasticsearch. 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. <.> 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] [source,java]
---- ----
Criteria criteria = new Criteria("price").is(42.0L); Criteria criteria = new Criteria("price").is(42.0);
Query query = new CriteriaQuery(criteria); 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] [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); Query query = new CriteriaQuery(criteria);
---- ----
==== ====