lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Miller (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-2423) FieldType can take Object rather then String
Date Tue, 29 Mar 2011 12:29:13 GMT

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

Mark Miller commented on SOLR-2423:
-----------------------------------

Hey Ryan - 

It seems you took out (from DocumentBuilder):

{code}
 if (sfield != null && v instanceof Date && sfield.getType() instanceof DateField)
{
   DateField df = (DateField) sfield.getType();
   val = df.toInternal((Date) v) + 'Z';
 }
{code}

And I have code that fails without this...was this logic moved elsewhere?

> FieldType can take Object rather then String
> --------------------------------------------
>
>                 Key: SOLR-2423
>                 URL: https://issues.apache.org/jira/browse/SOLR-2423
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Ryan McKinley
>            Assignee: Ryan McKinley
>             Fix For: 4.0
>
>         Attachments: SOLR-2423-field-object.patch
>
>
> Currently, FieldType takes a String value and converts that to whatever it uses internally
-- it would be great to be able to pass an Object in directly.  For embeded solr, and for
UpdateRequestProcessors that wish to reuse objects in various fields, this will avoid conversion
to and from string.
> This is a major API change, so it should only apply to 4.0

--
This message is automatically generated by JIRA.
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