Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BGDIDIC-2854: add search index #627

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions conf/evd.conf.part
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,24 @@ source src_ch_blw_ursprungsbezeichnungen_spirituosen : def_searchable_features
from blw.ursprungsbezeichnungen_spirituosen
}

source src_ch_blw_landwirtschaftliche_nutzungsflaechen : def_searchable_features
{
sql_db = evd_${DBSTAGING}
sql_query = \
SELECT bgdi_id::bigint as id \
, t_id as label \
, 'feature' as origin \
, remove_accents(concat_ws(' ', bur_nr, lnf_code, nutzungsidentifikator)) as detail \
, 'ch.blw.landwirtschaftliche-nutzungsflaechen' 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 blw.landwirtschaftliche_nutzungsflaechen
}

## INDICES

index ch_blw_klimaeignung_typ
Expand Down Expand Up @@ -533,3 +551,9 @@ index ch_blw_ursprungsbezeichnungen_spirituosen : ch_blw_klimaeignung_typ
source = src_ch_blw_ursprungsbezeichnungen_spirituosen
path = /var/lib/sphinxsearch/data/index/ch_blw_ursprungsbezeichnungen_spirituosen
}

index ch_blw_landwirtschaftliche_nutzungsflaechen : ch_blw_klimaeignung_typ
{
source = src_ch_blw_landwirtschaftliche_nutzungsflaechen
path = /var/lib/sphinxsearch/data/index/ch_blw_landwirtschaftliche_nutzungsflaechen
}
Loading