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

BBoxField doesn't support dynamic fields

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.10.3, 5.0, 6.0
    • Component/s: spatial
    • Labels:
      None

      Description

      The BBoxStrategy in Lucene spatial requires a Lucene FieldType to use for its 4 numeric fields (e.g. configure doc-values, precisionStep, stored, indexed). Solr's FieldType doesn't directly expose a Lucene FieldType, unfortunately, so instead the Solr BBoxField as a hack creates a dummy value of one of the sub-fields corresponding to the suffix. But the sub-field names will also match the dynamic field pattern, assuming the dynamicField ends with a '*'. Furthermore, the sub-fields don't actually get registered with the schema properly in the dynamic field case.

      The end result is that while attempting to get a dummy field value to get the Lucene FieldType, it inadvertently returns the spatial strategy field itself (not the numeric one) and calls createField which results in an IllegalStateException with an error that is pretty confounding.

        Activity

        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 1641522 from David Smiley in branch 'dev/trunk'
        [ https://svn.apache.org/r1641522 ]

        SOLR-6781: Bugfix- BBoxField didn't support dynamic fields.

        Show
        jira-bot ASF subversion and git services added a comment - Commit 1641522 from David Smiley in branch 'dev/trunk' [ https://svn.apache.org/r1641522 ] SOLR-6781 : Bugfix- BBoxField didn't support dynamic fields.
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 1641523 from David Smiley in branch 'dev/branches/branch_5x'
        [ https://svn.apache.org/r1641523 ]

        SOLR-6781: Bugfix- BBoxField didn't support dynamic fields.

        Show
        jira-bot ASF subversion and git services added a comment - Commit 1641523 from David Smiley in branch 'dev/branches/branch_5x' [ https://svn.apache.org/r1641523 ] SOLR-6781 : Bugfix- BBoxField didn't support dynamic fields.
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 1641524 from David Smiley in branch 'dev/branches/lucene_solr_4_10'
        [ https://svn.apache.org/r1641524 ]

        SOLR-6781: Bugfix- BBoxField didn't support dynamic fields.

        Show
        jira-bot ASF subversion and git services added a comment - Commit 1641524 from David Smiley in branch 'dev/branches/lucene_solr_4_10' [ https://svn.apache.org/r1641524 ] SOLR-6781 : Bugfix- BBoxField didn't support dynamic fields.
        Hide
        anshumg Anshum Gupta added a comment -

        Bulk close after 5.0 release.

        Show
        anshumg Anshum Gupta added a comment - Bulk close after 5.0 release.

          People

          • Assignee:
            dsmiley David Smiley
            Reporter:
            dsmiley David Smiley
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development