query/category_filter.js
-Define a function that handles injecting category-filtration
logic into elasticsearch queries.
-Abstract it out into a standalone module since it's going to be
used by both `query/search.js` and `query/reverse.js`.
sanitiser/search.js, test/unit/sanitiser/search.js
-Add category filtration to `/search`.
-Fixes (partly) #128
(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.
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`).