summaryrefslogtreecommitdiff
path: root/rest-api-spec/api/termvector.json
blob: 99a9bdfa61b19f3a3b1130577eb507ef47cc8e6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
{
  "termvector" : {
    "documentation" : "http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-termvectors.html",
    "methods" : ["GET", "POST"],
    "url" : {
      "path" : "/{index}/{type}/{id}/_termvector",
      "paths" : ["/{index}/{type}/{id}/_termvector"],
      "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
        },
        "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
        }
      }
    },
    "body": {
      "description" : "Define parameters. See documentation.",
      "required" : false
    }
  }
}