Skip to content

Commit 7e0d0ea

Browse files
Dimitrixhaggi
authored andcommitted
DATAES-546 - Escaped double quotes in code snippet.
Original pull request: spring-projects#246
1 parent 6765679 commit 7e0d0ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ A list of supported keywords for Elasticsearch is shown below.
281281
[source,java]
282282
----
283283
public interface BookRepository extends ElasticsearchRepository<Book, String> {
284-
@Query("{"bool" : {"must" : {"field" : {"name" : "?0"}}}}")
284+
@Query("{\"bool\" : {\"must\" : {\"field\" : {\"name\" : \"?0\"}}}}")
285285
Page<Book> findByName(String name,Pageable pageable);
286286
}
287287
----

0 commit comments

Comments
 (0)