Merge pull request #21651 from elastic/suggester-docs-example-fix
fix two errors in suggester docs
This commit is contained in:
commit
7a533577b8
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue