Hi everyone, I am seeking to solution to store some custom data very close to / within index. I have found a possibility to pass commit "user" data to IndexWriter: http://lucene.apache.org/core/3_6_0/api/all/org/apache/lucene/index/IndexWriter.html#commit(java.util.Map) which are from what I understand stored somewhere close to segments "metadata" like index version, generation, ...
Now, I see no easy way to accumulate and pass along such data with Solr 3.6. DirectUpdateHandler2 is committing implicitly via close rather than invoking commit API. I can extend DirectUpdateHander2 and alter closeWriter method but still ... I am not yet clear how to pass along request level params which are not available at DirectUpdateHandler2 level. It seems that passing commitData is not supported ( maybe not wanted to by by design ) and not going to be as when I look at Solr trunk, I see implicit commit removed, writer.commit with passing commitData used but no easy way how to pass custom commit data nor how to easily hook in. Any recommendations for how to store some data close to index? To throw some light why I what this ... Basically I want to store there some kind of time stamp, which defines what is already in the index with respect to feeding updates from external world. Now, my index is replicated to other index instance in different data center (serving traffic as well). When default document feed in DC1 go south for some reason, backup in DC2 bumps in to keep updates alive ... but it has to know from where the feed should start ... that would be that kind of time stamp stored and replicated with index. Many thanks in advance. Best, Jozef