Skip to content
This repository has been archived by the owner on Oct 31, 2020. It is now read-only.

Commit

Permalink
Merge pull request #7 from projectblacklight/add-spatial-types
Browse files Browse the repository at this point in the history
adds in newer spatial field types
  • Loading branch information
cbeer committed Mar 6, 2015
2 parents 36aa453 + 8381f9b commit 50c50e9
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions solr/blacklight-core/conf/schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,33 @@
See http://wiki.apache.org/solr/SpatialSearch
-->
<fieldtype name="geohash" class="solr.GeoHashField"/>

<!--
RPT incorporates the basic features of LatLonType and PointType, such
as lat-lon bounding boxes and circles, in addition to supporting geofilt,
bbox, geodist, and a range-queries.
See https://cwiki.apache.org/confluence/display/solr/Spatial+Search#SpatialSearch-SpatialRecursivePrefixTreeFieldType(abbreviatedasRPT)
-->
<fieldType name="location_rpt" class="solr.SpatialRecursivePrefixTreeFieldType"
distErrPct="0.025"
maxDistErr="0.000009"
units="degrees"
/>

<!--
The BBoxField field type indexes a single rectangle (bounding box) per
document field and supports searching via a bounding box. It supports
most spatial search predicates, it has enhanced relevancy modes based on the
overlap or area between the search rectangle and the indexed rectangle.
See https://cwiki.apache.org/confluence/display/solr/Spatial+Search#SpatialSearch-BBoxField
-->
<fieldType name="bbox" class="solr.BBoxField" geo="true"
units="degrees" numberType="_bbox_coord"
/>

<fieldType name="_bbox_coord" class="solr.TrieDoubleField" precisionStep="8"
docValues="true" stored="false"
/>
</types>


Expand Down Expand Up @@ -571,6 +598,9 @@
<dynamicField name="*_unstem_search" type="text_general" indexed="true" stored="false" multiValued="true" />
<dynamicField name="*spell" type="textSpell" indexed="true" stored="false" multiValued="true" />

<dynamicField name="*_rpt" type="location_rpt" stored="true" indexed="true"/>
<dynamicField name="*_bbox" type="bbox" stored="true" indexed="true"/>

<!-- uncomment the following to ignore any fields that don't already match an existing
field name or dynamic field, rather than reporting them as an error.
alternately, change the type="ignored" to some other type e.g. "text" if you want
Expand Down

0 comments on commit 50c50e9

Please sign in to comment.