From d707f26eb9f7c1d649e04c84279e305038db133a Mon Sep 17 00:00:00 2001 From: Julie Tibshirani Date: Wed, 9 Dec 2020 17:49:29 -0800 Subject: [PATCH] Ensure consistent hit order in fvh REST tests. --- .../rest-api-spec/test/search.highlight/20_fvh.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/rest-api-spec/src/main/resources/rest-api-spec/test/search.highlight/20_fvh.yml b/rest-api-spec/src/main/resources/rest-api-spec/test/search.highlight/20_fvh.yml index e9f5c195092..0d64620c609 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/test/search.highlight/20_fvh.yml +++ b/rest-api-spec/src/main/resources/rest-api-spec/test/search.highlight/20_fvh.yml @@ -22,24 +22,21 @@ setup: - do: index: index: test + refresh: true body: - id: 1 "title" : "The quick brown fox is brown" "description" : "The quick pink panther is pink" - do: index: index: test + refresh: true body: - id: 2 "title" : "The quick blue fox is blue" "nested": - "title": "purple octopus" - "title": "purple fish" - - do: - indices.refresh: {} - --- "Highlight query": - do: @@ -75,7 +72,6 @@ setup: query: match: title: fox - sort: ["id"] highlight: type: fvh fields: