That’s odd, are you absolutely sure that there’s no indexing going on while the 
optimize is running?

Optimizing only works on the closed segments that exist when the process 
_starts_,
any updates that come in while the optimize is running will result in new 
segments that
are not optimized and if any of the new updates are of docs that exist when the 
optimize
starts, you’ll have deleted docs at the end.

BTW, optimizing is generally unnecessary, be sure you need it. Although 7.7 is 
much
better about some of the consequences than previous versions, see: 
https://lucidworks.com/post/solr-and-optimizing-your-index-take-ii/

If you are not adding docs to the index and still see deleted docs after 
optimizing,
it would be helpful to have the exact steps you use to try to track down

Best,
Erick

> On May 11, 2020, at 2:21 AM, Rajdeep Sahoo <rajdeepsahoo2...@gmail.com> wrote:
> 
> Hi all,
> We are using solr 7.7.2 . After optimization the deleted docs count is
> still showing as part of max docs.
>  As per my knowledge after optimization max docs and num docs count should
> match. It is not happening here.. Is there any way to troubleshoot this.

Reply via email to