On Fri, Jan 30, 2009 at 12:27 AM, Gregg Donovan <gregg...@gmail.com> wrote:

> Noble,
>
> Thanks for the suggestion. The unfortunate thing is that we really don't
> know ahead of time what sort of replication delay we're going to encounter
> -- it could be one millisecond or it could be one hour. So, we end up
> needing to do something like:
>
> For delta-import run N:
> 1. query DB slave for "seconds_behind_master", use this to calculate
> Date(N).
> 2. query DB slave for records updated since Date(N - 1)
>
> I see there are plugin points for EventListener classes (onImportStart,
> onImportEnd). Would those be the right spot to calculate these dates so
> that
> I could expose them to my custom function at query time?
>

Unfortunately, the Context object (which carries the context information and
way to pass messages to other components) is not exposed to Evaluator. We
should expose this information to be consistent with other DIH components.

I've opened an issue to track this at
https://issues.apache.org/jira/browse/SOLR-996

-- 
Regards,
Shalin Shekhar Mangar.

Reply via email to