OpenSearch/rest-api-spec/test/percolate/18_highligh_with_query.yaml

37 lines
657 B
YAML
Raw Normal View History

---
"Basic percolation highlight query test":
- do:
indices.create:
index: test_index
- do:
index:
index: test_index
type: .percolator
id: test_percolator
body:
query:
match:
foo: bar
- do:
indices.refresh: {}
- do:
percolate:
index: test_index
type: test_type
body:
doc:
foo: "bar foo"
size: 1
highlight:
fields:
foo:
highlight_query:
match:
foo: foo
- match: {'total': 1}