Skip to content

Commit 3ff3bdd

Browse files
committed
reverted termvector changes that were a result of bad spec in 1.5 branch of rest-api-spec
1 parent fac8787 commit 3ff3bdd

File tree

4 files changed

+516
-41
lines changed

4 files changed

+516
-41
lines changed

src/CodeGeneration/CodeGeneration.LowLevelClient/ApiEndpoints/termvector.json

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,23 @@
33
"documentation" : "http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/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" : {
10-
"type" : "string",
11-
"description" : "The index in which the document resides.",
12-
"required" : true
10+
"type" : "string",
11+
"description" : "The index in which the document resides.",
12+
"required" : true
1313
},
1414
"type" : {
1515
"type" : "string",
1616
"description" : "The type of the document.",
1717
"required" : true
1818
},
1919
"id" : {
20-
"type" : "string",
21-
"description" : "The id of the document.",
22-
"required" : true
23-
}
20+
"type" : "string",
21+
"description" : "The id of the document, when not specified a doc param should be supplied."
22+
}
2423
},
2524
"params": {
2625
"source": {
@@ -34,10 +33,10 @@
3433
"required" : false
3534
},
3635
"field_statistics" : {
37-
"type" : "boolean",
38-
"description" : "Specifies if document count, sum of document frequencies and sum of total term frequencies should be returned.",
39-
"default" : true,
40-
"required" : false
36+
"type" : "boolean",
37+
"description" : "Specifies if document count, sum of document frequencies and sum of total term frequencies should be returned.",
38+
"default" : true,
39+
"required" : false
4140
},
4241
"fields" : {
4342
"type" : "list",
@@ -85,8 +84,8 @@
8584
}
8685
},
8786
"body": {
88-
"description" : "Define parameters. See documentation.",
87+
"description" : "Define parameters and or supply a document to get termvectors for. See documentation.",
8988
"required" : false
9089
}
9190
}
92-
}
91+
}

0 commit comments

Comments
 (0)