Adjust matchScores so features match types other than barrier

(closes #3647)

e.g. `office=* + barrier=wall` should match as an office not a wall
This commit is contained in:
Bryan Housel
2016-12-12 22:33:53 -05:00
parent 0f05df86e3
commit 4fa754e717
7 changed files with 22 additions and 12 deletions

View File

@@ -2684,7 +2684,8 @@
"fields": [
"barrier"
],
"name": "Barrier"
"name": "Barrier",
"matchScore": 0.4
},
"barrier/entrance": {
"icon": "entrance",
@@ -2772,7 +2773,8 @@
"tags": {
"barrier": "ditch"
},
"name": "Trench"
"name": "Trench",
"matchScore": 0.25
},
"barrier/fence": {
"icon": "prison",
@@ -2786,7 +2788,8 @@
"tags": {
"barrier": "fence"
},
"name": "Fence"
"name": "Fence",
"matchScore": 0.25
},
"barrier/gate": {
"icon": "prison",
@@ -2814,7 +2817,8 @@
"tags": {
"barrier": "hedge"
},
"name": "Hedge"
"name": "Hedge",
"matchScore": 0.25
},
"barrier/kissing_gate": {
"icon": "prison",
@@ -2893,7 +2897,8 @@
"tags": {
"barrier": "wall"
},
"name": "Wall"
"name": "Wall",
"matchScore": 0.25
},
"boundary/administrative": {
"name": "Administrative Boundary",
@@ -2921,7 +2926,7 @@
"tags": {
"building": "*"
},
"matchScore": 0.4,
"matchScore": 0.6,
"terms": [],
"name": "Building"
},

View File

@@ -12,5 +12,6 @@
"fields": [
"barrier"
],
"name": "Barrier"
"name": "Barrier",
"matchScore": 0.4
}

View File

@@ -7,5 +7,6 @@
"tags": {
"barrier": "ditch"
},
"name": "Trench"
"name": "Trench",
"matchScore": 0.25
}

View File

@@ -10,5 +10,6 @@
"tags": {
"barrier": "fence"
},
"name": "Fence"
"name": "Fence",
"matchScore": 0.25
}

View File

@@ -9,5 +9,6 @@
"tags": {
"barrier": "hedge"
},
"name": "Hedge"
"name": "Hedge",
"matchScore": 0.25
}

View File

@@ -11,5 +11,6 @@
"tags": {
"barrier": "wall"
},
"name": "Wall"
"name": "Wall",
"matchScore": 0.25
}

View File

@@ -12,7 +12,7 @@
"tags": {
"building": "*"
},
"matchScore": 0.4,
"matchScore": 0.6,
"terms": [],
"name": "Building"
}