|
|
@ -7,6 +7,7 @@ module.exports = { |
|
|
|
'match': { |
|
|
|
'match': { |
|
|
|
'name.default': { |
|
|
|
'name.default': { |
|
|
|
'query': '123 main st', |
|
|
|
'query': '123 main st', |
|
|
|
|
|
|
|
'cutoff_frequency': 0.01, |
|
|
|
'analyzer': 'peliasQueryFullToken', |
|
|
|
'analyzer': 'peliasQueryFullToken', |
|
|
|
'boost': 1 |
|
|
|
'boost': 1 |
|
|
|
} |
|
|
|
} |
|
|
@ -16,6 +17,7 @@ module.exports = { |
|
|
|
'match': { |
|
|
|
'match': { |
|
|
|
'phrase.default': { |
|
|
|
'phrase.default': { |
|
|
|
'query': '123 main st', |
|
|
|
'query': '123 main st', |
|
|
|
|
|
|
|
'cutoff_frequency': 0.01, |
|
|
|
'analyzer': 'peliasPhrase', |
|
|
|
'analyzer': 'peliasPhrase', |
|
|
|
'type': 'phrase', |
|
|
|
'type': 'phrase', |
|
|
|
'slop': 2, |
|
|
|
'slop': 2, |
|
|
@ -29,6 +31,7 @@ module.exports = { |
|
|
|
'match': { |
|
|
|
'match': { |
|
|
|
'phrase.default': { |
|
|
|
'phrase.default': { |
|
|
|
'query': '123 main st', |
|
|
|
'query': '123 main st', |
|
|
|
|
|
|
|
'cutoff_frequency': 0.01, |
|
|
|
'analyzer': 'peliasPhrase', |
|
|
|
'analyzer': 'peliasPhrase', |
|
|
|
'type': 'phrase', |
|
|
|
'type': 'phrase', |
|
|
|
'slop': 2, |
|
|
|
'slop': 2, |
|
|
@ -54,6 +57,7 @@ module.exports = { |
|
|
|
'match': { |
|
|
|
'match': { |
|
|
|
'phrase.default': { |
|
|
|
'phrase.default': { |
|
|
|
'query': '123 main st', |
|
|
|
'query': '123 main st', |
|
|
|
|
|
|
|
'cutoff_frequency': 0.01, |
|
|
|
'analyzer': 'peliasPhrase', |
|
|
|
'analyzer': 'peliasPhrase', |
|
|
|
'type': 'phrase', |
|
|
|
'type': 'phrase', |
|
|
|
'slop': 2, |
|
|
|
'slop': 2, |
|
|
@ -77,6 +81,7 @@ module.exports = { |
|
|
|
'match': { |
|
|
|
'match': { |
|
|
|
'address_parts.number': { |
|
|
|
'address_parts.number': { |
|
|
|
'query': '123', |
|
|
|
'query': '123', |
|
|
|
|
|
|
|
'cutoff_frequency': 0.01, |
|
|
|
'boost': vs['address:housenumber:boost'], |
|
|
|
'boost': vs['address:housenumber:boost'], |
|
|
|
'analyzer': vs['address:housenumber:analyzer'] |
|
|
|
'analyzer': vs['address:housenumber:analyzer'] |
|
|
|
} |
|
|
|
} |
|
|
@ -85,6 +90,7 @@ module.exports = { |
|
|
|
'match': { |
|
|
|
'match': { |
|
|
|
'address_parts.street': { |
|
|
|
'address_parts.street': { |
|
|
|
'query': 'main st', |
|
|
|
'query': 'main st', |
|
|
|
|
|
|
|
'cutoff_frequency': 0.01, |
|
|
|
'boost': vs['address:street:boost'], |
|
|
|
'boost': vs['address:street:boost'], |
|
|
|
'analyzer': vs['address:street:analyzer'] |
|
|
|
'analyzer': vs['address:street:analyzer'] |
|
|
|
} |
|
|
|
} |
|
|
@ -93,6 +99,7 @@ module.exports = { |
|
|
|
'match': { |
|
|
|
'match': { |
|
|
|
'address_parts.zip': { |
|
|
|
'address_parts.zip': { |
|
|
|
'query': '10010', |
|
|
|
'query': '10010', |
|
|
|
|
|
|
|
'cutoff_frequency': 0.01, |
|
|
|
'boost': vs['address:postcode:boost'], |
|
|
|
'boost': vs['address:postcode:boost'], |
|
|
|
'analyzer': vs['address:postcode:analyzer'] |
|
|
|
'analyzer': vs['address:postcode:analyzer'] |
|
|
|
} |
|
|
|
} |
|
|
@ -101,6 +108,7 @@ module.exports = { |
|
|
|
'match': { |
|
|
|
'match': { |
|
|
|
'parent.country_a': { |
|
|
|
'parent.country_a': { |
|
|
|
'query': 'USA', |
|
|
|
'query': 'USA', |
|
|
|
|
|
|
|
'cutoff_frequency': 0.01, |
|
|
|
'boost': vs['admin:country_a:boost'], |
|
|
|
'boost': vs['admin:country_a:boost'], |
|
|
|
'analyzer': vs['admin:country_a:analyzer'] |
|
|
|
'analyzer': vs['admin:country_a:analyzer'] |
|
|
|
} |
|
|
|
} |
|
|
@ -109,6 +117,7 @@ module.exports = { |
|
|
|
'match': { |
|
|
|
'match': { |
|
|
|
'parent.region_a': { |
|
|
|
'parent.region_a': { |
|
|
|
'query': 'NY', |
|
|
|
'query': 'NY', |
|
|
|
|
|
|
|
'cutoff_frequency': 0.01, |
|
|
|
'boost': vs['admin:region_a:boost'], |
|
|
|
'boost': vs['admin:region_a:boost'], |
|
|
|
'analyzer': vs['admin:region_a:analyzer'] |
|
|
|
'analyzer': vs['admin:region_a:analyzer'] |
|
|
|
} |
|
|
|
} |
|
|
|