Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-15945

DateRangeField type fails to initialize if the field is indexed="false"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 8.11.1
    • None
    • Schema and Analysis
    • None

    Description

      If a DateRangeField type is added to the schema, the schema will fail to initialize if any field referencing that type has indexed="false" as part of its definition.

      So adding this to a schema will fail:

       <fieldType name="rdate" class="solr.DateRangeField" sortMissingLast="true"/>
       <field name="date" type="rdate" indexed="false" stored="true"/>

      With this message and a big stacktrace:

      Caused by: org.apache.solr.common.SolrException: date of type DateRangeField is incompatible with omitNorms=false; hardcoded behavior is omitNorms=true.  Remove specification in schema
      

      If indexed is changed to "true" then the core will load.

      Attachments

        Activity

          People

            Unassigned Unassigned
            elyograg Shawn Heisey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: