Skip to content

Commit

Permalink
feat(admin_subqueries): test cross_fields query
Browse files Browse the repository at this point in the history
  • Loading branch information
missinglink committed May 15, 2019
1 parent 783089e commit cfe5851
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"pelias-microservice-wrapper": "^1.7.0",
"pelias-model": "^5.8.0",
"pelias-parser": "^1.13.0",
"pelias-query": "^9.10.0",
"pelias-query": "^9.11.0",
"pelias-sorting": "^1.2.0",
"predicates": "^2.0.0",
"retry": "^0.12.0",
Expand Down
3 changes: 2 additions & 1 deletion query/autocomplete_defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ module.exports = _.merge({}, peliasQuery.defaults, {
'address:postcode:boost': 2000,
'address:postcode:cutoff_frequency': 0.01,

// generic multi_match cutoff_frequency
// generic multi_match config
'multi_match:type': 'cross_fields',
'multi_match:cutoff_frequency': 0.01,

'admin:country_a:analyzer': 'standard',
Expand Down
4 changes: 3 additions & 1 deletion test/unit/fixture/autocomplete_linguistic_with_admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ module.exports = {
'parent.region_a.ngram^600'
],
'query': 'three',
'analyzer': 'peliasAdmin'
'analyzer': 'peliasAdmin',
'type': 'cross_fields',
'cutoff_frequency': 0.01
}
},
{
Expand Down
4 changes: 3 additions & 1 deletion test/unit/fixture/autocomplete_single_character_street.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ module.exports = {
'parent.region_a.ngram^600'
],
'query': 'laird',
'analyzer': 'peliasAdmin'
'analyzer': 'peliasAdmin',
'type': 'cross_fields',
'cutoff_frequency': 0.01
}
},
{
Expand Down

0 comments on commit cfe5851

Please sign in to comment.