From 33f082ab29c08ffa8c4ff458059234066dd2555a Mon Sep 17 00:00:00 2001 From: missinglink Date: Thu, 8 Nov 2018 12:47:49 +0100 Subject: [PATCH] feat(autocomplete_boost_exact_matches): update tests after rebasing master --- .../fixture/autocomplete_linguistic_one_char_token.js | 10 ++++++++++ .../autocomplete_linguistic_three_char_token.js | 10 ++++++++++ .../fixture/autocomplete_linguistic_two_char_token.js | 10 ++++++++++ 3 files changed, 30 insertions(+) diff --git a/test/unit/fixture/autocomplete_linguistic_one_char_token.js b/test/unit/fixture/autocomplete_linguistic_one_char_token.js index 4c9e22e98..e0f67f3b8 100644 --- a/test/unit/fixture/autocomplete_linguistic_one_char_token.js +++ b/test/unit/fixture/autocomplete_linguistic_one_char_token.js @@ -18,6 +18,16 @@ module.exports = { } }], 'should':[{ + 'match': { + 'phrase.default': { + 'analyzer': 'peliasPhrase', + 'boost': 1, + 'query': 't', + 'slop': 3, + 'type': 'phrase' + } + } + },{ 'function_score': { 'query': { 'match_all': {} diff --git a/test/unit/fixture/autocomplete_linguistic_three_char_token.js b/test/unit/fixture/autocomplete_linguistic_three_char_token.js index 2a77d2b72..9ee593052 100644 --- a/test/unit/fixture/autocomplete_linguistic_three_char_token.js +++ b/test/unit/fixture/autocomplete_linguistic_three_char_token.js @@ -18,6 +18,16 @@ module.exports = { } }], 'should':[{ + 'match': { + 'phrase.default': { + 'analyzer': 'peliasPhrase', + 'boost': 1, + 'query': 'tes', + 'slop': 3, + 'type': 'phrase' + } + } + },{ 'function_score': { 'query': { 'match_all': {} diff --git a/test/unit/fixture/autocomplete_linguistic_two_char_token.js b/test/unit/fixture/autocomplete_linguistic_two_char_token.js index c47ebd6d5..62e27d2f9 100644 --- a/test/unit/fixture/autocomplete_linguistic_two_char_token.js +++ b/test/unit/fixture/autocomplete_linguistic_two_char_token.js @@ -18,6 +18,16 @@ module.exports = { } }], 'should':[{ + 'match': { + 'phrase.default': { + 'analyzer': 'peliasPhrase', + 'boost': 1, + 'query': 'te', + 'slop': 3, + 'type': 'phrase' + } + } + },{ 'function_score': { 'query': { 'match_all': {}