Sarah Hoffmann
795153b213
fix more syntax issues
2017-10-08 16:42:04 +02:00
Sarah Hoffmann
fd08d41962
move Search dump function into SearchDescription class
2017-10-08 16:05:27 +02:00
Sarah Hoffmann
75e35f3832
fix syntax errors from introduction of SearchDescription
2017-10-08 15:26:14 +02:00
Sarah Hoffmann
16268f92cc
convert getGroupedSearches to SearchDescription class
2017-10-08 12:57:22 +02:00
Sarah Hoffmann
d72c863353
add function to convert array to SQL
2017-10-08 10:06:17 +02:00
Sarah Hoffmann
96b6a1a418
use SearchDescription class in query loop
2017-10-08 09:54:12 +02:00
Sarah Hoffmann
0067555c38
move initial search setup to new class type
2017-10-07 12:24:21 +02:00
Sarah Hoffmann
77d4453334
add new class for searches
2017-10-07 12:24:21 +02:00
Sarah Hoffmann
c563c2bfec
drop searches with excluded country codes earlier
2017-10-07 12:23:46 +02:00
Sarah Hoffmann
266153f218
remove code for dropping address terms
...
This code has been inactive in quite a while and is a suboptimal
solution. We need to be much more selective in what gets dropped.
2017-10-07 11:53:33 +02:00
Sarah Hoffmann
73e737d775
fix variable names
2017-10-06 22:01:52 +02:00
Sarah Hoffmann
5029101048
further restrict use of partial terms in names
2017-10-06 21:36:28 +02:00
Sarah Hoffmann
0c9a241487
housenumbers may only appear before or after the name
2017-10-06 21:16:35 +02:00
Sarah Hoffmann
41d2cd318d
penalize search order where a country comes first
2017-10-06 21:07:33 +02:00
Sarah Hoffmann
0d2cdb5c2f
allow postcodes and housenumbers together
...
Fixes #805 .
2017-10-06 20:48:35 +02:00
Sarah Hoffmann
f8d55b5448
sanitize special search term before normalizing
2017-10-06 00:22:27 +02:00
Sarah Hoffmann
00a3a8834b
fix postcode search
...
Name token must be fully replaced with the postcode and
postcode search must be done only once.
2017-10-04 23:33:29 +02:00
Sarah Hoffmann
32f6ddf6db
only allow either postcode or special search
...
Fixes #804 .
2017-10-04 20:15:06 +02:00
Sarah Hoffmann
1220ff5da6
use correct source for radius column in debug view
2017-10-04 20:14:35 +02:00
Sarah Hoffmann
89c576fbe1
tests: more coverage for all API endpoints
2017-10-04 00:05:34 +02:00
Sarah Hoffmann
e276ec2e94
Merge pull request #803 from lonvia/update-postcodes
...
Add script to update table with artifical postcode centroids
2017-10-03 16:28:22 +02:00
Sarah Hoffmann
bafbf679b6
add script for updating postcodes
2017-10-03 15:58:14 +02:00
Sarah Hoffmann
8e2ef2842e
move psqlRunScript implementation into cmd lib
...
Function needed for update.php as well.
2017-10-03 14:26:59 +02:00
Sarah Hoffmann
218b70fd96
test: remove road-fallback test from db tests
...
This should be tested in the api section.
2017-10-03 14:26:08 +02:00
Sarah Hoffmann
e3323e8888
fix search for postcode via structured query
...
Results from the artifical postcode table were dropped
when reevaluating rank of results.
2017-10-03 12:10:27 +02:00
Sarah Hoffmann
eacaf3489e
more coverage tests for Geocode.php
2017-10-02 23:09:45 +02:00
Sarah Hoffmann
2deac34648
remove unnecessary size check
2017-10-02 22:31:52 +02:00
Sarah Hoffmann
e8c52c6780
be more strict with searches involving house numbers
...
Housenumber searches without a name cannot exist per
definition. Searches with only a name but no address
should not fall back on a search without house number.
This should improve postcode only search.
2017-10-02 22:22:50 +02:00
Sarah Hoffmann
e7e7ae0104
avoid unnecessary SQL when rechecking rank restrictions
2017-10-02 20:42:37 +02:00
Sarah Hoffmann
0d4c1e8460
fix viewbox related test
...
Coordinates are no longer specially ordered.
2017-10-02 20:39:33 +02:00
Sarah Hoffmann
cdabea7c76
docs: clarify how to run pip install
...
Fixes #792 .
2017-10-01 22:48:57 +02:00
Sarah Hoffmann
749091bf3a
order of viewbox coordinates does not matter
2017-10-01 22:48:57 +02:00
Sarah Hoffmann
28810e6ce0
Merge pull request #802 from mtmail/coordinate-extract-missing-first-minus-sign
...
NearPoint::extractFromQuery - greedy-match optional quote sign
2017-10-01 22:42:24 +02:00
Sarah Hoffmann
f2c15b73ad
skip output of lat/lon in debug when no near point given
2017-09-30 12:24:37 +02:00
Sarah Hoffmann
a88527b2a0
fix index when rechecking postcode name
2017-09-30 12:19:16 +02:00
Sarah Hoffmann
b1e8db7ca7
return unchanged term if normalizer was not found
2017-09-30 09:39:47 +02:00
marc tobias
06657b3e10
NearPoint::extractFromQuery - greedy-match optional quote sign
2017-09-21 19:13:50 +02:00
Sarah Hoffmann
81a7ea36db
more API tests (mostly for user errors)
2017-09-19 23:06:31 +02:00
Sarah Hoffmann
af74c037f4
enable coverage also for tests with HTTP errors
2017-09-19 22:42:09 +02:00
Sarah Hoffmann
6796749136
Merge pull request #798 from mtmail/coordinate-extract-missing-first-minus-sign
...
fix to NearPoint::extractFromQuery handling first minus sign
2017-09-19 21:23:49 +02:00
marc tobias
e67a6dc321
fix to NearPoint::extractFromQuery handling first minus sign
2017-09-19 12:40:10 +01:00
Sarah Hoffmann
15a215729e
fix handling of near queries with special search
...
Make sure to use the classtype tables with near search and
allow to search for arbitrary key/values (forbidding it
for viewbox searches).
Add tests for near queries.
2017-09-19 00:07:11 +02:00
Sarah Hoffmann
ce95c55d65
fix display of nearpoint in debug view
2017-09-18 23:06:30 +02:00
Sarah Hoffmann
8eb066c692
reinstate key-value amenity search
...
Reenable search by the secret special term [key=value]
matching against the given main tag. Note that for most
cases that works only for tags that also have a special
search table.
2017-09-18 22:09:06 +02:00
Sarah Hoffmann
a0de20e9bc
more API tests for code coverage
...
Also fixes two minor issues related to structured queries.
2017-09-17 23:30:08 +02:00
Sarah Hoffmann
2dbf58d461
improve code coverage documentation
2017-09-17 20:27:06 +02:00
Sarah Hoffmann
9a47e1834f
reduce message frequency during indexing
2017-09-17 20:13:05 +02:00
Sarah Hoffmann
61ed3b8ab3
setup: bail out earl when something is wrong with nominatim.so
2017-09-17 20:07:03 +02:00
Sarah Hoffmann
bb1552be29
setup: error out when web site user does not exist
...
User is needed to be able to grant rights.
2017-09-17 19:51:00 +02:00
Sarah Hoffmann
5614ece9a1
run psql in quiet mode unless 'verbose' is enabled
2017-09-17 11:34:35 +02:00