Merge pull request #21651 from elastic/suggester-docs-example-fix

fix two errors in suggester docs
This commit is contained in:
Luca Wintergerst 2016-11-18 13:13:13 +01:00 committed by GitHub
commit 7a533577b8
1 changed files with 2 additions and 7 deletions

View File

@ -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.