开发者

Tracking the Segmentation in Solr

In my application i am adding all the docid in the hash map. But while segmentation happen then docid are getting change... Is there any possibility to track the segmentation ?Because i am having one own function which开发者_如何学Go will recreate hash map according to docids?

now on each commit i am recreating my hash map. so that if i found when segmentation is happen . then i can recreate hash map when segmentation is happened..

So please help me... i am not getting any idea for this... Example :

Docid SEQID

1201 4522

1202 4576

1203 4567

Docid are from lucene ... my need is when segmentation is happen then i need to call my recreatHashMap() so can anyone tell me when Segmentation is called. where i need to keep track.

Advance thanks.


You can delete the single entries from the hashmap, too, to add them with the updated document ids again.

Maybe you have to use ConcurrentHashMap to prevent concurrent modification.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜