Skip to content

Commit d281df7

Browse files
authored
docs: Fix typos in documentation (#2752)
* docs: Fix typos in documentation * docs: Address PR remarks
1 parent 73fe086 commit d281df7

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/main/antora/modules/ROOT/pages/elasticsearch/template.adoc

+4-4
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ Almost all of the methods defined in the `SearchOperations` and `ReactiveSearchO
125125
=== CriteriaQuery
126126

127127
`CriteriaQuery` based queries allow the creation of queries to search for data without knowing the syntax or basics of Elasticsearch queries.
128-
They allow the user to build queries by simply chaining and combining `Criteria` objects that specifiy the criteria the searched documents must fulfill.
128+
They allow the user to build queries by simply chaining and combining `Criteria` objects that specify the criteria the searched documents must fulfill.
129129

130130
NOTE: when talking about AND or OR when combining criteria keep in mind, that in Elasticsearch AND are converted to a **must** condition and OR to a **should**
131131

@@ -213,14 +213,14 @@ Using `StringQuery` may be appropriate if you already have an Elasticsearch quer
213213
`NativeQuery` is the class to use when you have a complex query, or a query that cannot be expressed by using the `Criteria` API, for example when building queries and using aggregates.
214214
It allows to use all the different `co.elastic.clients.elasticsearch._types.query_dsl.Query` implementations from the Elasticsearch library therefore named "native".
215215

216-
The following code shows how to search for persons with a given firstname and for the found documents have a terms aggregation that counts the number of occurences of the lastnames for these persons:
216+
The following code shows how to search for persons with a given `firstName` and for the found documents have a terms aggregation that counts the number of occurrences of the `lastName` for these persons:
217217

218218
====
219219
[source,java]
220220
----
221221
Query query = NativeQuery.builder()
222222
.withAggregation("lastNames", Aggregation.of(a -> a
223-
.terms(ta -> ta.field("last-name").size(10))))
223+
.terms(ta -> ta.field("lastName").size(10))))
224224
.withQuery(q -> q
225225
.match(m -> m
226226
.field("firstName")
@@ -234,7 +234,7 @@ SearchHits<Person> searchHits = operations.search(query, Person.class);
234234
----
235235
====
236236

237-
[[elasticsearch.operations.searchtemplateScOp§query]]
237+
[[elasticsearch.operations.searchtemplatequery]]
238238
=== SearchTemplateQuery
239239

240240
This is a special implementation of the `Query` interface to be used in combination with a stored search template.

src/main/antora/modules/ROOT/pages/migration-guides/migration-guide-5.0-5.1.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ Adaptions are necessary when this enum was used at other places than as a proper
2424
The functions in the `IndexOperations` and `ReactiverIndexOperations` to manage index templates that were introduced in Spring Data Elasticsearch 4.1
2525
have been deprecated. They were using the old Elasticsearch API that was deprecated in Elasticsearch version 7.8.
2626

27-
Please use the new functions that are based on the compsable index template API instead.
27+
Please use the new functions that are based on the composable index template API instead.

0 commit comments

Comments
 (0)