Deprecating request parameters in _analyze API

Remove params in indices.analyze.json
Fix REST changes

Closes #20246
This commit is contained in:
Jun Ohtani 2016-10-05 19:13:33 +09:00
parent 99236b7627
commit 945fa499d2
2 changed files with 2 additions and 34 deletions

View File

@ -10,4 +10,4 @@ has been removed in Elasticsearch 6.0.0.
==== Analyze API changes ==== 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.

View File

@ -12,22 +12,6 @@
} }
}, },
"params": { "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": { "index": {
"type" : "string", "type" : "string",
"description" : "The name of the index to scope the operation" "description" : "The name of the index to scope the operation"
@ -36,22 +20,6 @@
"type" : "boolean", "type" : "boolean",
"description" : "With `true`, specify that a local shard should be used if available, with `false`, use a random shard (default: true)" "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": { "format": {
"type": "enum", "type": "enum",
"options" : ["detailed","text"], "options" : ["detailed","text"],
@ -61,7 +29,7 @@
} }
}, },
"body": { "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"
} }
} }
} }