mirror of https://github.com/pelias/api.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Branch:
coverage-test
__BETA__
add-params-to-parser-logs
add-status-code-logging
address_search_using_ids
autocomplete_boost_exact_matches
category
cb_sorting
configurable-boosts
county-fallback
coverage-test
cutoff_frequency
dedupe
dedupe-failing-test-case
dedupe_improved_parent_matching
default-500-err
dep-check
disable-dfs_query_then_fetch
es6-include
exact_matches_muted
experiments
faster
fix-test
focus-point-hard-distance-filter
force-libpostal-param
fuzzy
greenkeeper/addressit-1.6.0
improved-reverse
improved_bias
integration
inter_layer_deduping
libpostal_aus_unit_numbers
log-long-queries
master
max_character_count_layer_filter
modify-label-generation-for-wof
msv2
nodejs10
one-query-test
output-generator-tweak
output-generator-tweaks
phrase_slop_disable_tf_idf
placeholder-lang-param-with-timing
popularity_boost_locality
precision
production
production_patch_logging
query-for-venues-on-admin-only
remove_ngrams_from_search
reset-focus-point-settings
riordan/openaddresses-attribution
search-all-admins
search-suggest-categories
silence-error-logs-in-tests
size-bug
skip-language-service-when-defaulted
split-comma-admin-boost
staging
temp_ngrams_strip_housenumbers
test-focus-point-weight
test_focus
tmp_adjust_autocomplete_focus
travis-exp
trim_by_granularity
using-pelias-ngram
wip-improve-reverse
wof_focus_weighting
wrap-longitude#56
1.0.0
1.1.0
1.1.1
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
1.1.7
1.2.0
1.2.1
2.0.0
2.1.0
2.1.1
2.2.0
2.2.1
v3.0.0
v3.0.1
v3.0.2
v3.1.0
v3.1.1
v3.1.2
v3.10.0
v3.10.1
v3.11.0
v3.12.0
v3.13.0
v3.13.1
v3.14.0
v3.14.1
v3.14.2
v3.15.0
v3.16.0
v3.16.1
v3.17.0
v3.17.1
v3.17.2
v3.17.3
v3.17.4
v3.17.5
v3.17.6
v3.17.7
v3.17.8
v3.18.0
v3.18.1
v3.18.2
v3.18.3
v3.19.0
v3.2.0
v3.20.0
v3.20.1
v3.20.2
v3.20.3
v3.20.4
v3.20.5
v3.20.6
v3.20.7
v3.21.0
v3.21.1
v3.21.2
v3.22.0
v3.23.0
v3.24.0
v3.25.0
v3.26.0
v3.26.1
v3.26.2
v3.26.3
v3.26.4
v3.26.5
v3.26.6
v3.26.7
v3.26.8
v3.27.0
v3.27.1
v3.27.10
v3.27.11
v3.27.12
v3.27.13
v3.27.14
v3.27.15
v3.27.16
v3.27.17
v3.27.18
v3.27.19
v3.27.2
v3.27.20
v3.27.21
v3.27.22
v3.27.23
v3.27.3
v3.27.4
v3.27.5
v3.27.6
v3.27.7
v3.27.8
v3.27.9
v3.28.0
v3.29.0
v3.3.0
v3.30.0
v3.31.0
v3.32.0
v3.32.1
v3.32.10
v3.32.11
v3.32.12
v3.32.13
v3.32.14
v3.32.15
v3.32.2
v3.32.3
v3.32.4
v3.32.5
v3.32.6
v3.32.7
v3.32.8
v3.32.9
v3.33.0
v3.34.0
v3.35.0
v3.36.0
v3.37.0
v3.4.0
v3.4.1
v3.5.0
v3.5.1
v3.5.2
v3.6.0
v3.7.0
v3.8.0
v3.8.1
v3.9.0
${ noResults }
api/controller
Julian Simioni
0e8f4253c0
It turns out the _type parameter to the Elasticsearch [multiget](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-multi-get.html) API does not allow an array of possible values. We were depending on its ability to search multiple types to allow searching for OSM nodes and ways. But, since this doesn't work we essentially have to do it ourselves. There is also the problem that OSM nodes and ways share an ID space. So a gid such as `osm:venue:5` could in theory correspond to 2 records. It seems like the only nice thing to do in that case is return both results. This PR "unrolls" such queries. For example, in the case of `osm:venue:5`, the sanitisers will return the following array of objects to be turned into multiget queries: ``` [{ id: 5, types: ["osmway", "osmnode"] }] ``` Before, this would turn into a multiget query with only one entry, like this: ``` { "docs": [ { "_index": "pelias", "_type": [ " osmnode", "osmway" ], "_id": 5 } ] } ``` now it would look like this: { "docs": [ { "_index": "pelias", "_type": "osmnode", "_id": 5 }, { "_index": "pelias", "_type": "osmnode", "_id": 5 } ] } TLDR you might get back more records from /place than the number of ids you specified, but at least you will definitely get back what you are looking for. |
9 years ago | |
---|---|---|
.. | ||
markdownToHtml.js | Add content for `attribution` static endpoint | 9 years ago |
place.js | Return multiple results in place when osm node and way share an id | 9 years ago |
search.js | http friendly status codes. resolves #321 | 9 years ago |
status.js | Add /status controller | 9 years ago |