lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-3251) dynamically add field to schema
Date Fri, 05 Apr 2013 19:23:16 GMT

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

Yonik Seeley commented on SOLR-3251:
------------------------------------

Steve: one random implementation idea is that we might want to separate schema modification
from schema publishing... say if we want to add more than one field or field type atomically,
or add a whole bunch of fields in a batch just for performance reasons.

One possible way:
{code}
  Schema newSchema = currSchema.shallowCopy();
  newSchema.add(...)
  newSchema.add(...)
  publishNewSchema(newSchema)
{code}

We really only need the schema to be effectively immutable (i.e. you don't change it after
you publish it).  The devil is in the details of course...

                
> dynamically add field to schema
> -------------------------------
>
>                 Key: SOLR-3251
>                 URL: https://issues.apache.org/jira/browse/SOLR-3251
>             Project: Solr
>          Issue Type: New Feature
>            Reporter: Yonik Seeley
>            Assignee: Steve Rowe
>         Attachments: SOLR-3251.patch, SOLR-3251.patch, SOLR-3251.patch
>
>
> One related piece of functionality needed for SOLR-3250 is the ability to dynamically
add a field to the schema.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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