OpenSearch/rest-api-spec/test/explain/30_query_string.yaml

94 lines
1.5 KiB
YAML

---
"explain with query_string parameters":
- do:
indices.create:
index: test
body:
mappings:
test:
_all:
enabled: false
properties:
number:
type: integer
- do:
index:
index: test
type: test
id: 1
body: { field: foo bar}
- do:
indices.refresh:
index: [test]
- do:
explain:
index: test
type: test
id: 1
q: bar
df: field
- is_true: matched
- do:
explain:
index: test
type: test
id: 1
q: field:foo field:xyz
- is_true: matched
- do:
explain:
index: test
type: test
id: 1
q: field:foo field:xyz
default_operator: AND
- is_false: matched
- do:
explain:
index: test
type: test
id: 1
q: field:bars
analyzer: snowball
- is_true: matched
- do:
explain:
index: test
type: test
id: 1
q: field:BA*
lowercase_expanded_terms: false
- is_false: matched
- do:
explain:
index: test
type: test
id: 1
q: field:BA*
analyze_wildcard: true
- is_true: matched
- do:
explain:
index: test
type: test
id: 1
q: number:foo
lenient: true
- is_false: matched