Severyn Kozak
daa767568d
Add tests for the query weights config.
...
test/unit/config/queryAdminWeights.js
-Add a test for the file introduced in b6f0c1c
.
-Verify that its configuration values are valid.
10 years ago
Severyn Kozak
b6f0c1c797
Move query admin weights to own config file.
...
(config/queryAdminWeights, query/search).js
-Move the admin-level weights defined in `query/search` into a
config file, addressing
332597c653 (commitcomment-10892650)
.
10 years ago
Severyn Kozak
332597c653
Fine-tune the admin boosting query.
...
query/search.js
-Follow up on @hkrishna's work and fine-tune the admin-boosting
query by:
* not searching for `neighborhood` matches
* assigning boost values to each `should` clause, with
higher values for higher admin levels.
-These changes fix the `West New York` in `New Jersey`
regression pointed out in https://github.com/pelias/api/issues/91
10 years ago
Harish Krishna
ef1a4c8aa6
adding all admin layers to the search query (including neirhborhood, locality and local_admin)
10 years ago
Harish Krishna
9502ab8854
fixing failing tests
10 years ago
Harish Krishna
38e1c58c94
Merge pull request #96 from pelias/bbox-optimize
...
Bbox optimize
10 years ago
Harish Krishna
94b044d179
using elasticsearch-backend 0.0.12
10 years ago
Harish Krishna
46f487d819
Merge pull request #98 from pelias/add-layers
...
adding 'locality', 'local_admin' to the list of layers
10 years ago
Harish Krishna
3968034f80
Merge pull request #90 from pelias/suggester-fix
...
Allow consumers to filter suggestions by layer on '/suggest'
10 years ago
Harish Krishna
b4bd69abd2
Merge pull request #92 from pelias/suggest-requires-geo
...
Suggest requires geo
10 years ago
Harish Krishna
baec480e48
Merge pull request #89 from pelias/null-island-bug
...
Null island bug Fix
10 years ago
Harish Krishna
5094ecb25e
adding 'locality', 'local_admin' to the list of layers (part of admin alias) plus tests
10 years ago
Harish Krishna
f13f1cdf2c
tests
10 years ago
Harish Krishna
b51db53213
using an optimized bbox query
10 years ago
Harish Krishna
5b34767e8e
tests for sanitizer/search (tests optional geo basically in addition to the usual stuff - suggest/search sanitizer tests should eventually be merged)
10 years ago
Harish Krishna
217a5c1049
seperating suggest and search sanitizers because suggest requires geoBias (lat/lon) until ES 2.0.0 lands.
10 years ago
Harish Krishna
e586b49d1d
tests - that check if the layers are being set correctly for suggesters and using query mixers right
10 years ago
Harish Krishna
898896bc24
giving request layers higher precedence (compared to the layers specified in queryMixer)
10 years ago
Harish Krishna
ec2507f155
tests: reverse sanitizers (latlon is required, size defaults to 1, supports layers)
10 years ago
Harish Krishna
7a8422025a
latlon is a required field for reverse (updated _geo sanitizer) and added ability to filter by layers on /reverse
10 years ago
Harish Krishna
7265651b4c
Merge pull request #81 from pelias/script-readme
...
adding script dependency to README
10 years ago
Harish Krishna
73bf83275e
Merge pull request #71 from pelias/add-popularity
...
adding popularity to sort scoring function list
10 years ago
Harish Krishna
b8ede3680e
adding script dependency
10 years ago
Harish Krishna
28e3d3943e
consistent naming convention
10 years ago
Harish Krishna
5e9d0a432e
Merge branch 'master' into add-popularity
...
Conflicts:
test/unit/query/reverse.js
test/unit/query/search.js
10 years ago
Peter Johnson a.k.a. insertcoffee
0571e4faa1
Merge pull request #76 from pelias/type_property_deprecation
...
deprecate 'type' property, see PR notes
10 years ago
Peter Johnson
ff757decb4
deprecate 'type' property, see PR notes
10 years ago
Harish Krishna
f74b2c50e9
Merge pull request #68 from pelias/split-comma-admin
...
Analyzing the query to find admin values
10 years ago
Harish Krishna
30faa64763
Merge pull request #73 from pelias/admin_boost
...
boosting admin0 values
10 years ago
Harish Krishna
2d861aea7f
boosting admin0 values
10 years ago
Peter Johnson a.k.a. insertcoffee
3d8f6b3f9a
Merge pull request #72 from pelias/remove_toobusy
...
remove toobusy module
10 years ago
Peter Johnson
8aed2a0c6f
remove toobusy module
10 years ago
Harish Krishna
79f33dee96
adding popularity to sort scoring function list
10 years ago
Harish Krishna
40b638d85c
Merge branch 'master' into split-comma-admin
10 years ago
Harish Krishna
218218c7b4
Merge pull request #67 from pelias/score-function
...
Score function
10 years ago
Harish Krishna
743c825b41
just using weights from pelias-suggester-pipeline (reducing dependency issues with another repo)
10 years ago
Harish Krishna
6c802dfa1d
testing sort part of the query
10 years ago
Harish Krishna
5f30559680
testing inputs with comma
10 years ago
Harish Krishna
d2d76be8fa
changing a commented line to reflect reality
10 years ago
Harish Krishna
a003b7b9bf
strip out leading and trailing whitespace if any
10 years ago
Harish Krishna
4e9b5502a2
using population var
10 years ago
Harish Krishna
a427c058f7
adding admin1_abbr and admin2 to the admin_fields array
10 years ago
Harish Krishna
9013b4484e
fixing tests
10 years ago
Harish Krishna
2127ebe258
switching to bool with a 'must' match (AND) and a few 'should's (OR)
10 years ago
Harish Krishna
84a9b3e20e
splitting on comma (trying to find/assume admin values)
10 years ago
Harish Krishna
39b9564d62
updating package.json
10 years ago
Harish Krishna
aa721b8749
moving groovy scripts to a file on disk @ elasticsearch/config/scripts to avoid dynamic script loading look at http://www.elasticsearch.org/blog/running-groovy-scripts-without-dynamic-scripting/ and https://github.com/pelias/scripts
10 years ago
Harish Krishna
ff9e9973fc
switching searchType from the default 'query_then_fetch' to 'dfs_query_then_fetch' because we have multiple shards in prod http://www.elasticsearch.org/blog/understanding-query-then-fetch-vs-dfs-query-then-fetch/
10 years ago
Harish Krishna
b4f4daafcf
using suggester-pipeline instead of pelias-model
10 years ago
Harish Krishna
1a740f16df
sorting function based on population and weights plus tests
10 years ago