"Fossies" - the Fresh Open Source Software Archive

Member "elasticsearch-6.8.23/rest-api-spec/src/main/resources/rest-api-spec/test/search/100_stored_fields.yml" (29 Dec 2021, 760 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 setup:
    2   - do:
    3       indices.create:
    4           index:  test
    5   - do:
    6       index:
    7           index:  test
    8           type:   test
    9           id:     1
   10           body:   { foo: bar }
   11   - do:
   12       indices.refresh:
   13           index: [test]
   14 
   15 ---
   16 "Stored fields":
   17   - do:
   18       search:
   19         index: test
   20 
   21   - is_true: hits.hits.0._id
   22   - is_true: hits.hits.0._type
   23   - is_true: hits.hits.0._source
   24 
   25   - do:
   26       search:
   27         index: test
   28         body:
   29           stored_fields: []
   30 
   31   - is_true: hits.hits.0._id
   32   - is_true: hits.hits.0._type
   33   - is_false: hits.hits.0._source
   34 
   35   - do:
   36       search:
   37         index: test
   38         body:
   39           stored_fields: "_none_"
   40 
   41   - is_false: hits.hits.0._id
   42   - is_false: hits.hits.0._type
   43   - is_false: hits.hits.0._source
   44