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-541: adapted sphinx search towards mat view #583

Merged
merged 1 commit into from
Dec 4, 2023
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
11 changes: 6 additions & 5 deletions conf/stopo.conf.part
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,19 @@ source src_ch_swisstopo_swissboundaries3d_gemeinde_flaeche_fill : def_searchable
{
sql_db = stopo_${DBSTAGING}
sql_query = \
SELECT id as id \
SELECT object_id as id \
, 'feature' as origin \
, remove_accents(concat_ws(' ',gemname, id)) as detail \
, remove_accents(concat_ws(' ', gde_name, object_id)) as detail \
, 'ch.swisstopo.swissboundaries3d-gemeinde-flaeche.fill' as layer \
, quadindex(the_geom) as geom_quadindex \
, st_y(st_transform(ST_PointOnSurface(the_geom),4326)) as lat \
, st_x(st_transform(ST_PointOnSurface(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 \
, gemname::text as label \
, id::text as feature_id \
FROM tlm.swissboundaries_gemeinden
, gde_name::text as label \
, object_id::text as feature_id \
FROM tlm.swissboundaries_gemeinden_hist_chsdi \
WHERE is_current_jahr = true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

}

source src_ch_swisstopo_swissboundaries3d_kanton_flaeche_fill : def_searchable_features
Expand Down
Loading