Skip to content

Commit

Permalink
Merge pull request #642 from geoadmin/feat-BGDIDIC-2872-unterkuenfte-…
Browse files Browse the repository at this point in the history
…winter

BGDIDIC-2872: add sphinx search index
  • Loading branch information
faselm authored Nov 5, 2024
2 parents f5569e4 + 7a5001d commit 31ff036
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions conf/stopo.conf.part
Original file line number Diff line number Diff line change
Expand Up @@ -1058,6 +1058,24 @@ source src_ch_swisstopo_geologie_thermale_waesser : def_searchable_features
from geol.thermal_waters
}

source src_ch_swisstopo_unterkuenfte_winter : def_searchable_features
{
sql_db = stopo_${DBSTAGING}
sql_query = \
SELECT bgdi_id as id \
, name as label \
, 'feature' as origin \
, remove_accents(name) as detail \
, 'ch.swisstopo.unterkuenfte-winter' as layer \
, quadindex(the_geom) as geom_quadindex \
, st_y(st_transform(st_centroid(the_geom),4326)) as lat \
, st_x(st_transform(st_centroid(the_geom),4326)) as lon \
, box2d(st_transform(the_geom, 21781)) as geom_st_box2d \
, box2d(st_transform(the_geom, 2056)) as geom_st_box2d_lv95 \
, bgdi_id::text as feature_id \
from karto.unterkuenfte_winter
}

## INDICES

index ch_swisstopo_verschiebungsvektoren_tsp1
Expand Down Expand Up @@ -1418,3 +1436,9 @@ index ch_swisstopo_geologie_thermale_waesser : ch_swisstopo_verschiebungsvektore
source = src_ch_swisstopo_geologie_thermale_waesser
path = /var/lib/sphinxsearch/data/index/ch_swisstopo_geologie_thermale_waesser
}

index ch_swisstopo_unterkuenfte_winter : ch_swisstopo_verschiebungsvektoren_tsp1
{
source = src_ch_swisstopo_unterkuenfte_winter
path = /var/lib/sphinxsearch/data/index/ch_swisstopo_unterkuenfte_winter
}

0 comments on commit 31ff036

Please sign in to comment.