2014-01-20 07:23:27 -05:00
|
|
|
{
|
2014-11-13 09:05:09 -05:00
|
|
|
"termvectors" : {
|
2015-03-24 12:03:35 -04:00
|
|
|
"documentation" : "http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html",
|
2014-01-20 07:23:27 -05:00
|
|
|
"methods" : ["GET", "POST"],
|
|
|
|
"url" : {
|
2014-12-10 06:33:22 -05:00
|
|
|
"path" : "/{index}/{type}/_termvectors",
|
|
|
|
"paths" : ["/{index}/{type}/_termvectors", "/{index}/{type}/{id}/_termvectors"],
|
2014-01-20 07:23:27 -05:00
|
|
|
"parts" : {
|
|
|
|
"index" : {
|
|
|
|
"type" : "string",
|
|
|
|
"description" : "The index in which the document resides.",
|
|
|
|
"required" : true
|
|
|
|
},
|
|
|
|
"type" : {
|
|
|
|
"type" : "string",
|
|
|
|
"description" : "The type of the document.",
|
|
|
|
"required" : true
|
|
|
|
},
|
|
|
|
"id" : {
|
|
|
|
"type" : "string",
|
2014-12-10 06:33:22 -05:00
|
|
|
"description" : "The id of the document, when not specified a doc param should be supplied."
|
2014-01-20 07:23:27 -05:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"params": {
|
2015-02-10 08:01:49 -05:00
|
|
|
"source": {
|
|
|
|
"type" : "string",
|
|
|
|
"description" : "The URL-encoded request definition"
|
|
|
|
},
|
2014-01-20 07:23:27 -05:00
|
|
|
"term_statistics" : {
|
|
|
|
"type" : "boolean",
|
|
|
|
"description" : "Specifies if total term frequency and document frequency should be returned.",
|
|
|
|
"default" : false,
|
|
|
|
"required" : false
|
|
|
|
},
|
|
|
|
"field_statistics" : {
|
|
|
|
"type" : "boolean",
|
|
|
|
"description" : "Specifies if document count, sum of document frequencies and sum of total term frequencies should be returned.",
|
|
|
|
"default" : true,
|
|
|
|
"required" : false
|
|
|
|
},
|
2014-10-16 13:46:47 -04:00
|
|
|
"dfs" : {
|
|
|
|
"type" : "boolean",
|
|
|
|
"description" : "Specifies if distributed frequencies should be returned instead shard frequencies.",
|
|
|
|
"default" : false,
|
|
|
|
"required" : false
|
|
|
|
},
|
2014-01-20 07:23:27 -05:00
|
|
|
"fields" : {
|
|
|
|
"type" : "list",
|
|
|
|
"description" : "A comma-separated list of fields to return.",
|
|
|
|
"required" : false
|
|
|
|
},
|
|
|
|
"offsets" : {
|
|
|
|
"type" : "boolean",
|
|
|
|
"description" : "Specifies if term offsets should be returned.",
|
|
|
|
"default" : true,
|
|
|
|
"required" : false
|
|
|
|
},
|
|
|
|
"positions" : {
|
|
|
|
"type" : "boolean",
|
|
|
|
"description" : "Specifies if term positions should be returned.",
|
|
|
|
"default" : true,
|
|
|
|
"required" : false
|
|
|
|
},
|
|
|
|
"payloads" : {
|
|
|
|
"type" : "boolean",
|
|
|
|
"description" : "Specifies if term payloads should be returned.",
|
|
|
|
"default" : true,
|
|
|
|
"required" : false
|
|
|
|
},
|
|
|
|
"preference" : {
|
|
|
|
"type" : "string",
|
|
|
|
"description" : "Specify the node or shard the operation should be performed on (default: random).",
|
|
|
|
"required" : false
|
|
|
|
},
|
|
|
|
"routing" : {
|
|
|
|
"type" : "string",
|
|
|
|
"description" : "Specific routing value.",
|
|
|
|
"required" : false
|
|
|
|
},
|
|
|
|
"parent": {
|
|
|
|
"type" : "string",
|
|
|
|
"description" : "Parent id of documents.",
|
|
|
|
"required" : false
|
2014-09-23 17:21:42 -04:00
|
|
|
},
|
|
|
|
"realtime": {
|
2014-08-27 07:22:20 -04:00
|
|
|
"type": "boolean",
|
|
|
|
"description": "Specifies if request is real-time as opposed to near-real-time (default: true).",
|
|
|
|
"required": false
|
|
|
|
},
|
|
|
|
"version" : {
|
|
|
|
"type" : "number",
|
|
|
|
"description" : "Explicit version number for concurrency control"
|
|
|
|
},
|
|
|
|
"version_type": {
|
|
|
|
"type" : "enum",
|
|
|
|
"options" : ["internal", "external", "external_gte", "force"],
|
|
|
|
"description" : "Specific version type"
|
2014-01-20 07:23:27 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"body": {
|
2014-12-10 06:33:22 -05:00
|
|
|
"description" : "Define parameters and or supply a document to get termvectors for. See documentation.",
|
2014-01-20 07:23:27 -05:00
|
|
|
"required" : false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|