From 73142903d082016ec23da60875a43eb0fb3526b2 Mon Sep 17 00:00:00 2001 From: amercader Date: Tue, 11 Oct 2022 14:58:20 +0200 Subject: [PATCH] Use extent fields instead of BBoxField See https://github.com/ckan/ckanext-spatial/commit/ec0cc00bb for details --- solr-8/Dockerfile.spatial | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/solr-8/Dockerfile.spatial b/solr-8/Dockerfile.spatial index 0df083c..654dc10 100644 --- a/solr-8/Dockerfile.spatial +++ b/solr-8/Dockerfile.spatial @@ -24,7 +24,7 @@ ADD https://raw.githubusercontent.com/ckan/ckan/$CKAN_BRANCH/ckan/config/solr/sc # Install JTS JAR file ADD https://repo1.maven.org/maven2/org/locationtech/jts/jts-core/$JTS_VERSION/jts-core-$JTS_VERSION.jar \ $JTS_JAR_FILE -RUN chmod 644 $JTS_JAR_FILE +RUN chmod 644 $JTS_JAR_FILE # Add the spatial field type definitions and fields @@ -42,18 +42,17 @@ ENV SOLR_RPT_FIELD '/a $SOLR_RPT_FIELD_DEFINITION" $SOLR_SCHEMA_FILE RUN sed -i "//a $SOLR_RPT_FIELD" $SOLR_SCHEMA_FILE -## BBoxField -ENV SOLR_BBOX_FIELD_DEFINITION '' +## BBox +ENV SOLR_BBOX_FIELDS ' \ + \ + \ + \ + ' -ENV SOLR_BBOX_FIELD '' +RUN sed -i "//a $SOLR_BBOX_FIELDS" $SOLR_SCHEMA_FILE -RUN sed -i "//a $SOLR_BBOX_FIELD_DEFINITION" $SOLR_SCHEMA_FILE -RUN sed -i "//a $SOLR_BBOX_FIELD" $SOLR_SCHEMA_FILE - - -RUN chmod 644 $SOLR_SCHEMA_FILE +RUN chmod 644 $SOLR_SCHEMA_FILE USER solr