Skip to content

Commit

Permalink
Merge pull request #323 from sul-dlss/unused-fields
Browse files Browse the repository at this point in the history
Remove unused (and deprecated) fields + field types
  • Loading branch information
cbeer authored Jun 10, 2024
2 parents 3c06158 + ae6d60a commit 9e72e23
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 39 deletions.
8 changes: 0 additions & 8 deletions cidr-authorial-prod/schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,6 @@
<filter class="solr.LowerCaseFilterFactory"/>
</analyzer>
</fieldType>
<!-- A specialized field for geospatial search. If indexed, this fieldType must not be multivalued. -->
<fieldType name="location" class="solr.LatLonType" subFieldSuffix="_coordinate"/>
</types>
<fields>
<!-- Valid attributes for fields:
Expand Down Expand Up @@ -245,12 +243,6 @@

<!-- Type used to index the lat and lon components for the "location" FieldType -->
<dynamicField name="*_coordinate" type="tdouble" indexed="true" stored="true" multiValued="false"/>
<dynamicField name="*_p" type="location" indexed="true" stored="true" multiValued="false"/>

<dynamicField name="*_ll" stored="true" type="location" multiValued="false" indexed="true"/>
<dynamicField name="*_llm" stored="true" type="location" multiValued="true" indexed="true"/>
<dynamicField name="*_lls" stored="true" type="location" multiValued="false" indexed="true"/>
<dynamicField name="*_llms" stored="true" type="location" multiValued="true" indexed="true"/>
<field name="textSpell" stored="false" type="textSpell" multiValued="true" indexed="true"/>

<!-- required by Solr 4 -->
Expand Down
4 changes: 0 additions & 4 deletions cidr-dig-hcrc-prod/schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ both match, the first appearing in the schema will be used. -->
<dynamicField name="*_coordinate" type="tdouble" indexed="true" stored="true"/>

<dynamicField name="*_dt" type="date" indexed="true" stored="true"/>
<dynamicField name="*_p" type="location" indexed="true" stored="true"/>

<!-- some trie-coded dynamic fields for faster range queries -->
<dynamicField name="*_ti" type="tint" indexed="true" stored="true"/>
Expand Down Expand Up @@ -703,9 +702,6 @@ or to add multiple fields to the same field for easier/faster searching. -->
-->
<fieldType name="point" class="solr.PointType" dimension="2" subFieldSuffix="_d"/>

<!-- A specialized field for geospatial search. If indexed, this fieldType must not be multivalued. -->
<fieldType name="location" class="solr.LatLonType" subFieldSuffix="_coordinate"/>

<!-- An alternative geospatial field type new to Solr 4. It supports multiValued and polygon shapes.
For more information about this and other Spatial fields new to Solr 4, see:
http://wiki.apache.org/solr/SolrAdaptersForLuceneSpatial4
Expand Down
4 changes: 0 additions & 4 deletions earthworks-prod/schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@
as WKT for point, linestring, polygon
-->
<dynamicField name="*_pt" type="location" stored="true" indexed="true"/>
<dynamicField name="*_bbox" type="location_rpt" stored="true" indexed="true"/><!-- deprecated -->
<dynamicField name="*_geom" type="location_rpt" stored="true" indexed="true"/>
<!-- <dynamicField name="*_jts" type="location_jts" stored="true" indexed="true"/> -->
Expand Down Expand Up @@ -133,9 +132,6 @@
</analyzer>
</fieldType>

<!-- Spatial field types -->
<fieldType name="location" class="solr.LatLonType" subFieldSuffix="_d"/>

<fieldType name="location_rpt" class="solr.SpatialRecursivePrefixTreeFieldType"
distErrPct="0.025"
maxDistErr="0.000009"
Expand Down
3 changes: 0 additions & 3 deletions earthworks-stage/schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@
as WKT for point, linestring, polygon
-->
<dynamicField name="*_pt" type="location" stored="true" indexed="true"/>
<dynamicField name="*_bbox" type="location_rpt" stored="true" indexed="true"/><!-- deprecated -->
<dynamicField name="*_geom" type="location_rpt" stored="true" indexed="true"/>
<!-- <dynamicField name="*_jts" type="location_jts" stored="true" indexed="true"/> -->
Expand Down Expand Up @@ -134,8 +133,6 @@
</fieldType>

<!-- Spatial field types -->
<fieldType name="location" class="solr.LatLonType" subFieldSuffix="_d"/>

<fieldType name="location_rpt" class="solr.SpatialRecursivePrefixTreeFieldType"
distErrPct="0.025"
maxDistErr="0.000009"
Expand Down
10 changes: 0 additions & 10 deletions exhibits/schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -258,10 +258,8 @@
<dynamicField name="*_tesimv" type="text" stored="true" indexed="true" multiValued="true" storeOffsetsWithPositions="true" termVectors="true" />
<dynamicField name="*_bsi" type="boolean" stored="true" indexed="true" multiValued="true" omitNorms="true" />
<dynamicField name="*_ng" type="text_en_ng" stored="false" indexed="true" multiValued="true"/>
<dynamicField name="*_pt" type="location" stored="true" indexed="true"/>
<dynamicField name="*_bbox" type="bbox" stored="true" indexed="true" multiValued="true"/>
<dynamicField name="*_srpt" type="location_rpt" stored="true" indexed="true" multiValued="true"/>
<dynamicField name="*_geohash" type="geohash" stored="true" indexed="true" multiValued="true"/>
<dynamicField name="*_ts" type="text" indexed="false" stored="true" multiValued="false" />
<dynamicField name="random*" type="random" />
</fields>
Expand Down Expand Up @@ -613,14 +611,6 @@
-->
<fieldType name="point" class="solr.PointType" dimension="2" subFieldSuffix="_d"/>

<!-- A Geohash is a compact representation of a latitude longitude pair in a single field.
See http://wiki.apache.org/solr/SpatialSearch
-->
<fieldtype name="geohash" class="solr.GeoHashField"/>

<!-- A specialized field for geospatial search. If indexed, fields of this type must NOT be multivalued. -->
<fieldType name="location" class="solr.LatLonType" subFieldSuffix="_coordinate"/>

<!-- An alternative geospatial field type new to Solr 4. It supports multiValued and polygon shapes.
For more information about this and other Spatial fields new to Solr 4, see:
http://wiki.apache.org/solr/SolrAdaptersForLuceneSpatial4
Expand Down
10 changes: 0 additions & 10 deletions exhibits_stage/schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -258,10 +258,8 @@
<dynamicField name="*_tesimv" type="text" stored="true" indexed="true" multiValued="true" storeOffsetsWithPositions="true" termVectors="true" />
<dynamicField name="*_bsi" type="boolean" stored="true" indexed="true" multiValued="true" omitNorms="true" />
<dynamicField name="*_ng" type="text_en_ng" stored="false" indexed="true" multiValued="true"/>
<dynamicField name="*_pt" type="location" stored="true" indexed="true"/>
<dynamicField name="*_bbox" type="bbox" stored="true" indexed="true" multiValued="true"/>
<dynamicField name="*_srpt" type="location_rpt" stored="true" indexed="true" multiValued="true"/>
<dynamicField name="*_geohash" type="geohash" stored="true" indexed="true" multiValued="true"/>
<dynamicField name="*_ts" type="text" indexed="false" stored="true" multiValued="false" />
<dynamicField name="random*" type="random" />
</fields>
Expand Down Expand Up @@ -597,14 +595,6 @@
-->
<fieldType name="point" class="solr.PointType" dimension="2" subFieldSuffix="_d"/>

<!-- A Geohash is a compact representation of a latitude longitude pair in a single field.
See http://wiki.apache.org/solr/SpatialSearch
-->
<fieldtype name="geohash" class="solr.GeoHashField"/>

<!-- A specialized field for geospatial search. If indexed, fields of this type must NOT be multivalued. -->
<fieldType name="location" class="solr.LatLonType" subFieldSuffix="_coordinate"/>

<!-- An alternative geospatial field type new to Solr 4. It supports multiValued and polygon shapes.
For more information about this and other Spatial fields new to Solr 4, see:
http://wiki.apache.org/solr/SolrAdaptersForLuceneSpatial4
Expand Down

0 comments on commit 9e72e23

Please sign in to comment.