2013-05-24 06:02:42 -04:00
|
|
|
{
|
|
|
|
"indices.analyze": {
|
2013-05-27 07:10:42 -04:00
|
|
|
"documentation": "http://www.elasticsearch.org/guide/reference/api/admin-indices-analyze/",
|
2013-05-24 06:02:42 -04:00
|
|
|
"methods": ["GET", "POST"],
|
|
|
|
"url": {
|
|
|
|
"path": "/_analyze",
|
|
|
|
"paths": ["/_analyze", "/{index}/_analyze"],
|
|
|
|
"parts": {
|
|
|
|
"index": {
|
2013-05-27 07:10:42 -04:00
|
|
|
"type" : "string",
|
|
|
|
"description" : "The name of the index to scope the operation"
|
2013-05-24 06:02:42 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"params": {
|
2013-05-26 06:20:43 -04:00
|
|
|
"analyzer": {
|
2013-05-27 07:10:42 -04:00
|
|
|
"type" : "string",
|
|
|
|
"description" : "The name of the analyzer to use"
|
2013-05-26 06:20:43 -04:00
|
|
|
},
|
|
|
|
"field": {
|
2013-05-27 07:10:42 -04:00
|
|
|
"type" : "string",
|
2013-06-18 16:16:52 -04:00
|
|
|
"description" : "Use the analyzer configured for this field (instead of passing the analyzer name)"
|
2013-05-26 06:20:43 -04:00
|
|
|
},
|
|
|
|
"filters": {
|
2013-05-27 07:10:42 -04:00
|
|
|
"type" : "list",
|
|
|
|
"description" : "A comma-separated list of filters to use for the analysis"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
|
|
|
"index": {
|
2013-05-27 07:10:42 -04:00
|
|
|
"type" : "string",
|
|
|
|
"description" : "The name of the index to scope the operation"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
|
|
|
"prefer_local": {
|
2013-05-27 07:10:42 -04:00
|
|
|
"type" : "boolean",
|
2013-05-28 04:51:49 -04:00
|
|
|
"description" : "With `true`, specify that a local shard should be used if available, with `false`, use a random shard (default: true)"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
2013-05-26 06:20:43 -04:00
|
|
|
"text": {
|
2013-05-27 07:10:42 -04:00
|
|
|
"type" : "string",
|
|
|
|
"description" : "The text on which the analysis should be performed (when request body is not used)"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
|
|
|
"tokenizer": {
|
2013-05-27 07:10:42 -04:00
|
|
|
"type" : "string",
|
|
|
|
"description" : "The name of the tokenizer to use for the analysis"
|
2013-06-10 11:30:24 -04:00
|
|
|
},
|
|
|
|
"format": {
|
|
|
|
"type": "enum",
|
|
|
|
"options" : ["detailed","text"],
|
|
|
|
"default": "detailed",
|
|
|
|
"description": "Format of the output"
|
2013-05-24 06:02:42 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"body": {
|
2013-05-27 07:10:42 -04:00
|
|
|
"description" : "The text on which the analysis should be performed"
|
2013-05-24 06:02:42 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|