lucene-dev mailing list archives

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

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

Ryan McKinley commented on SOLR-2423:
-------------------------------------

It is in TrieDateField
{code:java}
    long time = (value instanceof Date) 
      ? ((Date)value).getTime() 
      : super.parseMath(null, value.toString()).getTime();
{code}

Just realized that DateField uses the default createField

I will add a test and fix now

> 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: 3.2, 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