Skip to content

Commit

Permalink
Merge pull request #1480 from stevelacy/slop-4
Browse files Browse the repository at this point in the history
Increase slop to 4 on `address_parts.street` field
  • Loading branch information
orangejulius authored Aug 7, 2020
2 parents 7453a5d + 9eb450e commit befe777
Show file tree
Hide file tree
Showing 13 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion query/search_defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ module.exports = _.merge({}, peliasQuery.defaults, {
'address:street:analyzer': 'peliasQuery',
'address:street:field': 'address_parts.street',
'address:street:boost': 5,
'address:street:slop': 3,
'address:street:slop': 4,
'address:street:cutoff_frequency': 0.01,

'address:postcode:analyzer': 'peliasZip',
Expand Down
2 changes: 1 addition & 1 deletion test/unit/fixture/search_boundary_country.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = {
'address_parts.street': {
'query': 'street value',
'analyzer': 'peliasQuery',
'slop': 3
'slop': 4
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/unit/fixture/search_boundary_country_multi.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = {
'address_parts.street': {
'query': 'street value',
'analyzer': 'peliasQuery',
'slop': 3
'slop': 4
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/unit/fixture/search_boundary_gid.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = {
'address_parts.street': {
'query': 'street value',
'analyzer': 'peliasQuery',
'slop': 3
'slop': 4
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions test/unit/fixture/search_fallback.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ module.exports = {
'address_parts.street': {
'query': 'street value',
'analyzer': 'peliasQuery',
'slop': 3
'slop': 4
}
}
},
Expand Down Expand Up @@ -279,7 +279,7 @@ module.exports = {
'address_parts.street': {
'query': 'street value',
'analyzer': 'peliasQuery',
'slop': 3
'slop': 4
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion test/unit/fixture/search_linguistic_bbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = {
'address_parts.street': {
'query': 'street value',
'analyzer': 'peliasQuery',
'slop': 3
'slop': 4
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/unit/fixture/search_linguistic_focus.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = {
'address_parts.street': {
'query': 'street value',
'analyzer': 'peliasQuery',
'slop': 3
'slop': 4
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/unit/fixture/search_linguistic_focus_bbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = {
'address_parts.street': {
'query': 'street value',
'analyzer': 'peliasQuery',
'slop': 3
'slop': 4
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/unit/fixture/search_linguistic_focus_null_island.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = {
'address_parts.street': {
'query': 'street value',
'analyzer': 'peliasQuery',
'slop': 3
'slop': 4
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/unit/fixture/search_linguistic_only.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = {
'address_parts.street': {
'query': 'street value',
'analyzer': 'peliasQuery',
'slop': 3
'slop': 4
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/unit/fixture/search_with_category_filtering.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = {
'address_parts.street': {
'query': 'street value',
'analyzer': 'peliasQuery',
'slop': 3
'slop': 4
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/unit/fixture/search_with_source_filtering.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = {
'address_parts.street': {
'query': 'street value',
'analyzer': 'peliasQuery',
'slop': 3
'slop': 4
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions test/unit/query/address_search_using_ids.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ module.exports.tests.other_parameters = (test, common) => {

});

test('address_parts.street slop defaults to 3', (t) => {
test('address_parts.street slop defaults to 4', (t) => {
const logger = mock_logger();

const clean = {
Expand All @@ -172,7 +172,7 @@ module.exports.tests.other_parameters = (test, common) => {

const generatedQuery = generateQuery(clean, res);

t.deepEquals(generatedQuery.body.vs.var('address:street:slop').toString(), 3);
t.deepEquals(generatedQuery.body.vs.var('address:street:slop').toString(), 4);
t.end();
});
};
Expand Down

0 comments on commit befe777

Please sign in to comment.