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

Non-indexed DateRangeField throws SolrException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 8.6.3, 8.7, 8.8, 8.8.1, 8.8.2
    • None
    • Schema and Analysis
    • None
    • RHEL 7.9 (3.10.0-1160)/Windows (10.1909)

      OpenJDK 1.8.0.282

       

    Description

      Changes introduced by SOLR-14859 do not handle the scenario when the field is set to indexed=false.  Forcing configurations to now index this field when it is not necessary.

      The problem appears to be in 

      org.apache.solr.schema.AbstractSpatialPrefixTreeFieldType::checkSchemaField

      When indexed=false, field.indexOptions() returns IndexOptions.NONE.  If condition does not handle this.

       

      I would also suggest lowering the logging level on some of the messages in setArgs().  Even when the options are not set in the schema definition, the defaults are causing the "warning" messages to be displayed.  At best, these are informational, but, I don't find them particularly useful when the defaults or the specified values match the "required" settings.

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            tdavid7 Tom Davidson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: