lucene-dev mailing list archives

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


Ryan McKinley commented on SOLR-2423:

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

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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message