Socket
Socket
Sign inDemoInstall

pelias-query

Package Overview
Dependencies
2
Maintainers
5
Versions
76
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 8.12.0 to 8.13.0

25

layout/FallbackQuery.js

@@ -469,2 +469,24 @@ // This query is useful for specifying all the combinations of inputs starting

function addPostCode(vs) {
var o = addPrimary(
vs.var('input:postcode').toString(),
'postalcode',
[
'parent.postalcode'
],
false
);
// same position in hierarchy as borough according to WOF
// https://github.com/whosonfirst/whosonfirst-placetypes#here-is-a-pretty-picture
addSecLocality(vs, o);
addSecCounty(vs, o);
addSecRegion(vs, o);
addSecCountry(vs, o);
return o;
}
Layout.prototype.render = function( vs ){

@@ -481,2 +503,5 @@ var q = Layout.base( vs );

}
if (vs.isset('input:postcode')) {
funcScoreShould.push(addPostCode(vs));
}
if (vs.isset('input:street')) {

@@ -483,0 +508,0 @@ funcScoreShould.push(addStreet(vs));

2

package.json
{
"name": "pelias-query",
"version": "8.12.0",
"version": "8.13.0",
"description": "An Elasticsearch query builder for Pelias",

@@ -5,0 +5,0 @@ "engines": {

@@ -7,6 +7,5 @@ >This repository is part of the [Pelias](https://github.com/pelias/pelias)

# Pelias Query
Elasticsearch geospatial and linguistic matching queries used by Pelias.
[![Build Status](https://travis-ci.org/pelias/query.png?branch=master)](https://travis-ci.org/pelias/query)
## Installation

@@ -523,1 +522,13 @@

```
### Continuous Integration
Travis tests every release against Node.js versions `4` and `6`.
[![Build Status](https://travis-ci.org/pelias/query.png?branch=master)](https://travis-ci.org/pelias/query)
### Versioning
We rely on semantic-release and Greenkeeper to maintain our module and dependency versions.
[![Greenkeeper badge](https://badges.greenkeeper.io/pelias/query.svg)](https://greenkeeper.io/)

@@ -41,2 +41,21 @@ {

"bool": {
"_name": "fallback.postalcode",
"must": [
{
"multi_match": {
"query": "postcode value",
"type": "phrase",
"fields": ["parent.postalcode"]
}
}
],
"filter": {
"term": {
"layer": "postalcode"
}
}
}
},
{
"bool": {
"_name": "fallback.street",

@@ -43,0 +62,0 @@ "boost": { "$": 17 },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc