Julian Simioni
7ee62c3582
WIP: cutoff_frequency
6 years ago
Julian Simioni
78cc4a5de3
Add boundary.rect handling to query/autocomplete
8 years ago
Julian Simioni
aa7942cbb9
Set up layer filtering for autocomplete and reverse
...
This was missed by me when working on https://github.com/pelias/api/pull/580 , but caught by the acceptance tests!
Unfortunately it was caught after going to production.
9 years ago
Peter Johnson
d3cd14e304
disable focus for single token queries, use constant_score for ngrams matching
9 years ago
Peter Johnson
52c35cb37d
allow single non-numeric chars, change boost_mode to 'replace' for function_score queries
9 years ago
Peter Johnson
cb67dd58d8
refactor boolean query filtering as per: https://www.elastic.co/guide/en/elasticsearch/reference/current/breaking_20_query_dsl_changes.html#_literal_filtered_literal_query_and_literal_query_literal_filter_deprecated
9 years ago
missinglink
e40c9ef326
increase focus weight from 10->40 and simplify population/popularity subview
9 years ago
Peter Johnson
0abda099a6
bugfixes and more tests
9 years ago
Diana Shkolnikov
ab5004273b
Fix unit tests due to new version of pelias-query
9 years ago
Peter Johnson
a4f6e70d25
upgrade to pelias-query@6.1.0
9 years ago
missinglink
67449dcae0
Tweak weights for focus
9 years ago
missinglink
6711aa45e0
simplify pass 1
9 years ago
missinglink
3b4d566b11
add unit test
9 years ago
Diana Shkolnikov
9fa5fc5a77
calcSize became middleware (exposed and fixed bug in query defaults)
9 years ago
Diana Shkolnikov
54187dde67
Add dedupe middleware
...
Dedupe middleware removes __exact__ dupes and truncates the results
to the specified size.
9 years ago
Peter Johnson
8ceac4cbb0
change modifier function from sqrt() to log1p() and adjust max_boost
9 years ago
Peter Johnson
481a65a4f9
population twice as important as popularity
9 years ago
Peter Johnson
cb679888ff
better population and popularity boosting
9 years ago
Peter Johnson
80f419846d
admin boost for sqrt(popularity), autocomplete focus not restricted to phrase matches
9 years ago
Peter Johnson
fa209c9b50
add autocomplete route, further query clean up
9 years ago
Peter Johnson
f5e182c63b
fix tests, clean by moving fixtures to fixtures dir
9 years ago