geoblacklight / geoblacklight-schema

DEPRECATED: (See GeoBlacklight repo) A metadata schema for GIS resource discovery used by GeoBlacklight
http://github.com/geoblacklight/geoblacklight
Other
15 stars 4 forks source link

change solr_bbox field from RPT to BBox data type #39

Closed drh-stanford closed 9 years ago

drh-stanford commented 9 years ago

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

mejackreed commented 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

drh-stanford commented 9 years ago

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 commented 9 years ago

See https://issues.apache.org/jira/browse/SOLR-6781

mejackreed commented 9 years ago

@drh-stanford thanks for that clarification... :+1: to :shipit:

drh-stanford commented 9 years ago

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

drh-stanford commented 9 years ago

Closing. See https://github.com/sul-dlss/earthworks/issues/199