summaryrefslogtreecommitdiff
path: root/plugins/analysis-stempel/src/test/resources/rest-api-spec/test/analysis_stempel/20_search.yaml
blob: f699440cb4f7b54fb7be72eb6f3eebf390f1d59e (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
# Integration tests for Stempel analysis component
#
---
"Index Stempel content":
    - do:
        indices.create:
            index:  test
            body:
                mappings:
                    type:
                        properties:
                            text:
                                type:     text
                                analyzer: polish
    - do:
       cluster.health:
           wait_for_status: yellow

    - do:
      index:
          index:  test
          type:   type
          id:     1
          body:   { "text": "studenta był" }
    - do:
      indices.refresh: {}

    - do:
        search:
            index: test
            body:
                query:
                    match:
                        text: student
    - match: { hits.total: 1 }