Places index: drop buildings and land use, search without apostrophes and by brand
CI / check (push) Successful in 18s
CI / deploy (push) Successful in 12s

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:
randy committed 2026-11-12 12:58:31 +01:00
1 parent 8e4c466829
commit f3dd37dd4e
5 files changed
+67 -12

No files matched your search

+1 -1
View File
@@ -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