summaryrefslogtreecommitdiff
path: root/rest-api-spec/api/count_percolate.json
blob: 3ab4cd5fe55b7b0a9cc4776cab0011e960509ac8 (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
{
  "count_percolate": {
    "documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html",
    "methods": ["GET", "POST"],
    "url": {
      "path": "/{index}/{type}/_percolate/count",
      "paths": ["/{index}/{type}/_percolate/count", "/{index}/{type}/{id}/_percolate/count"],
      "parts": {
        "index": {
          "type": "string",
          "required": true,
          "description": "The index of the document being count percolated."
        },
        "type": {
          "type": "string",
          "required": true,
          "description": "The type of the document being count percolated."
        },
        "id": {
          "type": "string",
          "required": false,
          "description": "Substitute the document in the request body with a document that is known by the specified id. On top of the id, the index and type parameter will be used to retrieve the document from within the cluster."
        }
      },
      "params": {
        "routing": {
          "type": "list",
          "description": "A comma-separated list of specific routing values"
        },
        "preference": {
          "type": "string",
          "description": "Specify the node or shard the operation should be performed on (default: random)"
        },
        "ignore_unavailable": {
          "type": "boolean",
          "description": "Whether specified concrete indices should be ignored when unavailable (missing or closed)"
        },
        "allow_no_indices": {
          "type": "boolean",
          "description": "Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)"
        },
        "expand_wildcards": {
          "type": "enum",
          "options": ["open", "closed"],
          "default": "open",
          "description": "Whether to expand wildcard expression to concrete indices that are open, closed or both."
        },
        "percolate_index": {
          "type": "string",
          "description": "The index to count percolate the document into. Defaults to index."
        },
        "percolate_type": {
          "type": "string",
          "description": "The type to count percolate document into. Defaults to type."
        },
        "version": {
          "type": "number",
          "description": "Explicit version number for concurrency control"
        },
        "version_type": {
          "type": "enum",
          "options": ["internal", "external"],
          "description": "Specific version type"
        }
      }
    },
    "body": {
      "description": "The count percolator request definition using the percolate DSL",
      "required": false
    }
  }
}