elasticsearch-gui icon indicating copy to clipboard operation
elasticsearch-gui copied to clipboard

Delete query results

Open JohnBruce opened this issue 9 years ago • 3 comments

Unless I'm missing something, theres no way to delete the results of queries through the UI. You could only do this by running a manual command.

This seems like a pretty powerful feature to have been left out so perhaps maybe its there and just not obvious?

JohnBruce avatar Apr 23 '15 20:04 JohnBruce

You are right, the goal of this tool when I created it was to learn about the data and how the queries work. After that I started doing index maintenance. But it is a good idea and I will think about it.

jettro avatar Apr 24 '15 07:04 jettro

Any more on this even tho this is a very old issue?

blainsmith avatar Apr 27 '16 19:04 blainsmith

Since elasticsearch took out the API, this cannot be done easily. I would have to add scan/scroll functionality. It is certainly doable, but not on the top of my list at the moment.

Deprecated in 1.5.3. "Delete by Query will be removed in 2.0: it is problematic since it silently forces a refresh which can quickly cause OutOfMemoryError during concurrent indexing, and can also cause primary and replica to become inconsistent. Instead, use the scroll/scan API to find all matching ids and then issue a bulk request to delete them..

jettro avatar Apr 28 '16 04:04 jettro