Depending on how many you deleted it could still be running. You can check
it with the cat merges API. In general the best way to free up space is to
remove whole indexes. This is why people use daily or weekly indexes. Well,
there are other reasons too, but this is a good reason.
The API call you made will make one large segment which will cause you
trouble down the line if you make updates to documents in that segment
because it will rarely be selected for merging. Generally you shouldn't use
the optimize API unless you are done writing to the index.
@nik9000 The problem with my design is, I have fixed number of index and each index has multiple index type. Also each index has some restriction and each can grow up to some size; let's say 1GB. Periodically I check the size if it is greater than GB knock off the data from oldest index type and recheck the size again. Even after removing all the documents from index type size doesn't change.
Right. It is much more efficient to nuke whole indexes to free up space. So if possible, you should think about reworking your stuff to use indexes for time periods rather than types per time period.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.