Peter Johnson
5964e57faa
change ngram analyzer used in /search to peliasQueryFullToken from peliasIndexOneEdgeGram. this will have a positive effect on performance due to less tokens being produced
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
missinglink
cb35f37312
focus minimum set to 0km instead of 1km
9 years ago
Julian Simioni
c9d87f7b0c
Add a separate default distance for coarse reverse
9 years ago
Julian Simioni
4acbc2a001
Change default reverse radius to 1km
...
Its a little more work to support different unit types, 1km is still
fine.
9 years ago
Julian Simioni
d7eacaf59e
Fix mistaken order of parameters
...
peliasAdmin was supposed to be a parameter to the multi match view, but
instead it was being sent to the score view and ignored.
Thanks to @trescube for catching this.
9 years ago
Peter Johnson
dd5215cbae
upgrade to ES2+
9 years ago
Julian Simioni
373a08e79b
Set all admin boosts to 1
...
They seem to interfere with the new multi_match query. More tweaking in
the future is definitely warranted.
9 years ago
Julian Simioni
ab19a12e1c
Use multi_match query for admin fields
9 years ago
missinglink
979aab1ac3
ensure that problematic single grams are removed from the query
9 years ago
missinglink
ee73774c89
add tokenizer, refactor how we determine if a token is 'complete' or 'incomplete'
9 years ago
missinglink
e093a09a8d
remove search related improvements from this PR
9 years ago
missinglink
0c67347c27
enable borough for search
9 years ago
missinglink
9dbed08884
remove duplicate entry for borough
9 years ago
missinglink
da4c666538
reduce admin:borough:boost from 800->600
9 years ago
missinglink
2398f05f8d
fix borough matching for both autocomplete and search endpoints
9 years ago
missinglink
b862fc8833
refactor pop_subquery to be config driven
9 years ago
missinglink
ca0c51b0fd
don't strip single digits from query
9 years ago
missinglink
01a3233a7b
add a view to boost exact matches
9 years ago
Julian Simioni
f8af354e71
Base admin fields on placetypes
9 years ago
Julian Simioni
028ab1d889
Add search config settings for borough
9 years ago
missinglink
25ab63c3b3
change search analyzer to be more similar to what we had before the autocomplete_refactor milestone
9 years ago
missinglink
e40c9ef326
increase focus weight from 10->40 and simplify population/popularity subview
9 years ago
missinglink
3a789b4a93
increase autocomplete 'phrase:slop' setting from 2->3
9 years ago
Peter Johnson
aa3e764e49
update analyzers to work with https://github.com/pelias/schema/pull/109
9 years ago
Peter Johnson
63301afeac
wow this is easy to get wrong, added a unit test
9 years ago
Peter Johnson
7d71e32104
bugfix: enable support for ?sources= filtering on /reverse
9 years ago
Peter Johnson
0abda099a6
bugfixes and more tests
9 years ago
Diana Shkolnikov
0917a84988
Update property names in query defaults
9 years ago
Diana Shkolnikov
f3ba492e05
Remove all usage of alpha3/admin0/admin1, update query building to reflect new names in pelias-query
9 years ago
missinglink
67449dcae0
Tweak weights for focus
9 years ago
missinglink
ce292baeaf
fixes for focus.point to work with wof integration
9 years ago
Julian Simioni
ef78b2e0fd
Filter source and layer by new fields
...
This is functionally the same code as before, except that it uses the
new source and layer mapping.
9 years ago
missinglink
8a213b70bb
simplify pass 3
9 years ago
missinglink
8474dede20
simplify pass 2
9 years ago
missinglink
6711aa45e0
simplify pass 1
9 years ago
missinglink
9ceb8f37d2
more tweaks
9 years ago
Peter Johnson
db5a78623a
disable viewport scale
9 years ago
Peter Johnson
f1ead56e60
disable viewport scale
9 years ago
Peter Johnson
3236d97d4a
switch back to using standard analyzer for ngrams must condition
9 years ago
Peter Johnson
c0385fcdef
massive boost to admin (when specified)
9 years ago
Peter Johnson
22fa0d0458
hack hack hack
9 years ago
Peter Johnson
68921e7d94
more tweaks
9 years ago
Peter Johnson
3d29b09805
more tweaks
9 years ago
Peter Johnson
b974f304e7
trim
9 years ago
Peter Johnson
df7606786c
config tweaks
9 years ago
Peter Johnson
661d19ccf2
more tweaks
9 years ago
Peter Johnson
a022e62acb
more tweaks
9 years ago
Peter Johnson
609fc4e699
enable text parsing
9 years ago