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
This commit is contained in:
Luca Wintergerst 2016-11-18 12:05:49 +01:00 committed by GitHub
parent b9bee8bca3
commit 277f4b8d24
1 changed files with 2 additions and 7 deletions

View File

@ -106,12 +106,7 @@ POST _suggest
-------------------------------------------------- --------------------------------------------------
// CONSOLE // CONSOLE
The response contains suggestions scored by the most likely spell The response contains suggestions scored by the most likely spell correction first. In this case we received the expected correction "nobel prize".
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).
[source,js] [source,js]
-------------------------------------------------- --------------------------------------------------
@ -320,7 +315,7 @@ The direct generators support the following parameters:
filtered out using `confidence`. Three possible values can be specified: filtered out using `confidence`. Three possible values can be specified:
** `missing`: Only generate suggestions for terms that are not in the ** `missing`: Only generate suggestions for terms that are not in the
shard. This is the default. 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. the original term.
** `always`: Suggest any matching suggestions based on terms in the ** `always`: Suggest any matching suggestions based on terms in the
suggest text. suggest text.