Skip to content

Commit

Permalink
Merge pull request #647 from geoadmin/master
Browse files Browse the repository at this point in the history
Master
  • Loading branch information
rebert authored Dec 10, 2024
2 parents c7f6430 + f33dade commit 73dd2ee
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
14 changes: 7 additions & 7 deletions conf/lubis.conf.part
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ source src_ch_swisstopo_lubis_luftbilder_farbe : def_searchable_features_with_ye
sql_db = lubis_${DBSTAGING}
sql_query = \
SELECT row_number() OVER(ORDER BY ebkey asc) as id \
, concat(flugdatum, ' ', bildnummer, ' (', concat_ws(', ', ort, ebkey), ')' ) as label \
, concat(flugdatum, ' ', feature_id, ' (', concat_ws(', ', ebkey), ')' ) as label \
, 'feature' as origin \
, remove_accents(concat_ws(' ', ebkey, ort, ebkey_old)) as detail \
, remove_accents(concat_ws(' ', ebkey, ebkey_old)) as detail \
, 'ch.swisstopo.lubis-luftbilder_farbe' as layer \
, bgdi_quadindex as geom_quadindex \
, st_y(st_transform(st_centroid(the_geom),4326)) as lat \
Expand All @@ -62,9 +62,9 @@ source src_ch_swisstopo_lubis_luftbilder_schwarzweiss: def_searchable_features_w
sql_db = lubis_${DBSTAGING}
sql_query = \
SELECT row_number() OVER(ORDER BY ebkey asc) as id \
, concat(flugdatum, ' ', bildnummer, ' (', concat_ws(', ', ort, ebkey), ')' ) as label \
, concat(flugdatum, ' ', feature_id, ' (', concat_ws(', ', ebkey), ')' ) as label \
, 'feature' as origin \
, remove_accents(concat_ws(' ', ebkey, ort, ebkey_old)) as detail \
, remove_accents(concat_ws(' ', ebkey, ebkey_old)) as detail \
, 'ch.swisstopo.lubis-luftbilder_schwarzweiss' as layer \
, bgdi_quadindex as geom_quadindex \
, st_y(st_transform(st_centroid(the_geom),4326)) as lat \
Expand All @@ -81,9 +81,9 @@ source src_ch_swisstopo_lubis_luftbilder_infrarot: def_searchable_features_with_
sql_db = lubis_${DBSTAGING}
sql_query = \
SELECT row_number() OVER(ORDER BY ebkey asc) as id \
, concat(flugdatum, ' ', bildnummer, ' (', concat_ws(', ', ort, ebkey, ebkey_old), ')' ) as label \
, concat(flugdatum, ' ', feature_id, ' (', concat_ws(', ', ebkey, ebkey_old), ')' ) as label \
, 'feature' as origin \
, remove_accents(concat_ws(' ', ebkey, ort)) as detail \
, remove_accents(ebkey) as detail \
, 'ch.swisstopo.lubis-luftbilder_infrarot' as layer \
, bgdi_quadindex as geom_quadindex \
, st_y(st_transform(st_centroid(the_geom),4326)) as lat \
Expand Down Expand Up @@ -140,7 +140,7 @@ source src_ch_swisstopo_lubis_terrestrische_aufnahmen : def_searchable_features_
SELECT row_number() OVER(ORDER BY inventory_number asc) as id \
, lpad(bilder.inventory_number::text, 14, '0'::text) as label \
, 'feature' as origin \
, remove_accents(concat_ws(' ', inventory_number, image_number, station, operate_name, year, inventarnummer_old)) as detail \
, remove_accents(concat_ws(' ', inventory_number, station, operate_name, year, inventarnummer_old)) as detail \
, 'ch.swisstopo.lubis-terrestrische_aufnahmen' as layer \
, bgdi_quadindex as geom_quadindex \
, st_y(st_transform(st_centroid(the_geom),4326)) as lat \
Expand Down
12 changes: 12 additions & 0 deletions conf/search.conf.part
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,8 @@ index district_metaphone : zipcode
source = src_district
path = /var/lib/sphinxsearch/data/index/district_metaphone
preopen = 0
wordforms = /dev/null
expand_keywords = 1
}

index kantone_metaphone : zipcode
Expand All @@ -413,6 +415,8 @@ index kantone_metaphone : zipcode
source = src_kantone
path = /var/lib/sphinxsearch/data/index/kantone_metaphone
preopen = 0
wordforms = /dev/null
expand_keywords = 1
}

index gg25_metaphone : zipcode
Expand All @@ -421,6 +425,8 @@ index gg25_metaphone : zipcode
source = src_gg25
path = /var/lib/sphinxsearch/data/index/gg25_metaphone
preopen = 0
wordforms = /dev/null
expand_keywords = 1
}

index swissnames3d_metaphone : zipcode
Expand All @@ -429,6 +435,8 @@ index swissnames3d_metaphone : zipcode
source = src_swissnames3d
path = /var/lib/sphinxsearch/data/index/swissnames3d_metaphone
preopen = 0
wordforms = /dev/null
expand_keywords = 1
}

index haltestellen_metaphone : zipcode
Expand All @@ -437,6 +445,8 @@ index haltestellen_metaphone : zipcode
source = src_haltestellen
path = /var/lib/sphinxsearch/data/index/haltestellen_metaphone
preopen = 0
wordforms = /dev/null
expand_keywords = 1
}

index address_metaphone: zipcode
Expand All @@ -445,6 +455,8 @@ index address_metaphone: zipcode
source = src_address
path = /var/lib/sphinxsearch/data/index/address_metaphone
preopen = 0
wordforms = /dev/null
expand_keywords = 1
}

# only create on demand
Expand Down

0 comments on commit 73dd2ee

Please sign in to comment.