Re: Questions about Lucene source

2022-12-14 Thread Rahul Goswami
David and Adrien, thanks for your responses. Bringing up an old thread here. Revisiting this question ... > (so deleted docs == max docs) and call commit. Will/Can this segment still > exist after commit? SInce I am using Solr (8.11.1), the default deletion policy is SolrDeletionPolicy which retai

Re: Questions about Lucene source

2022-09-23 Thread Adrien Grand
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 matc

Re: Questions about Lucene source

2022-09-17 Thread Dawid Weiss
> (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 quest

Re: Questions about Lucene source

2022-09-16 Thread Rahul Goswami
Following up on my questions since they didn't get much love the first time. Any inputs are greatly appreciated! Thanks, Rahul On Wed, Sep 14, 2022 at 3:58 PM Rahul Goswami wrote: > Hello, > > I was going through some parts of the Lucene source and had some questions: > 1) Can lucene have 0 doc

Questions about Lucene source

2022-09-14 Thread Rahul Goswami
Hello, I was going through some parts of the Lucene source and had some questions: 1) Can lucene have 0 document segments? Or will they always be purged (either by TMP or otherwise) on a commit? Eg: A segment has 4 docs, and I make a /update call to overwrite all 4 docs (so deleted docs == max doc