Sarah Hoffmann
54393addd3
disregard special phrases that do not match fully
...
Compare the normalized terms imported with the special
terms script with the normalized version of the query string.
Disregard them if they cannot be found. This avoids a significant
number of mismatches due to transliteration issues.
The match will only be done when a normalized word has been set
making this change backwards compatible with older databases.
2017-06-04 23:12:09 +02:00
Sarah Hoffmann
e3fb706c65
add normalized version of special search terms on import
...
Requires the PHP bindings for libicu, so add that as a requirement.
2017-06-04 23:12:09 +02:00
Sarah Hoffmann
2dd7f0156a
use "char" type when refering to osm_type column
...
When using an explicit cast to char(1) when refering to the
osm_type column postgres won't use the index in some cases.
Observed only on postgres 9.5 from the original Postgres
reporsitories.
Fixes #741 .
2017-06-04 14:48:53 +02:00
Sarah Hoffmann
5b8672c10a
also need postgres configuration changes for bug reports
2017-06-02 14:06:53 +02:00
Sarah Hoffmann
7a14792e21
update osm2pgsql (libosmium update and clubs)
...
Adds club key.
Fixes #725 .
2017-06-01 20:10:10 +02:00
Sarah Hoffmann
d88c484fa1
remove PHP version check
...
5.4 is the minimum supported version now.
2017-06-01 20:10:10 +02:00
big-o
bdd90e890b
Parameter to enable JSON pretty-printing
2017-06-01 20:10:10 +02:00
Sarah Hoffmann
b5fc5e0a71
Merge pull request #739 from lonvia/max-importance
...
when linking places compute maximum importance
2017-06-01 00:13:22 +02:00
Sarah Hoffmann
002fa35b92
when linking places compute maximum importance
...
The linker and the linkee might have different wikipedia
tags and thus different importances. Prefer the higher
value.
Fixes #562 .
2017-05-30 23:36:59 +02:00
Sarah Hoffmann
d023578f90
add hints about bug reporting and pull requests
2017-05-27 17:47:39 +02:00
Sarah Hoffmann
1876fe42c9
updates: always remove output file and start with correct sequence id
2017-05-27 17:02:34 +02:00
Sarah Hoffmann
86acaa5264
fix name of constant
2017-05-27 16:42:01 +02:00
Sarah Hoffmann
d898f9aabf
update word statistics
2017-05-26 21:58:52 +02:00
Sarah Hoffmann
33c919ab09
Merge pull request #734 from lonvia/use-pyosmium-for-updates
...
Use pyosmium for updates
2017-05-26 21:43:08 +02:00
Sarah Hoffmann
deca74bc3a
Merge pull request #730 from SrihariThalla/update-vagrantmd-doc
...
Update the formatting in Vagrant markdown doc
2017-05-26 21:39:37 +02:00
Srihari Thalla
74b3251c7a
Update the formatting in Vagrant markdown doc
2017-05-26 09:38:37 +05:30
Sarah Hoffmann
65afe13f0a
update docs for osmosis to pyosmium change
2017-05-25 16:53:44 +02:00
Sarah Hoffmann
bd4b1b2d08
switch from osmosis to pyosmium for updates
...
Pyosmium comes with convenient functions for finding the
right state and does not require external files for
rembering the state. Updates can now conveniently
set up by simply running ./utils/update.php --init-updates
and state is kept directly in the import_status table.
This change requires an update in the database schema.
Run the following to update:
ALTER TABLE import_status ADD COLUMN sequence_id integer;
ALTER TABLE import_status ADD COLUMN indexed boolean;
ALTER TABLE import_osmosis_log ADD COLUMN batchseq integer;
2017-05-25 16:26:09 +02:00
Sarah Hoffmann
1a1526ec30
Add FAQ to documentation
...
For the moment only copies the FAQ entries for installation from the wiki and adds one on running multiple extracts.
2017-05-24 23:29:08 +02:00
Sarah Hoffmann
6830b1229e
Merge pull request #724 from lonvia/update-country-list
...
Update country grid SQL file and move it to nominatim.org
2017-05-13 11:48:34 +02:00
Sarah Hoffmann
e7c8b498d1
update docs for new country grid location
...
Also updates some dependencies.
2017-05-13 00:13:56 +02:00
Sarah Hoffmann
b15b996cc4
remove base country grid from repo
...
The updated country grid is significantly larger, so expect it to
be downloaded from the nominatim.org website instead.
2017-05-12 23:02:50 +02:00
Sarah Hoffmann
d8ade1c527
remove another use of place.country_code
2017-04-23 22:46:54 +02:00
Sarah Hoffmann
6043cd5ad8
update osm2pgsql (geometry fix, column reordering)
2017-04-22 18:16:22 +02:00
Sarah Hoffmann
86d5209118
Merge branch 'roques-tetris'
2017-04-22 18:14:05 +02:00
Sarah Hoffmann
c629573230
Merge pull request #708 from lonvia/check-for-invalid-geoms
...
make sure no invalid geometries end up in placex
2017-04-22 18:12:18 +02:00
Sarah Hoffmann
291a161cc6
make sure no invalid geometries end up in placex
2017-04-22 10:34:03 +02:00
Sarah Hoffmann
4c7145c293
Merge branch 'tetris' of https://github.com/roques/Nominatim into roques-tetris
2017-04-20 20:56:44 +02:00
Christian von Roques
4d4b95923e
use SMALLINT for ranks and partition; reorder columns for alignment
2017-04-19 02:18:44 +02:00
Sarah Hoffmann
71e6d5f9a6
fix typo
2017-04-18 22:44:39 +02:00
Sarah Hoffmann
446a5a95bc
get pg error on correct connection
2017-04-18 22:29:21 +02:00
Sarah Hoffmann
19edbd3581
send address interpolation import to correct postgres conn
2017-04-18 22:11:58 +02:00
Sarah Hoffmann
166737fb76
also use address column for word count computation
2017-04-18 22:11:09 +02:00
Christian von Roques
b6be33cded
explicitly name columns at INSERT
2017-04-18 13:36:02 +02:00
Christian von Roques
c80637b05c
deduplicate words: do not look for duplicates in empty partitions
2017-04-15 19:12:25 +02:00
Christian von Roques
3ec67b9193
update: getPostgresVersion requires a database connection
2017-04-15 19:12:25 +02:00
Christian von Roques
40debbc7b5
with PHP7 the result of new() can no longer be assigned by reference
2017-04-15 19:12:25 +02:00
Christian von Roques
ccecabfbf4
correct warm.php --search-only help text
2017-04-15 19:12:25 +02:00
Sarah Hoffmann
1e30e578e0
Merge pull request #700 from lonvia/structured-address-info
...
Move address information into hstore column
2017-04-13 22:12:19 +02:00
Sarah Hoffmann
29e9683293
update osm2pgsql (structured addresses and new libosmium)
2017-04-11 21:29:10 +02:00
Sarah Hoffmann
8138729aea
use centroid for near feature search on rank 30
...
Rank 30 has some very large geometries (peninsulas, time zones,
etc.) for which a near feature search for the full geometry is
too expensive, so do the search on the centroid only.
2017-04-09 23:12:35 +02:00
Sarah Hoffmann
9bb81731f8
fix operator precedence for hstore
2017-04-09 10:06:31 +02:00
Sarah Hoffmann
050b0a2ced
remove street and addr_place columns in placex
...
The information is onyl needed for parenting,
so no need to store it permanently.
2017-04-08 19:58:10 +02:00
Sarah Hoffmann
3bb903cf92
Remove street and addr_place from location_property_osmline
...
Derived columns are not needed because parent information is
always computed from scratch. So the columns are just duplicate
information.
Also get address information on nodes from address columns. The
other columns are not necessarily reliable when the node have not
been indexed yet.
2017-04-08 19:58:10 +02:00
Sarah Hoffmann
41afcaddd5
adapt more BDD tests to hstore
2017-04-08 19:58:09 +02:00
Sarah Hoffmann
8c7fa0213f
fix DB bd tests for address hstore
2017-04-08 19:57:36 +02:00
Sarah Hoffmann
49b5e4dbad
adapt osm2pgsql tests for new address column
2017-04-08 18:58:26 +02:00
Sarah Hoffmann
c8e79397f5
introduce address column for place tables
...
The column is a hstore containing the full OSM tag with key and
value.
2017-04-08 18:58:26 +02:00
Sarah Hoffmann
43eedfd253
abort osmline update correctly when way nodes are missing
...
Fixes #695 .
2017-03-30 22:14:47 +02:00
Sarah Hoffmann
ee1b25820e
Merge pull request #690 from ImreSamu/fix_install_sql_warnings
...
fix table/sequence ... does not exist
2017-03-27 22:41:52 +02:00