You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Steve Rowe (JIRA)" <ji...@apache.org> on 2013/02/05 19:30:12 UTC

[jira] [Commented] (SOLR-3251) dynamically add field to schema

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

Steve Rowe commented on SOLR-3251:
----------------------------------

I'm interested in working on this issue.  I'm new to the ways of Solr dev, though, so I'd appreciate assistance in getting things done right.  

{quote}
Thinking a little further about this, building a new schema when it changes (i.e. making schema effectively immutable), might be a good idea too.
For performance reasons, we'd want to share/reuse objects across the different schema instances of course.
{quote}

The DOM for the previous schema could be kept around and compared to the DOM for the new schema, and each object could keep a reference to the DOM node from which it came.  When corresponding DOM nodes compare as equal, then reloading that object isn't necessary.

Keeping the DOM around would also allow for round-tripping comments and whitespace, since those can be stored in the DOM.  To make the new schema's DOM on the node handling the add field request, copy the old DOM, then insert a node for the new field.  On second thought, I think it makes sense for the DOM to be mutable, and not require a full copy on minting a new schema, since otherwise unchanged objects would need to be modified to point to their new DOM node, and objects in the old schema will no longer refer to the old DOM. 

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