Closed drh-stanford closed 9 years ago
The default Solr 4.10.3 schema.xml ships like this:
<!-- Spatial rectangle (bounding box) field. It supports most spatial predicates, and has
special relevancy modes: score=overlapRatio|area|area2D (local-param to the query). DocValues is required for
relevancy. -->
<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"/>
I suggest we use that instead... full file here: https://gist.github.com/mejackreed/faac0b7337976865a251
Yeah, I tried that with 4.10.0 (the earthworks jetty version) and it doesn't work correctly. It complains about the __minX
, etc. fields not being defined. Their example doesn't use a dynamicField so my guess is that it doesn't support dynamicFields.
@drh-stanford thanks for that clarification... :+1: to :shipit:
I've tried upgrading to 4.10.3 and using the dynamic fields still doesn't work. I filed a ticket with Solr for clarification... See https://issues.apache.org/jira/browse/SOLR-7153
Closing. See https://github.com/sul-dlss/earthworks/issues/199
Uses
_bbox
suffix and creates_bbox__minX
, etc. fields as double (using dynamicField for_bbox
seems to make this necessary in my testing). See http://svn.apache.org/viewvc/lucene/dev/branches/lucene_solr_4_10/solr/core/src/java/org/apache/solr/schema/BBoxField.java?view=markup