lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron Daubman (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SOLR-4128) multivalued dynamicField matching 'score' causes text response writers to output score as an array
Date Fri, 30 Nov 2012 04:43:57 GMT
Aaron Daubman created SOLR-4128:
-----------------------------------

             Summary: multivalued dynamicField matching 'score' causes text response writers
to output score as an array
                 Key: SOLR-4128
                 URL: https://issues.apache.org/jira/browse/SOLR-4128
             Project: Solr
          Issue Type: Bug
          Components: Response Writers
    Affects Versions: 4.0
         Environment: all
            Reporter: Aaron Daubman
            Priority: Minor


With a schema that includes a dynamic field that matches 'score' (e.g. s* or even just *)
text response writers (json, python, etc...) will return score as an array, e.g.:
"score": [
17.522964
]

For now, a workaround (courtesy of hoss) is adding a non-indexed, non-stored, non-multivalued
'score' field to schema.xml, e.g.:
<field name="score" type="string" indexed="false" stored="false" multiValued="false"/>

Note that this will happen for anybody following the older default schema.xml where "*" was
used to ignore undesired fields (e.g. as mentioned in https://issues.apache.org/jira/browse/SOLR-217?focusedCommentId=12492357&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-12492357
)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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


Mime
View raw message