Skip to content

Commit b8803ee

Browse files
committed
Updated the 1.4 rest api spec for termvector so that it reflects 'Term Vectors: Support for artificial documents #7530'
1 parent 24d5ec1 commit b8803ee

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

rest-api-spec/api/mtermvectors.json

+2-6
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,7 @@
1313
"type" : {
1414
"type" : "string",
1515
"description" : "The type of the document."
16-
},
17-
"id" : {
18-
"type" : "string",
19-
"description" : "The id of the document."
20-
}
16+
}
2117
},
2218
"params" : {
2319
"ids" : {
@@ -78,7 +74,7 @@
7874
}
7975
},
8076
"body" : {
81-
"description" : "Define ids, parameters or a list of parameters per document here. You must at least provide a list of document ids. See documentation.",
77+
"description" : "Define ids, documents, parameters or a list of parameters per document here. You must at least provide a list of document ids. See documentation.",
8278
"required" : false
8379

8480
}

rest-api-spec/api/termvector.json

+4-5
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"documentation" : "http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.4/docs-termvectors.html",
44
"methods" : ["GET", "POST"],
55
"url" : {
6-
"path" : "/{index}/{type}/{id}/_termvector",
7-
"paths" : ["/{index}/{type}/{id}/_termvector"],
6+
"path" : "/{index}/{type}/_termvector",
7+
"paths" : ["/{index}/{type}/_termvector", "/{index}/{type}/{id}/_termvector"],
88
"parts" : {
99
"index" : {
1010
"type" : "string",
@@ -18,8 +18,7 @@
1818
},
1919
"id" : {
2020
"type" : "string",
21-
"description" : "The id of the document.",
22-
"required" : true
21+
"description" : "The id of the document, when not specified a doc param should be supplied."
2322
}
2423
},
2524
"params": {
@@ -76,7 +75,7 @@
7675
}
7776
},
7877
"body": {
79-
"description" : "Define parameters. See documentation.",
78+
"description" : "Define parameters and or supply a document to get termvectors for. See documentation.",
8079
"required" : false
8180
}
8281
}

0 commit comments

Comments
 (0)