Ensure consistent hit order in fvh REST tests.

This commit is contained in:
Julie Tibshirani 2020-12-09 17:49:29 -08:00
parent b2d3c3f6f9
commit d707f26eb9

View File

@ -22,24 +22,21 @@ setup:
- do: - do:
index: index:
index: test index: test
refresh: true
body: body:
id: 1
"title" : "The quick brown fox is brown" "title" : "The quick brown fox is brown"
"description" : "The quick pink panther is pink" "description" : "The quick pink panther is pink"
- do: - do:
index: index:
index: test index: test
refresh: true
body: body:
id: 2
"title" : "The quick blue fox is blue" "title" : "The quick blue fox is blue"
"nested": "nested":
- "title": "purple octopus" - "title": "purple octopus"
- "title": "purple fish" - "title": "purple fish"
- do:
indices.refresh: {}
--- ---
"Highlight query": "Highlight query":
- do: - do:
@ -75,7 +72,6 @@ setup:
query: query:
match: match:
title: fox title: fox
sort: ["id"]
highlight: highlight:
type: fvh type: fvh
fields: fields: