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

Lance Norskog commented on SOLR-464:
------------------------------------

Certain type pairs require configuration control parameters.

The most complex example is converting a Date to an integer for sorting 
purposes. Dates are 64 bits.  To get a usable sorting value requires 
subtracting a base date, earlier than any date used in the index. This gives a 
relative number that fits inside 32 bits and sorts correctly.




> <copyField> requests between dissimilar types should have consistent results
> ----------------------------------------------------------------------------
>
>                 Key: SOLR-464
>                 URL: https://issues.apache.org/jira/browse/SOLR-464
>             Project: Solr
>          Issue Type: Improvement
>          Components: search
>    Affects Versions: 1.3
>         Environment: Any Solr environment
>            Reporter: Lance Norskog
>            Priority: Minor
>
> The <copyField> directive works between certain dissimilar types, but does 
> not work among other types. The directive works between 'sint' and 'integer' 
> types.  However, copying a 'date' field to a 'String' field does not express 
> the date as a string. The directive also fails silently.
> The behaviour of <copyfield> between different types should be consistent. It 
> should either always fail, or always succeed. If the policy is that it should 
> fail in all cases, it should give an error on loading the schema, rather than 
> failing silently.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to