ok , u can't write a variable. But you may write a function (Evaluator). it will look something like ${dataimporter.functions.foo()}
http://wiki.apache.org/solr/DataImportHandler#Custom_formatting_in_query_and_url_using_Functions On Wed, May 5, 2010 at 9:12 PM, Blargy <zman...@hotmail.com> wrote: > > Thanks Paul, that will certainly work. I was just hoping there was a way I > could write my own class that would inject this value as needed instead of > precomputing this value and then passing it along in the params. > > My specific use case is instead of using dataimporter.last_index_time I want > to use something like dataimporter.updated_time_of_last_document. Our DIH is > set up to use a bunch of slave databases and there have been problems with > some documents getting lost due to replication lag. > > I would prefer to compute this value using a custom variable at runtime > instead of passing it along via the params. Is that even possible? If not > Ill have to go with your previous suggestion. > > Thanks > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Custom-DIH-variables-tp777696p779278.html > Sent from the Solr - User mailing list archive at Nabble.com. > -- ----------------------------------------------------- Noble Paul | Systems Architect| AOL | http://aol.com