Skip to content

Commit 154c50b

Browse files
Fix some anchor links in documentation.
Original Pull Request: #1690 Closes #1689
1 parent 87bf84d commit 154c50b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,12 @@ Returned by the low level scroll API functions in `ElasticsearchRestTemplate`, i
173173
.SearchHitsIterator<T>
174174
An Iterator returned by the streaming functions of the `SearchOperations` interface.
175175

176+
[[elasticsearch.operations.queries]]
176177
== Queries
177178

178179
Almost all of the methods defined in the `SearchOperations` and `ReactiveSearchOperations` interface take a `Query` parameter that defines the query to execute for searching. `Query` is an interface and Spring Data Elasticsearch provides three implementations: `CriteriaQuery`, `StringQuery` and `NativeSearchQuery`.
179180

181+
[[elasticsearch.operations.criteriaquery]]
180182
=== CriteriaQuery
181183

182184
`CriteriaQuery` based queries allow the creation of queries to search for data without knowing the syntax or basics of Elasticsearch queries. They allow the user to build queries by simply chaining and combining `Criteria` objects that specifiy the criteria the searched documents must fulfill.
@@ -241,6 +243,7 @@ Query query = new CriteriaQuery(criteria);
241243

242244
Please refer to the API documentation of the `Criteria` class for a complete overview of the different available operations.
243245

246+
[[elasticsearch.operations.stringquery]]
244247
=== StringQuery
245248

246249
This class takes an Elasticsearch query as JSON String.
@@ -258,6 +261,7 @@ SearchHits<Person> searchHits = operations.search(query, Person.class);
258261

259262
Using `StringQuery` may be appropriate if you already have an Elasticsearch query to use.
260263

264+
[[elasticsearch.operations.nativesearchquery]]
261265
=== NativeSearchQuery
262266

263267
`NativeSearchQuery` 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.

0 commit comments

Comments
 (0)