How delete document works?


(Felipe Santos) #1

I heard when we delete a document it remains on disks and next queries will filter deleted documents, is it true?


(David Pilato) #2

Segments are immutables so yes technically they are still on the disk until the next merge.


(Kamal) #3

Yes its true, when you issue this command : "GET /_cat/indices?v " on sense , you will see the doc.deleted increases.


(Felipe Santos) #4

So the search performance decreases? Until next merge?


(David Pilato) #5

You should not really notice.


(Michael McCandless) #6

See https://www.elastic.co/blog/lucenes-handling-of-deleted-documents for more details.


(system) #7