mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-08 20:10:00 +00:00
[SPEC] Add rewrite
query parameter to the indices.validate_query
API
This commit is contained in:
parent
e817393c8d
commit
8dd7dae5b9
@ -66,6 +66,10 @@
|
||||
"lowercase_expanded_terms": {
|
||||
"type" : "boolean",
|
||||
"description" : "Specify whether query terms should be lowercased"
|
||||
},
|
||||
"rewrite": {
|
||||
"type": "boolean",
|
||||
"description": "Provide a more detailed explanation showing the actual Lucene query that will be executed."
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -33,4 +33,13 @@
|
||||
- match: {_shards.failed: 0}
|
||||
- match: {explanations.0.index: 'testing'}
|
||||
- match: {explanations.0.explanation: '*:*'}
|
||||
|
||||
- do:
|
||||
indices.validate_query:
|
||||
rewrite: true
|
||||
|
||||
- is_true: valid
|
||||
- match: {_shards.failed: 0}
|
||||
- match: {explanations.0.index: 'testing'}
|
||||
- match: {explanations.0.explanation: 'ConstantScore(*:*)'}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user