diff --git a/docs/reference/search/request/highlighting.asciidoc b/docs/reference/search/request/highlighting.asciidoc index 99742db77c1..58128dd36f8 100644 --- a/docs/reference/search/request/highlighting.asciidoc +++ b/docs/reference/search/request/highlighting.asciidoc @@ -421,6 +421,17 @@ be highlighted regardless of whether the query matched specifically on them. The default behaviour is `true`, meaning that only fields that hold a query match will be highlighted. +[source,js] +-------------------------------------------------- +{ + "query" : {...}, + "highlight" : { + "require_field_match": false + "fields" : {...} + } +} +-------------------------------------------------- + [[boundary-characters]] ==== Boundary Characters