Diana Shkolnikov
743d8efa54
Remove proxyquire from adminField test
...
Add comments and refactor a bit more for clarity in query/search.js
10 years ago
Diana Shkolnikov
ab436d5dfb
Search query builder not checking all available admin values
...
Fixes #187
10 years ago
Peter Johnson
d8e86d5f17
phrase slop query modifications
10 years ago
Harish Krishna
b3d958fe5a
Revert "match the whole query with phrase.default"
...
This reverts commit 1c763eeb75
.
10 years ago
Harish Krishna
1c763eeb75
match the whole query with phrase.default
10 years ago
Harish Krishna
8afc5ff004
Revert "splitting admin_parts and input_regions check"
...
This reverts commit 4a45e458ab
.
10 years ago
Harish Krishna
4a45e458ab
splitting admin_parts and input_regions check
10 years ago
Harish Krishna
95c0e7461d
TESTS!
10 years ago
Harish Krishna
708c24195d
adding admin_boost
10 years ago
Harish Krishna
2f49322fb7
removing the console.log
10 years ago
Harish Krishna
495c3251a4
moving all query parsing logic into its own helper. Tests to come
10 years ago
Harish Krishna
f78f49d857
moving sort logic.. popularity then population first!
10 years ago
Harish Krishna
13e9aadeaf
removing an outrageous if condition
10 years ago
Harish Krishna
e5f783567f
remove all things that involved suggester including query mixer
...
keeping the suggest sanitizer for suggest/nearby wherein lat/lon are required
10 years ago
Harish Krishna
a2a0a50b85
fix the number of admin_parts
10 years ago
Harish Krishna
c957cbaf4f
bringing back admin2
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
Harish Krishna
e149fed273
check yoself before you wreck yoself
10 years ago
Peter Johnson
ce611fd933
increase search radius to 500km
10 years ago
Peter Johnson
e95c2efb54
resolves #139
10 years ago
Peter Johnson
0cf282767a
remove exact_match script
10 years ago
Harish Krishna
81555745e4
reverting the revert
10 years ago
Harish Krishna
169612bee7
reverting phrase.default
10 years ago
Harish Krishna
f5e18e9e17
just input
10 years ago
Harish Krishna
ffcef3417a
4 admin fields
10 years ago
Harish Krishna
050c11ec0b
just using a forked version of addressIt that focuses on US addresses (for now), modifying search queries and ignoring tests for now
10 years ago
Diana Shkolnikov
061f151bc8
Revert "Use multi_match in name.* for /search"
...
This reverts commit 3697627fb7
.
10 years ago
Peter Johnson
4770f0660f
multi_match -> match
10 years ago
Peter Johnson
60a02315ae
enable shingle matching
10 years ago
Peter Johnson
d80008d098
pedantry: fix indentation and code comment
10 years ago
Harish Krishna
0b5b1dce85
address parser initial pass - breaks 68 tests! (ignoring tests for now)
10 years ago
Diana Shkolnikov
3697627fb7
Use multi_match in name.* for /search
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
a007af3572
Replace src/logger with pelias-logger.
...
(query, query)/*.js
-Remove unused `../src/logger` `require()`s.
src/logger.js, package.json
-Remove `src/logger` in favor of using `pelias-logger` for all
logging, since it's the Pelias standard.
middleware/500.js
-Replace usage of `src/logger` with pelias-logger.
10 years ago
Diana Shkolnikov
7b5a2fafb9
Change query to use `terms` and add code coverage stats
10 years ago
Diana Shkolnikov
45ba29cc54
Add categories param to /reverse
10 years ago
Severyn Kozak
f477db140a
Pass params to sort(), addressing https://github.com/pelias/api/pull/113#discussion_r28972496 .
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
5094ecb25e
adding 'locality', 'local_admin' to the list of layers (part of admin alias) plus tests
10 years ago
Harish Krishna
898896bc24
giving request layers higher precedence (compared to the layers specified in queryMixer)
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
a427c058f7
adding admin1_abbr and admin2 to the admin_fields array
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
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