On the 2nd question, we do not plan on leveraging this information to
figure out the codec: the codec that should be used to read a segment is
stored separately (also in segment infos).

It is mostly useful for diagnostics purposes. E.g. if we see an interesting
corruption case where checksums match, we can guess that there is a bug
somewhere in Lucene in a version that is between this minimum version and
the version that was used to write the segment.

On Sat, Sep 17, 2022 at 11:07 AM Dawid Weiss <dawid.we...@gmail.com> wrote:

> > (so deleted docs == max docs) and call commit. Will/Can this segment
> still
> > exist after commit?
> >
>
> Depends on your merge policy index deletion policy.  You can configure
> Lucene to keep older commits (and then you'll preserve all historical
> segments).
>
> I don't know the answer to your second question.
>
> D.
>


-- 
Adrien

Reply via email to