aboutsummaryrefslogtreecommitdiffstats
path: root/tests/files/search/GET_highlight_query.txt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/files/search/GET_highlight_query.txt')
-rw-r--r--tests/files/search/GET_highlight_query.txt55
1 files changed, 55 insertions, 0 deletions
diff --git a/tests/files/search/GET_highlight_query.txt b/tests/files/search/GET_highlight_query.txt
new file mode 100644
index 0000000..7c7f0ea
--- /dev/null
+++ b/tests/files/search/GET_highlight_query.txt
@@ -0,0 +1,55 @@
+GET /some-index/_search
+{
+ "query": {
+ "match": {
+ "comment": {
+ "query": "foo bar"
+ }
+ }
+ },
+ "rescore": {
+ "window_size": 50,
+ "query": {
+ "rescore_query": {
+ "match_phrase": {
+ "comment": {
+ "query": "foo bar",
+ "slop": 1
+ }
+ }
+ },
+ "rescore_query_weight": 10
+ }
+ },
+ "_source": false,
+ "highlight": {
+ "order": "score",
+ "fields": {
+ "comment": {
+ "fragment_size": 150,
+ "number_of_fragments": 3,
+ "highlight_query": {
+ "bool": {
+ "must": {
+ "match": {
+ "comment": {
+ "query": "foo bar"
+ }
+ }
+ },
+ "should": {
+ "match_phrase": {
+ "comment": {
+ "query": "foo bar",
+ "slop": 1,
+ "boost": 10.0
+ }
+ }
+ },
+ "minimum_should_match": 0
+ }
+ }
+ }
+ }
+ }
+}