mirror of
https://github.com/spring-projects/spring-data-elasticsearch.git
synced 2025-06-21 19:42:10 +00:00
Fix document about StringQuery.
Original Pull Request #2202 Closes #2204
This commit is contained in:
parent
259c43af19
commit
0109a68c32
@ -230,7 +230,7 @@ The following code shows a query that searches for persons having the first name
|
||||
[source,java]
|
||||
----
|
||||
|
||||
Query query = new SearchQuery("{ \"match\": { \"firstname\": { \"query\": \"Jack\" } } } ");
|
||||
Query query = new StringQuery("{ \"match\": { \"firstname\": { \"query\": \"Jack\" } } } ");
|
||||
SearchHits<Person> searchHits = operations.search(query, Person.class);
|
||||
|
||||
----
|
||||
|
Loading…
x
Reference in New Issue
Block a user