Re: pluggable functions

2007-09-18 Thread Chris Hostetter
(NOTE: this discussion probably makes more sense on solr-dev. future replies should probably go there, or in SOLR-334.) : The parser is a quick hack I threw together, and any value source : factories should not be exposed to it. It seems like either : 1) a value source factory would expose th

Re: pluggable functions

2007-09-18 Thread Yonik Seeley
On 9/18/07, Jon Pierce <[EMAIL PROTECTED]> wrote: > Reflection could be used to look up and invoke the constructor with > appropriately-typed arguments. If we assume only "primitive" types > and ValueSources are used, I don't think it would be too hard to craft > a drop-in replacement that works w

Re: pluggable functions

2007-09-18 Thread Jon Pierce
On 9/18/07, Tom Hill <[EMAIL PROTECTED]> wrote: > Hi - > > I'm not sure what you mean by a reflection based approach, but I've been > thinking about doing this for a bit, since we needed it, too. Reflection could be used to look up and invoke the constructor with appropriately-typed arguments. If

Re: pluggable functions

2007-09-18 Thread Tom Hill
Hi - I'm not sure what you mean by a reflection based approach, but I've been thinking about doing this for a bit, since we needed it, too. I'd just thought about listing class names in the config file. The functions would probably need to extend a subclass of ValueSource which will handle argume