You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Grant Ingersoll <gs...@apache.org> on 2007/11/08 16:09:17 UTC
Discovering RequestHandler parameters at runtime
Hi,
Is there anyway to interrogate a RequestHandler to discover what
parameters it supports at runtime? Kind of like a BeanInfo for
RequestHandlers? Has anyone else thought about doing this and what it
might look like? Seems like it would be useful for building dynamic
web forms.
Thanks,
Grant
Re: Discovering RequestHandler parameters at runtime
Posted by Chris Hostetter <ho...@fucit.org>.
: > Is there anyway to interrogate a RequestHandler to discover what parameters
: > it supports at runtime? Kind of like a BeanInfo for RequestHandlers? Has
: Also, check:
: http://wiki.apache.org/solr/MakeSolrMoreSelfService
Yeah, that wiki is as far as i ever got. note that it vastly predates a
lot of the LukeRequestHandler type stuff and even the general additude of
moving more towards RequestHandlers as general processing units of solr
for handling all requests (even admin style requests)
Note that while it might be handy to have something like BeanInfo where
the *class* tells you what params it supports, the important feature would
be something where the *instance* tells you what params it supports,
because it won't want to advertise params that it has invariants set for.
(i touch on this in that wiki)
Ultimatley i think it would be good if RequestHandlers implemented a
method that returned a big data structure containing everything they
wanted to "advertise" about themselves. and most of the admin screen and
the "form.jsp" in the current codebase got replaced by a
"FormRequestHandler" that would inspect the SolrCore for a list of all
RequestHandlers that were advertising themselves and create forms for
them.
-Hoss
Re: Discovering RequestHandler parameters at runtime
Posted by Ryan McKinley <ry...@gmail.com>.
Grant Ingersoll wrote:
> Hi,
>
> Is there anyway to interrogate a RequestHandler to discover what
> parameters it supports at runtime? Kind of like a BeanInfo for
> RequestHandlers? Has anyone else thought about doing this and what it
> might look like? Seems like it would be useful for building dynamic web
> forms.
>
currently there is not... I started down that route a while ago, but
got distracted by other things. I think its a good idea.
Also, check:
http://wiki.apache.org/solr/MakeSolrMoreSelfService
ryan