You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2014/11/25 04:44:12 UTC

[jira] [Commented] (SOLR-6781) BBoxField doesn't support dynamic fields

    [ https://issues.apache.org/jira/browse/SOLR-6781?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14224007#comment-14224007 ] 

ASF subversion and git services commented on SOLR-6781:
-------------------------------------------------------

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

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

> BBoxField doesn't support dynamic fields
> ----------------------------------------
>
>                 Key: SOLR-6781
>                 URL: https://issues.apache.org/jira/browse/SOLR-6781
>             Project: Solr
>          Issue Type: Bug
>          Components: spatial
>            Reporter: David Smiley
>            Assignee: David Smiley
>         Attachments: SOLR-6781__Fix_BBoxField_dynamic_field_support.patch
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org