mirror of https://github.com/pelias/api.git
Browse Source
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`).pull/113/head
Severyn Kozak
10 years ago
3 changed files with 52 additions and 35 deletions
Loading…
Reference in new issue