Skip to content

Commit

Permalink
Remove _all example (#31711)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
synhershko authored and nik9000 committed Jul 2, 2018
1 parent 4df16a3 commit e45697c
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions docs/reference/search/request/highlighting.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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" : ["<em>"], "post_tags" : ["</em>"] }
}
}
}
--------------------------------------------------
// CONSOLE
// TEST[setup:twitter]

[[matched-fields]]
[float]
=== Combine matches on multiple fields
Expand Down

0 comments on commit e45697c

Please sign in to comment.