2014-01-20 07:23:27 -05:00
|
|
|
{
|
2014-11-13 09:05:09 -05:00
|
|
|
"termvectors" : {
|
2014-01-22 08:40:31 -05:00
|
|
|
"documentation" : "http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/docs-termvectors.html",
|
2014-01-20 07:23:27 -05:00
|
|
|
"methods" : ["GET", "POST"],
|
|
|
|
"url" : {
|
2014-11-13 09:05:09 -05:00
|
|
|
"path" : "/{index}/{type}/{id}/_termvectors",
|
|
|
|
"paths" : ["/{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",
|
|
|
|
"description" : "The id of the document.",
|
|
|
|
"required" : true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"params": {
|
|
|
|
"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": {
|
|
|
|
"type" : "boolean",
|
|
|
|
"description" : "Specifies if request is real-time as opposed to near-real-time (default: true).",
|
|
|
|
"required" : false
|
2014-01-20 07:23:27 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"body": {
|
|
|
|
"description" : "Define parameters. See documentation.",
|
|
|
|
"required" : false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|