Skip to content

Commit 821a533

Browse files
synhershkonik9000
authored andcommitted
Remove _all example (#31711)
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.
1 parent d1f3d8d commit 821a533

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

docs/reference/search/request/highlighting.asciidoc

-26
Original file line numberDiff line numberDiff line change
@@ -485,32 +485,6 @@ GET /_search
485485
// CONSOLE
486486
// TEST[setup:twitter]
487487

488-
489-
[[highlight-all]]
490-
[float]
491-
=== Highlight in all fields
492-
493-
By default, only fields that contains a query match are highlighted. Set
494-
`require_field_match` to `false` to highlight all fields.
495-
496-
[source,js]
497-
--------------------------------------------------
498-
GET /_search
499-
{
500-
"query" : {
501-
"match": { "user": "kimchy" }
502-
},
503-
"highlight" : {
504-
"require_field_match": false,
505-
"fields": {
506-
"_all" : { "pre_tags" : ["<em>"], "post_tags" : ["</em>"] }
507-
}
508-
}
509-
}
510-
--------------------------------------------------
511-
// CONSOLE
512-
// TEST[setup:twitter]
513-
514488
[[matched-fields]]
515489
[float]
516490
=== Combine matches on multiple fields

0 commit comments

Comments
 (0)