Fix document about StringQuery.

Original Pull Request #2202
Closes #2204
This commit is contained in:
Shijie.Ma 2022-06-28 12:44:48 +08:00 committed by GitHub
parent 259c43af19
commit 0109a68c32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
----