Deprecating request parameters in _analyze API
Remove params in indices.analyze.json Fix REST changes Closes #20246
This commit is contained in:
parent
99236b7627
commit
945fa499d2
|
@ -10,4 +10,4 @@ has been removed in Elasticsearch 6.0.0.
|
|||
|
||||
==== Analyze API changes
|
||||
|
||||
The deprecated request parameters and plain text in request body has been removed. Use JSON in request body.
|
||||
The deprecated request parameters and plain text in request body has been removed. Define parameters in request body.
|
||||
|
|
|
@ -12,22 +12,6 @@
|
|||
}
|
||||
},
|
||||
"params": {
|
||||
"analyzer": {
|
||||
"type" : "string",
|
||||
"description" : "The name of the analyzer to use"
|
||||
},
|
||||
"char_filter": {
|
||||
"type" : "list",
|
||||
"description" : "A comma-separated list of character filters to use for the analysis"
|
||||
},
|
||||
"field": {
|
||||
"type" : "string",
|
||||
"description" : "Use the analyzer configured for this field (instead of passing the analyzer name)"
|
||||
},
|
||||
"filter": {
|
||||
"type" : "list",
|
||||
"description" : "A comma-separated list of filters to use for the analysis"
|
||||
},
|
||||
"index": {
|
||||
"type" : "string",
|
||||
"description" : "The name of the index to scope the operation"
|
||||
|
@ -36,22 +20,6 @@
|
|||
"type" : "boolean",
|
||||
"description" : "With `true`, specify that a local shard should be used if available, with `false`, use a random shard (default: true)"
|
||||
},
|
||||
"text": {
|
||||
"type" : "list",
|
||||
"description" : "The text on which the analysis should be performed (when request body is not used)"
|
||||
},
|
||||
"tokenizer": {
|
||||
"type" : "string",
|
||||
"description" : "The name of the tokenizer to use for the analysis"
|
||||
},
|
||||
"explain": {
|
||||
"type" : "boolean",
|
||||
"description" : "With `true`, outputs more advanced details. (default: false)"
|
||||
},
|
||||
"attributes": {
|
||||
"type" : "list",
|
||||
"description" : "A comma-separated list of token attributes to output, this parameter works only with `explain=true`"
|
||||
},
|
||||
"format": {
|
||||
"type": "enum",
|
||||
"options" : ["detailed","text"],
|
||||
|
@ -61,7 +29,7 @@
|
|||
}
|
||||
},
|
||||
"body": {
|
||||
"description" : "The text on which the analysis should be performed"
|
||||
"description" : "Define analyzer/tokenizer parameters and the text on which the analysis should be performed"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue