Harish Krishna
c957cbaf4f
bringing back admin2
9 years ago
Harish Krishna
e149fed273
check yoself before you wreck yoself
9 years ago
Harish Krishna
81555745e4
reverting the revert
9 years ago
Harish Krishna
169612bee7
reverting phrase.default
9 years ago
Harish Krishna
f5e18e9e17
just input
9 years ago
Harish Krishna
ffcef3417a
4 admin fields
9 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
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
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
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
1a740f16df
sorting function based on population and weights plus tests
10 years ago
Harish Krishna
91abc11f29
adding a line break for readability
10 years ago
Harish Krishna
a4bd350f2e
using elasticsearch-backend#centroid-optional queries for search
10 years ago
Harish Krishna
650e88d79f
making geo bias optional - first pass with all tests passing
10 years ago
Harish Krishna
ebf162f29e
search with optional bbox - initial commit +tests
10 years ago
Peter Johnson
8b97976022
refactor search query
10 years ago
Harish Krishna
57f969117e
fixing the bbox issue. constructing a 20km bbox and not some insanely big bounding box.
10 years ago
Peter Johnson
d637c5630b
formatting
10 years ago
Harish Krishna
15c63e405c
adding a naive reverse api endpoint (also, shares most of the search controller). updated search query to include a filter and a sort (calculating a bounding box, given a lat/lon)
10 years ago
Harish Krishna
5580485fd9
making full text search location aware
10 years ago
Harish Krishna
554bbc62d3
adding search api endpoint and test (lat/lon in the query pending)
10 years ago