Using elasticsearch for large DS Sorting


I'm using elasticsearch for storing and fetching sorted data. The data-set
has >1 Million documents of 10 columns and new documents are continuously
indexed by reading .csv files. Problem is that whenever new documents are
indexed then I fire a blank query with the sort to get the sorted primary
keys and then I have to replace all data in my grid view with the new data.
So I was asking if there's a way to get the position/index where the new
documents were inserted so that I can add them directly to their positions
in my grid instead of replacing the complete data set. Also it will save me
cost to fetch ~ 1 Million sorted docs every time 1 or 2 documents are
inserted or deleted from index.

Thanks in advance.

You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
For more options, visit