|
| 1 | +--- |
| 2 | +"get cluster stats returns analysis stats": |
| 3 | + |
| 4 | + - skip: |
| 5 | + version: " - 7.99.99" # TODO: 7.6.99 |
| 6 | + reason: "analysis stats are added for v7.7.0" |
| 7 | + |
| 8 | + - do: |
| 9 | + cluster.stats: {} |
| 10 | + |
| 11 | + - length: { indices.analysis.char_filter_types: 0 } |
| 12 | + - length: { indices.analysis.tokenizer_types: 0 } |
| 13 | + - length: { indices.analysis.filter_types: 0 } |
| 14 | + - length: { indices.analysis.analyzer_types: 0 } |
| 15 | + |
| 16 | + - length: { indices.analysis.built_in_char_filters: 0 } |
| 17 | + - length: { indices.analysis.built_in_tokenizers: 0 } |
| 18 | + - length: { indices.analysis.built_in_filters: 0 } |
| 19 | + - length: { indices.analysis.built_in_analyzers: 0 } |
| 20 | + |
| 21 | + - do: |
| 22 | + indices.create: |
| 23 | + index: test-index1 |
| 24 | + body: |
| 25 | + settings: |
| 26 | + analysis: |
| 27 | + char_filter: |
| 28 | + c: |
| 29 | + type: mapping |
| 30 | + mappings: [ "a => b" ] |
| 31 | + tokenizer: |
| 32 | + tok: |
| 33 | + type: pattern |
| 34 | + pattern: "," |
| 35 | + filter: |
| 36 | + st: |
| 37 | + type: stop |
| 38 | + stopwords: [ "a" ] |
| 39 | + st2: |
| 40 | + type: stop |
| 41 | + stopwords: [ "b" ] |
| 42 | + analyzer: |
| 43 | + en: |
| 44 | + type: standard |
| 45 | + stopwords: "_english_" |
| 46 | + cust: |
| 47 | + char_filter: [ "html_strip" ] |
| 48 | + tokenizer: "keyword" |
| 49 | + filter: [ "trim" ] |
| 50 | + mappings: |
| 51 | + properties: |
| 52 | + message: |
| 53 | + type: "text" |
| 54 | + analyzer: french |
| 55 | + search_analyzer: spanish |
| 56 | + search_quote_analyzer: german |
| 57 | + description: |
| 58 | + type: "text" |
| 59 | + analyzer: french |
| 60 | + |
| 61 | + - do: |
| 62 | + indices.create: |
| 63 | + index: test-index2 |
| 64 | + body: |
| 65 | + mappings: |
| 66 | + properties: |
| 67 | + message: |
| 68 | + type: "text" |
| 69 | + analyzer: spanish |
| 70 | + |
| 71 | + - do: |
| 72 | + cluster.stats: {} |
| 73 | + |
| 74 | + - length: { indices.analysis.char_filter_types: 1 } |
| 75 | + - match: { indices.analysis.char_filter_types.0.name: mapping } |
| 76 | + - match: { indices.analysis.char_filter_types.0.count: 1 } |
| 77 | + - match: { indices.analysis.char_filter_types.0.index_count: 1 } |
| 78 | + |
| 79 | + - length: { indices.analysis.tokenizer_types: 1 } |
| 80 | + - match: { indices.analysis.tokenizer_types.0.name: pattern } |
| 81 | + - match: { indices.analysis.tokenizer_types.0.count: 1 } |
| 82 | + - match: { indices.analysis.tokenizer_types.0.index_count: 1 } |
| 83 | + |
| 84 | + - length: { indices.analysis.filter_types: 1 } |
| 85 | + - match: { indices.analysis.filter_types.0.name: stop } |
| 86 | + - match: { indices.analysis.filter_types.0.count: 2 } |
| 87 | + - match: { indices.analysis.filter_types.0.index_count: 1 } |
| 88 | + |
| 89 | + - length: { indices.analysis.analyzer_types: 2 } |
| 90 | + - match: { indices.analysis.analyzer_types.0.name: custom } |
| 91 | + - match: { indices.analysis.analyzer_types.0.count: 1 } |
| 92 | + - match: { indices.analysis.analyzer_types.0.index_count: 1 } |
| 93 | + - match: { indices.analysis.analyzer_types.1.name: standard } |
| 94 | + - match: { indices.analysis.analyzer_types.1.count: 1 } |
| 95 | + - match: { indices.analysis.analyzer_types.1.index_count: 1 } |
| 96 | + |
| 97 | + - length: { indices.analysis.built_in_char_filters: 1 } |
| 98 | + - match: { indices.analysis.built_in_char_filters.0.name: html_strip } |
| 99 | + - match: { indices.analysis.built_in_char_filters.0.count: 1 } |
| 100 | + - match: { indices.analysis.built_in_char_filters.0.index_count: 1 } |
| 101 | + |
| 102 | + - length: { indices.analysis.built_in_tokenizers: 1 } |
| 103 | + - match: { indices.analysis.built_in_tokenizers.0.name: keyword } |
| 104 | + - match: { indices.analysis.built_in_tokenizers.0.count: 1 } |
| 105 | + - match: { indices.analysis.built_in_tokenizers.0.index_count: 1 } |
| 106 | + |
| 107 | + - length: { indices.analysis.built_in_filters: 1 } |
| 108 | + - match: { indices.analysis.built_in_filters.0.name: trim } |
| 109 | + - match: { indices.analysis.built_in_filters.0.count: 1 } |
| 110 | + - match: { indices.analysis.built_in_filters.0.index_count: 1 } |
| 111 | + |
| 112 | + - length: { indices.analysis.built_in_analyzers: 3 } |
| 113 | + - match: { indices.analysis.built_in_analyzers.0.name: french } |
| 114 | + - match: { indices.analysis.built_in_analyzers.0.count: 2 } |
| 115 | + - match: { indices.analysis.built_in_analyzers.0.index_count: 1 } |
| 116 | + - match: { indices.analysis.built_in_analyzers.1.name: german } |
| 117 | + - match: { indices.analysis.built_in_analyzers.1.count: 1 } |
| 118 | + - match: { indices.analysis.built_in_analyzers.1.index_count: 1 } |
| 119 | + - match: { indices.analysis.built_in_analyzers.2.name: spanish } |
| 120 | + - match: { indices.analysis.built_in_analyzers.2.count: 2 } |
| 121 | + - match: { indices.analysis.built_in_analyzers.2.index_count: 2 } |
| 122 | + |
0 commit comments