On Mon, Apr 27, 2009 at 10:27 PM, Jon Bodner <jbod...@blackboard.com> wrote:

>
> Trying to point multiple Solrs  on multiple boxes at a single shared
> directory is almost certainly doomed to failure; the read-only Solrs won't
> know when the read/write Solr instance has updated the index.
>

I'm solving the same problem while working with index stored in data-grid
and I've just created a data-grid listener which looks for "segments.gen"
file changes and forces Solr to refresh its structures after receiving this
event. You can do the same job with file system index - write some code
which looks at segments.gen file changes and kicks solr when a change is
detected.

It would be great to add such a mechanism to Solr, I mean some abstracted
(via an interface) way to implement index refresh events sources.

Also there's code in SolrCore which checks index existence by looking into
file system and it would be better to abstract that code too. WDYT? I can
provide patches.

-- 
Andrew Klochkov

Reply via email to