Skip to content

Commit

Permalink
Use phrase field
Browse files Browse the repository at this point in the history
  • Loading branch information
orangejulius committed Mar 20, 2020
1 parent 76a31d9 commit 04dc3f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion query/autocomplete_defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = _.merge({}, peliasQuery.defaults, {
'ngram:cutoff_frequency': 0.01,

'phrase:analyzer': 'peliasQuery',
'phrase:field': 'phrase.default',
'phrase:field': 'name.default.phrase',
'phrase:boost': 1,
'phrase:slop': 3,
'phrase:cutoff_frequency': 0.01,
Expand Down
2 changes: 1 addition & 1 deletion query/search_defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = _.merge({}, peliasQuery.defaults, {
'ngram:minimum_should_match': '1<-1 3<-25%',

'match_phrase:main:analyzer': 'peliasPhrase',
'match_phrase:main:field': 'phrase.default',
'match_phrase:main:field': 'name.default.phrase',
'match_phrase:main:boost': 1,
'match_phrase:main:slop': 2,

Expand Down

0 comments on commit 04dc3f5

Please sign in to comment.