Diana Shkolnikov
ab436d5dfb
Search query builder not checking all available admin values
...
Fixes #187
10 years ago
Harish Krishna
708c24195d
adding admin_boost
10 years ago
Harish Krishna
f78f49d857
moving sort logic.. popularity then population first!
10 years ago
Harish Krishna
5025b66a91
adding admin_weights instead of just boosting admin0
10 years ago
Harish Krishna
049a96efd6
flipping the popularity population order
10 years ago
Peter Johnson
0cf282767a
remove exact_match script
10 years ago
Severyn Kozak
1f25303523
Quote properties.
...
(query/sort, test/unit/query/search).js
-Address @dianashk's comment:
https://github.com/pelias/api/pull/113/files#r29764750
10 years ago
Severyn Kozak
f9670bf7e4
Use is-object, addressing https://github.com/pelias/api/pull/113/files#r28972145 .
10 years ago
Severyn Kozak
144b72cb16
Boost results with exact text matches when _score ties.
...
query/sort.js
-Use the elasticsearch script introduced in
https://github.com/pelias/scripts/pull/7 to boost results with
exact text matches when documents' `_score`s are tied.
-Make `query/sort` export a function that creates the `sort`
query component, rather than the query component as a singleton,
to allow it to optionally add the exact-match script (that is,
when an `input` is present in `params`).
10 years ago
Harish Krishna
aae256c93f
category scoring - weights are all hardcoded to 10 currently - requires to be tweaked
10 years ago
Harish Krishna
2d861aea7f
boosting admin0 values
10 years ago
Harish Krishna
79f33dee96
adding popularity to sort scoring function list
10 years ago
Harish Krishna
4e9b5502a2
using population var
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
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