OpenSearch/rest-api-spec/test/indices.validate_query/10_basic.yaml

37 lines
619 B
YAML
Raw Normal View History

2013-07-23 22:10:53 -04:00
---
"Validate query api":
- do:
indices.create:
index: testing
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
- do:
indices.validate_query:
explain: true
- is_true: valid
- match: {_shards.failed: 0}
- match: {explanations.0.index: 'testing'}
- match: {explanations.0.explanation: '*:*'}