expungeDeletes is unnecessary, optimize is a superset of expungeDeletes. The key difference is commit=true. I suspect if you’d waited until your indexing process added another doc and committed, you’d have seen the index size drop.
Just to check, you send the command to my_core but talk about collections. Specifying the collection is sufficient, but I’ll assume that’s a typo and you’re really saying my_collection. I agree with Walter like I always do, you shouldn’t be running optimize without some proof that it’s helping. About the only time I think it’s reasonable is when you have a static index, unless you can demonstrate improved performance. The optimize button was removed precisely because it was so tempting. In much earlier versions of Lucene, it made a demonstrable difference so was put front and center. In more recent versions of Solr optimize doesn’t help nearly as much so it was removed. You say you have 38M deleted documents. How many documents total? If this is 50% of your index, that’s one thing. If it’s 5%, it’s certainly not worth the effort. You’re rewriting 466G of index, if you’re not seeing demonstrable performance improvements, that’s a lot of wasted effort… See: https://lucidworks.com/post/solr-and-optimizing-your-index-take-ii/ and the linked article for what happens in pre 7.5 solr versions. Best, Erick > On Dec 1, 2020, at 2:31 PM, Info MatheoSoftware <i...@matheosoftware.com> > wrote: > > Hi All, > > > > I found the solution, I must do : > > curl http://xxxxxxx:8983/solr/my_core/update? > <http://xxxxxxx:8983/solr/my_core/update?optimize=true> > commit=true&expungeDeletes=true > > > > It works fine > > > > Thanks, > > Bruno > > > > > > > > De : Matheo Software [mailto:i...@matheo-software.com] > Envoyé : mardi 1 décembre 2020 13:28 > À : solr-user@lucene.apache.org > Objet : Solr8.7 - How to optmize my index ? > > > > Hi All, > > > > With Solr5.4, I used the UI button but in Solr8.7 UI this button is missing. > > > > So I decide to use the command line: > > curl http://xxxxxxx:8983/solr/my_core/update?optimize=true > > > > My collection my_core exists of course. > > > > The answer of the command line is: > > { > > "responseHeader":{ > > "status":0, > > "QTime":18} > > } > > > > But nothing change. > > I always have 38M deleted docs in my collection and directory size no change > like with solr5.4. > > The size of the collection stay always at : 466.33Go > > > > Could you tell me how can I purge deleted docs ? > > > > Cordialement, Best Regards > > Bruno Mannina > > <http://www.matheo-software.com> www.matheo-software.com > > <http://www.patent-pulse.com> www.patent-pulse.com > > Tél. +33 0 970 738 743 > > Mob. +33 0 634 421 817 > > <https://www.facebook.com/PatentPulse> facebook (1) > <https://twitter.com/matheosoftware> 1425551717 > <https://www.linkedin.com/company/matheo-software> 1425551737 > <https://www.youtube.com/user/MatheoSoftware> 1425551760 > > > > > > _____ > > > <https://www.avast.com/antivirus> Avast logo > > L'absence de virus dans ce courrier électronique a été vérifiée par le > logiciel antivirus Avast. > www.avast.com <https://www.avast.com/antivirus> > > > > > > > > -- > L'absence de virus dans ce courrier électronique a été vérifiée par le > logiciel antivirus Avast. > https://www.avast.com/antivirus