Skip to content

Commit

Permalink
feat(autocomplete_boost_exact_matches): update tests after rebasing m…
Browse files Browse the repository at this point in the history
…aster
  • Loading branch information
missinglink committed Nov 8, 2018
1 parent 8acbbaf commit 33f082a
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/unit/fixture/autocomplete_linguistic_one_char_token.js
Original file line number Diff line number Diff line change
Expand Up @@ -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': {}
Expand Down
10 changes: 10 additions & 0 deletions test/unit/fixture/autocomplete_linguistic_three_char_token.js
Original file line number Diff line number Diff line change
Expand Up @@ -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': {}
Expand Down
10 changes: 10 additions & 0 deletions test/unit/fixture/autocomplete_linguistic_two_char_token.js
Original file line number Diff line number Diff line change
Expand Up @@ -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': {}
Expand Down

0 comments on commit 33f082a

Please sign in to comment.