Places index: drop buildings and land use, search without apostrophes and by brand
Named buildings and land-use areas are skipped unless they're also a shop/amenity/etc. A second, unshown FTS column holds the name without apostrophes and the brand tag, so "mcdonalds" finds McDonald's and "lidl" finds "Lidl Petržalka". The index records a schema version; rake places:index rebuilds older ones by itself.
This commit is contained in:
1 parent
8e4c466829
commit
f3dd37dd4e
5 files changed
+67
-12
No files matched your search
@@ -419,7 +419,7 @@ module Maptool
|
||||
FileUtils.mkdir_p(places_dir(data_dir))
|
||||
sources.each do |source|
|
||||
out_path = places_country_path(data_dir, source["code"])
|
||||
next if File.exist?(out_path) && File.mtime(out_path) >= File.mtime(source["path"])
|
||||
next if File.exist?(out_path) && File.mtime(out_path) >= File.mtime(source["path"]) && Places.current?(out_path)
|
||||
|
||||
tmp_path = "#{out_path}.tmp"
|
||||
begin
|
||||
|
||||
Reference in new issue
Block a user