[ https://issues.apache.org/jira/browse/SOLR-1668?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12792298#action_12792298 ]
Erik Hatcher commented on SOLR-1668: ------------------------------------ That's getting warmer, Uri! Good stuff. What I'd ideally like to see, and of course this comes from my view that Ant has the answer to all Java coding roadblocks, is the plugins themselves, say MyCustomTokenizer(Factory) having metadata about its parameters through good ol' setters (or ctor introspection, but setters allow more flexibility). For example, our great friend the <java> task, documented here - http://ant.apache.org/manual/CoreTasks/java.html and it's underlying source code - http://svn.apache.org/repos/asf/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Java.java Notice setters/creators/adders (setX, createY, addZ named methods). Metadata about the type of the parameter is natural... so for example MyCustomTokenFilter that adjusted token text could have a setKeepOriginal(boolean b) method. With this sort of magic, we could generate not only documentation but admin GUIs that could introspect arbitrary plugins and create checkboxes, or drop-down pickers, or file picker, etc. So, again, getting warmer, but it ain't Ant yet ;) > Declarative configuration meta-data for Solr plugins > ---------------------------------------------------- > > Key: SOLR-1668 > URL: https://issues.apache.org/jira/browse/SOLR-1668 > Project: Solr > Issue Type: Improvement > Components: Schema and Analysis > Affects Versions: 1.4 > Reporter: Uri Boness > Priority: Minor > Fix For: 1.5 > > Attachments: commons-beanutils-1.8.2.jar, SOLR-1668.patch > > > The idea here is for plugins in Solr to carry more meta data over their > configuration. This can be very useful for building tools around Solr where > this meta data can be used to assist users in configuring solr. One common > mechanism to provide this meta data is by using standard Java Beans for the > different configuration constructs where the properties define the > configurable attributes and annotations are used to provide extra information > about them. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.