[
https://issues.apache.org/jira/browse/SOLR-614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12617563#action_12617563
]
Hoss Man commented on SOLR-614:
-------------------------------
bq. All the changes are under the skin. There will be no changes to the
configuration or public API. All the components must stick to the old
configuration.So, I hope there is no need to have any confusion
I'm only half certain I understand exactly what's being discussed, so take this
comment with a grain of salt...
Even if the code changes dictate that existing components must still use the
existing config syntax (I assume because it asks for things like
params.get("foo") instead of params.get("@foo") the fact remains that if a
single type of plugin (ie: RequestHandler) *can* support multiple config
syntaxes the potential exists for people to get very confused ... if we make
this change, then someone who is already familiar with the way handlers are
configured won't understand the "/replication" example Noble posted -- likewise
someone new to Solr who sees that "/replication" example config will have a
harder time understanding the 'old' config style for other request handlers.
There is a *lot* of value in maintaining consistency -- even if it's ugly.
Looking ahead two or three moves: adding support for something like this now
would also probably make it that much harder to write a "converter" for
existing solr config files if/when we switch to Spring or some other Java
object wiring/configuration system. It's a minor problem, but it has occurred
to me.
> Allow components to read any kind of XML from solrconfig
> --------------------------------------------------------
>
> Key: SOLR-614
> URL: https://issues.apache.org/jira/browse/SOLR-614
> Project: Solr
> Issue Type: Improvement
> Affects Versions: 1.3
> Reporter: Noble Paul
> Assignee: Shalin Shekhar Mangar
> Priority: Trivial
> Fix For: 1.3
>
> Attachments: SOLR-614.patch, SOLR-614.patch, SOLR-614.patch,
> SOLR-614.patch
>
>
> All the components initialized by Solr have an init(NamedList args)
> initializer. This leads us to writing the configuration needed for the
> component in the NamedList xml format. People familiar with Solr may know the
> format but most of what is written is noise than information. For users who
> are not familiar w/ the format find it too difficult to understand why they
> have to write it this way. Moreover , it is not a very efficient way to
> configure .
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.