Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions rest-api-spec/test/percolate/highlight_percolator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
"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}

Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ public AnalysisService analysisService() {

@Override
public IndexQueryParserService queryParserService() {
throw new UnsupportedOperationException();
return indexService.queryParserService();
}

@Override
Expand Down