"Fossies" - the Fresh Open Source Software Archive

Member "elasticsearch-6.8.23/rest-api-spec/src/main/resources/rest-api-spec/test/indices.get_mapping/10_basic.yml" (29 Dec 2021, 1625 Bytes) of package /linux/www/elasticsearch-6.8.23-src.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Ansible YAML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 ---
    2 setup:
    3   - skip:
    4       version: " - 6.6.99"
    5       reason: include_type_name was introduced in 6.7.0
    6   - do:
    7       indices.create:
    8         include_type_name: false
    9         index: test_1
   10         body:
   11           mappings: {}
   12   - do:
   13       indices.create:
   14         include_type_name: false
   15         index: test_2
   16         body:
   17           mappings: {}
   18 ---
   19 "Get /{index}/_mapping with empty mappings":
   20 
   21   - do:
   22       indices.create:
   23         include_type_name: false
   24         index: t
   25 
   26   - do:
   27       indices.get_mapping:
   28         include_type_name: false
   29         index: t
   30 
   31   - match: { t.mappings: {}}
   32 
   33 ---
   34 "Get /_mapping":
   35 
   36   - do:
   37       indices.get_mapping:
   38         include_type_name: false
   39 
   40   - is_true: test_1.mappings
   41   - is_true: test_2.mappings
   42 
   43 ---
   44 "Get /{index}/_mapping":
   45 
   46   - do:
   47       indices.get_mapping:
   48         include_type_name: false
   49         index: test_1
   50 
   51   - is_true: test_1.mappings
   52   - is_false: test_2
   53 
   54 
   55 
   56 ---
   57 "Get /_all/_mapping":
   58 
   59   - do:
   60       indices.get_mapping:
   61         include_type_name: false
   62         index: _all
   63 
   64   - is_true: test_1.mappings
   65   - is_true: test_2.mappings
   66 
   67 ---
   68 "Get /*/_mapping":
   69 
   70   - do:
   71       indices.get_mapping:
   72         include_type_name: false
   73         index: '*'
   74 
   75   - is_true: test_1.mappings
   76   - is_true: test_2.mappings
   77 
   78 ---
   79 "Get /index,index/_mapping":
   80 
   81   - do:
   82       indices.get_mapping:
   83         include_type_name: false
   84         index: test_1,test_2
   85 
   86   - is_true: test_1.mappings
   87   - is_true: test_2.mappings
   88 
   89 ---
   90 "Get /index*/_mapping/":
   91 
   92   - do:
   93       indices.get_mapping:
   94         include_type_name: false
   95         index: '*2'
   96 
   97   - is_true: test_2.mappings
   98   - is_false: test_1