lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ning Li" <ning.li...@gmail.com>
Subject Re: [jira] Commented: (LUCENE-847) Factor merge policy out of IndexWriter
Date Thu, 03 May 2007 13:38:29 GMT
> Having the merge policy own segmentInfos sounds kind of hard to me.
> Among other things, there's a lot of code in IndexWriter for managing
> segmentInfos with regards to transactions. I'm pretty wary of touching
> that code. Is there a way around that?

But conceptually, do you agree it's a good idea for MergePolicy to own
segmentInfos?

I know the code for managing segmentInfos w.r.t transactions is hard.
I had to modify it when coding deleteDocuments for IndexWriter. I
wonder, since exceptions are the rare case, can we simply restore
segmentInfos from the last valid segments file? Hopefully it's simple
thus easy to maintain as well. Opinions?

Ning

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message