David Pilato 7843c63aa3 [kuromoji] move integration tests to REST tests
We can keep only unit tests in plugins instead of starting each time a local node and running tests against it.
2015-07-07 17:40:54 +02:00

36 lines
719 B
YAML

# Integration tests for Kuromoji analysis components
#
---
"Index kuromoji content":
- do:
indices.create:
index: test
body:
mappings:
type:
properties:
text:
type: string
analyzer: kuromoji
- do:
cluster.health:
wait_for_status: yellow
- do:
index:
index: test
type: type
id: 1
body: { "text": "JR新宿駅の近くにビールを飲みに行こうか" }
- do:
indices.refresh: {}
- do:
search:
index: test
body:
query:
match:
text: jr
- match: { hits.total: 1 }