lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher (JIRA)" <>
Subject [jira] Commented: (SOLR-1668) Declarative configuration meta-data for Solr plugins
Date Fri, 18 Dec 2009 02:14:18 GMT


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 - and it's underlying source code -

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,

So, again, getting warmer, but it ain't Ant yet ;)

> Declarative configuration meta-data for Solr plugins
> ----------------------------------------------------
>                 Key: SOLR-1668
>                 URL:
>             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.

View raw message