From 277f4b8d248cc523a6ce0d9ba6a834ec295056f6 Mon Sep 17 00:00:00 2001 From: Luca Wintergerst Date: Fri, 18 Nov 2016 12:05:49 +0100 Subject: [PATCH] fix two errors in suggester docs The first changed referred to an example of the 2.4 documentation. I removed the no longer relevant parts. We should consider adding a little more here. The second change was just then->than in the suggest_mode popular section --- docs/reference/search/suggesters/phrase-suggest.asciidoc | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/docs/reference/search/suggesters/phrase-suggest.asciidoc b/docs/reference/search/suggesters/phrase-suggest.asciidoc index 6c502421e4e..3fce27c6d95 100644 --- a/docs/reference/search/suggesters/phrase-suggest.asciidoc +++ b/docs/reference/search/suggesters/phrase-suggest.asciidoc @@ -106,12 +106,7 @@ POST _suggest -------------------------------------------------- // CONSOLE -The response contains suggestions scored by the most likely spell -correction first. In this case we received the expected correction -`xorr the god jewel` first while the second correction is less -conservative where only one of the errors is corrected. Note, the -request is executed with `max_errors` set to `0.5` so 50% of the terms -can contain misspellings (See parameter descriptions below). +The response contains suggestions scored by the most likely spell correction first. In this case we received the expected correction "nobel prize". [source,js] -------------------------------------------------- @@ -320,7 +315,7 @@ The direct generators support the following parameters: filtered out using `confidence`. Three possible values can be specified: ** `missing`: Only generate suggestions for terms that are not in the shard. This is the default. - ** `popular`: Only suggest terms that occur in more docs on the shard then + ** `popular`: Only suggest terms that occur in more docs on the shard than the original term. ** `always`: Suggest any matching suggestions based on terms in the suggest text.