Before starting work, check the size of the corresponding kernel.
Open terminal 1:
watch -n 10 "du -sh /path to core/data/*"
Open terminal 2 and do:
curl http://hostname:8980/solr/<core>/update?optimize=true
Instead of "kernel", update your own kernel name.
You can see that the size of the kernel will gradually increase by about two times compared with your indexed data and will suddenly decrease. It will take time, depends on your solr data.
For example, 50G indexed data increases by almost 90G and ends to optimize 25G data. And usually for this amount of data it will take 30-45 minutes.
Why doesn't my index directory get smaller (immediately) when deleting documents? force a merger? optimize?
Rameez
source share