Skip to content

Commit 0109a68

Browse files
authored
Fix document about StringQuery.
Original Pull Request #2202 Closes #2204
1 parent 259c43a commit 0109a68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ The following code shows a query that searches for persons having the first name
230230
[source,java]
231231
----
232232
233-
Query query = new SearchQuery("{ \"match\": { \"firstname\": { \"query\": \"Jack\" } } } ");
233+
Query query = new StringQuery("{ \"match\": { \"firstname\": { \"query\": \"Jack\" } } } ");
234234
SearchHits<Person> searchHits = operations.search(query, Person.class);
235235
236236
----

0 commit comments

Comments
 (0)