From 5e75ce9325a569e6e35c580f70d30e311e91760e Mon Sep 17 00:00:00 2001 From: Itamar Syn-Hershko Date: Mon, 2 Jul 2018 01:12:28 +0300 Subject: [PATCH] Remove _all example Since the `_all` is now deprecated and removed, this example in the highlight docs is irrelevant and confusing. Note, there are many references to the `_all` field in this doc, some will require a rewrite of the examples so I didn't go into doing that. --- .../search/request/highlighting.asciidoc | 26 ------------------- 1 file changed, 26 deletions(-) diff --git a/docs/reference/search/request/highlighting.asciidoc b/docs/reference/search/request/highlighting.asciidoc index 97f31c0db7a08..d0a9ad04b0b4a 100644 --- a/docs/reference/search/request/highlighting.asciidoc +++ b/docs/reference/search/request/highlighting.asciidoc @@ -485,32 +485,6 @@ GET /_search // CONSOLE // TEST[setup:twitter] - -[[highlight-all]] -[float] -=== Highlight in all fields - -By default, only fields that contains a query match are highlighted. Set -`require_field_match` to `false` to highlight all fields. - -[source,js] --------------------------------------------------- -GET /_search -{ - "query" : { - "match": { "user": "kimchy" } - }, - "highlight" : { - "require_field_match": false, - "fields": { - "_all" : { "pre_tags" : [""], "post_tags" : [""] } - } - } -} --------------------------------------------------- -// CONSOLE -// TEST[setup:twitter] - [[matched-fields]] [float] === Combine matches on multiple fields