From c3478a5c51e45c4b2d82d6470d0a4713a7d43280 Mon Sep 17 00:00:00 2001 From: Jeff Hajewski Date: Thu, 8 Nov 2018 04:09:03 -0600 Subject: [PATCH] Fixes fast vector highlighter docs per issue 24318. (#34190) The `fvh` highlighter does not support span queries. This fix updates the docs to add a warning stating the lack of span query support for `fvh`. --- docs/reference/search/request/highlighting.asciidoc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/reference/search/request/highlighting.asciidoc b/docs/reference/search/request/highlighting.asciidoc index 596e404505ac5..e0e4817562595 100644 --- a/docs/reference/search/request/highlighting.asciidoc +++ b/docs/reference/search/request/highlighting.asciidoc @@ -82,6 +82,10 @@ This highlighter can be used on fields with `term_vector` set to for things like phrase matches being sorted above term matches when highlighting a Boosting Query that boosts phrase matches over term matches +[WARNING] +The `fvh` highlighter does not support span queries. If you need support for +span queries, try an alternative highlighter, such as the `unified` highlighter. + [[offsets-strategy]] ==== Offsets Strategy To create meaningful search snippets from the terms being queried,