mirror of
https://github.com/spring-projects/spring-data-elasticsearch.git
synced 2025-06-24 13:02: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]
|
[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);
|
SearchHits<Person> searchHits = operations.search(query, Person.class);
|
||||||
|
|
||||||
----
|
----
|
||||||
|
Loading…
x
Reference in New Issue
Block a user