Merge pull request #16777 from radar/patch-1

Add example for require_field_match to highlighting docs
This commit is contained in:
Clinton Gormley 2016-02-28 21:32:51 +01:00
parent 300554841e
commit 380ecd7604
1 changed files with 11 additions and 0 deletions

View File

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