lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (JIRA)" <>
Subject [jira] [Commented] (SOLR-3251) dynamically add field to schema
Date Tue, 16 Apr 2013 03:06:17 GMT


Robert Muir commented on SOLR-3251:

On a normal search-side request, yes. Some things may need the latest schema though... like
a codec provider, perhaps realtime-get, the future code to add new fields on demand (aka type
guessing), etc. 

But my problem is with the API: an IndexSearcher is absolutely the worst place to have a getter
for a moving target: because its all about search.

If for example, realtime-get wants to get the 'latest', it should get it from request.getCore().getCurrentSchema()
(please, name it in such a way that its not confusing).

Otherwise in general things should use request.getSchema(). SolrIndexSearcher should not expose
the schema: there need not be 3 different ways, 2 of which have "current" semantics and one
of which is immutable across the request. And its own internal use of "moving target" should
be carefully contained.

> dynamically add field to schema
> -------------------------------
>                 Key: SOLR-3251
>                 URL:
>             Project: Solr
>          Issue Type: New Feature
>            Reporter: Yonik Seeley
>            Assignee: Steve Rowe
>             Fix For: 4.3
>         Attachments: SOLR-3251.patch, 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:

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

View raw message