lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley (JIRA)" <>
Subject [jira] [Commented] (SOLR-3251) dynamically add field to schema
Date Mon, 07 May 2012 15:38:50 GMT


Yonik Seeley commented on SOLR-3251:

bq. a low level implementation detail i would worry about is "snapshoting" the schema for
the duration of a single request .. i suspect there are more then a few places in solr that
would generate weird exceptions if multiple calls to "req.getSchema().getFields()" returned
different things in the middle of processing a single request.

It's good to think about, but I'm not sure it will be a problem in practice.  Adding a new
field shouldn't be an issue for most code.
Removing a field is a different matter... but if a query explicitly references a field (for
example) and then it disappears, having that cause an exception is fine if it would also cause
an exception if the field were missing.

Instead of snapshotting, I think we should think about where fields changing could be a problem
and then harden the code against that.  If it does get too difficult, then we could revisit
schema snapshots.
> dynamically add field to schema
> -------------------------------
>                 Key: SOLR-3251
>                 URL:
>             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:!default.jspa
For more information on JIRA, see:


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

View raw message