Skip to content

Commit

Permalink
add omitNorms="true" to solr dateRange as fix for Solr 8.6.3
Browse files Browse the repository at this point in the history
this is (maybe?) a fix for samvera/hyrax#4542.
  • Loading branch information
tamsin johnson committed Nov 12, 2020
1 parent cafc309 commit 60e4927
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
<!-- A PointField based date field for faster date range queries and date faceting. -->
<fieldType name="tdate" class="solr.DatePointField" docValues="true"/>
<!-- A DateRange based date field for truly faster date range queries. -->
<fieldType name="dateRange" class="solr.DateRangeField"/>
<fieldType name="dateRange" class="solr.DateRangeField" omitNorms="true" omitTermFreqAndPositions="true"/>

<!-- This point type indexes the coordinates as separate fields (subFields)
If subFieldType is defined, it references a type, and a dynamic field
Expand Down Expand Up @@ -261,10 +261,10 @@
<!-- date range (_dr...) (for faster AND better range queries) -->
<dynamicField name="*_dri" type="dateRange" stored="false" indexed="true" multiValued="false"/>
<dynamicField name="*_drim" type="dateRange" stored="false" indexed="true" multiValued="true"/>
<dynamicField name="*_drs" type="dateRange" stored="true" indexed="false" multiValued="false"/>
<dynamicField name="*_drsm" type="dateRange" stored="true" indexed="false" multiValued="true"/>
<dynamicField name="*_drsi" type="dateRange" stored="true" indexed="true" multiValued="false"/>
<dynamicField name="*_drsim" type="dateRange" stored="true" indexed="true" multiValued="true"/>
<dynamicField name="*_drs" type="dateRange" stored="true" indexed="true" multiValued="false"/> <!-- indexed anyway because DateRangeField errors otherwise -->
<dynamicField name="*_drsm" type="dateRange" stored="true" indexed="true" multiValued="true"/> <!-- indexed anyway because DateRangeField errors otherwise -->

<!-- long (_l...) -->
<dynamicField name="*_li" type="long" stored="false" indexed="true" multiValued="false"/>
Expand Down

0 comments on commit 60e4927

Please sign in to comment.