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

Shalin Shekhar Mangar commented on SOLR-614:
--------------------------------------------

Ryan -- I re-read the thread several times before posting this. My 
understanding was that the -1 was on changing the solrconfig.xml format now for 
1.3, please correct me if I'm wrong.

IMHO, this patch does _not_ introduce a new format. The format as the user sees 
it, is the same one used in many places in solrconfig.xml right now and becomes 
just a bit more intuitive. The code that developers write to initialize their 
component also uses the _same_ NamedListInitializedPlugin which we are all 
familiar with instead of the clunky XPath stuff. Backwards compatibility is 
retained for both users as well as developers where users can write the old way 
and developers can still use XPath instead of NamedList for initialization and 
it all _just works_. If life is made easy for both users and developers and at 
the same time the changes remain backwards-compatible, I don't see why we 
should be against it.

2.0 remains distant and getting to a Spring integration will take time. IMHO, 
that will be a real support problem when users may complain on discovering that 
they have to write their whole configuration again from scratch, or we provide 
converters which may fail with custom plugins, or even worse where we may need 
to support both the old and new formats. I really like the NamedList structure 
and this issue provides us with the flexibility of having a gradual migration 
path to a more consistent configuration syntax both for the user as well as for 
the plugin developer. Any changes to existing configuration will be made post 
1.3, no changes right now.

With all due respect, I ask you to reconsider.

> 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
>
>
> 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.

Reply via email to