lucene-dev mailing list archives

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


Ryan McKinley updated SOLR-2423:

    Attachment: SOLR-2423-field-object.patch

This patch changes the FieldType (and SchemaField) method signatures to use Object

-  public Fieldable createField(SchemaField field, String externalVal, float boost) {
+  public Fieldable createField(SchemaField field, Object value, float boost) {

It also changes DocumentBuilder to use the Object directly

> FieldType can take Object rather then String
> --------------------------------------------
>                 Key: SOLR-2423
>                 URL:
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: 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:

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

View raw message