[DOCS] Fix allow_no_match description for model APIs (#62008)

This commit is contained in:
Lisa Cawley 2020-09-08 08:11:33 -07:00 committed by lcawl
parent 075271758e
commit f0e7d88699
3 changed files with 17 additions and 2 deletions

View File

@ -55,7 +55,7 @@ include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=model-id]
`allow_no_match`:: `allow_no_match`::
(Optional, boolean) (Optional, boolean)
include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=allow-no-match] include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=allow-no-match-models]
`from`:: `from`::
(Optional, integer) (Optional, integer)

View File

@ -57,7 +57,7 @@ include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=model-id]
`allow_no_match`:: `allow_no_match`::
(Optional, boolean) (Optional, boolean)
include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=allow-no-match] include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=allow-no-match-models]
`decompress_definition`:: `decompress_definition`::
(Optional, boolean) (Optional, boolean)

View File

@ -62,6 +62,21 @@ when there are no matches or only partial matches.
-- --
end::allow-no-match[] end::allow-no-match[]
tag::allow-no-match-models[]
Specifies what to do when the request:
+
--
* Contains wildcard expressions and there are no models that match.
* Contains the `_all` string or no identifiers and there are no matches.
* Contains wildcard expressions and there are only partial matches.
The default value is `true`, which returns an empty array when there are no
matches and the subset of results when there are partial matches. If this
parameter is `false`, the request returns a `404` status code when there are no
matches or only partial matches.
--
end::allow-no-match-models[]
tag::analysis[] tag::analysis[]
Defines the type of {dfanalytics} you want to perform on your source index. For Defines the type of {dfanalytics} you want to perform on your source index. For
example: `outlier_detection`. See <<ml-dfa-analysis-objects>>. example: `outlier_detection`. See <<ml-dfa-analysis-objects>>.