lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Noble Paul നോബിള്‍ नोब्ळ् <noble.p...@gmail.com>
Subject Re: Custom DIH variables
Date Wed, 05 May 2010 17:53:13 GMT
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 <zmanods@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

Mime
View raw message