2013-07-23 22:10:53 -04:00
|
|
|
---
|
|
|
|
"Validate query api":
|
|
|
|
- do:
|
|
|
|
indices.create:
|
|
|
|
index: testing
|
2014-02-11 11:10:42 -05:00
|
|
|
body:
|
|
|
|
settings:
|
|
|
|
number_of_replicas: 0
|
2013-07-23 22:10:53 -04:00
|
|
|
|
|
|
|
- do:
|
|
|
|
cluster.health:
|
|
|
|
wait_for_status: yellow
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.validate_query:
|
|
|
|
q: query string
|
|
|
|
|
|
|
|
- is_true: valid
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.validate_query:
|
|
|
|
body:
|
|
|
|
query:
|
|
|
|
invalid_query: {}
|
|
|
|
|
|
|
|
- is_false: valid
|
|
|
|
|
2014-05-09 19:13:07 -04:00
|
|
|
- do:
|
|
|
|
indices.validate_query:
|
|
|
|
explain: true
|
|
|
|
|
|
|
|
- is_true: valid
|
|
|
|
- match: {_shards.failed: 0}
|
|
|
|
- match: {explanations.0.index: 'testing'}
|
2015-04-09 12:33:27 -04:00
|
|
|
- match: {explanations.0.explanation: '*:*'}
|
2014-05-09 19:13:07 -04:00
|
|
|
|