Skip to content
This repository has been archived by the owner on Sep 1, 2021. It is now read-only.

Add spatial fields #23

Merged
merged 1 commit into from
Dec 2, 2020
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
9 changes: 8 additions & 1 deletion files/catalog-next/home/solr/ckan/conf/schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,14 @@ schema. In this case the version should be set to the next CKAN version number.
<field name="metadata_modified" type="date" indexed="true" stored="true" multiValued="false"/>

<field name="indexed_ts" type="date" indexed="true" stored="true" default="NOW" multiValued="false"/>


<!-- Spatial ext fields https://docs.ckan.org/projects/ckanext-spatial/en/latest/spatial-search.html -->
<field name="bbox_area" type="float" indexed="true" stored="true" />
<field name="maxx" type="float" indexed="true" stored="true" />
<field name="maxy" type="float" indexed="true" stored="true" />
<field name="minx" type="float" indexed="true" stored="true" />
<field name="miny" type="float" indexed="true" stored="true" />

<!-- Copy the title field into titleString, and treat as a string
(rather than text type). This allows us to sort on the titleString -->
<field name="title_string" type="string" indexed="true" stored="false" />
Expand Down