summaryrefslogtreecommitdiff
path: root/rest-api-spec/test/indices.get_mapping/40_aliases.yaml
blob: 9dff6edc9dc747817da295f20c1212498eacf177 (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
---
"Getting mapping for aliases should return the real index as key":

  - do:
        indices.create:
          index: test_index
          body:
              mappings:
                test_type:
                  properties:
                    text:
                      type:     string
                      analyzer: whitespace

  - do:
      indices.put_alias:
        index: test_index
        name:  test_alias

  - do:
      indices.get_mapping:
        index: test_alias

  - match: {test_index.mappings.test_type.properties.text.type:     string}
  - match: {test_index.mappings.test_type.properties.text.analyzer: whitespace}