Update stats

(Matthias Wilhelm) #1

How can i find out how often documents were updated via the _stats request?

can't find it, so i'm guessing it could be the get.exists_total value of the _stats request since at every update there has to be a request whether the document exists

"get" : {
        "total" : 2059140,
        "time_in_millis" : 408707,
        "exists_total" : 1423198,
        "exists_time_in_millis" : 356269,
        "missing_total" : 635942,
        "missing_time_in_millis" : 52438,
        "current" : 0

Thanks in advance

(Simon Willnauer) #2

you can use this but it might also contain get requests that are coming from an API. There is no stats endpoint that only counts updates.

(Matthias Wilhelm) #3

another way would be comparing the number of indexing.index_total to doc.count, given that i don't delete documents, right?


(Simon Willnauer) #4

you could but those stats might be out of sync if you are actively indexing.

(Matthias Wilhelm) #5

Ok, thanks

So there’s no reliable way to get the number of updates currently, right?


(Simon Willnauer) #6

well you could open an issue and we add it so you get it in the future. WDYT? Maybe you can even open a PR and add it? I am happy to help / guide

(Matthias Wilhelm) #7

i'd be happy to help. a issue is the least i can do. a PR would be a great way to give back to the great software i enjoy working with every day. greatest blocker: lack of time, however, maybe you could give me a quick guide about the stats and how they're harvested?

(Simon Willnauer) #8

sure thing. lets open an issue, paste the link here and we take it from there.

(Matthias Wilhelm) #9

here we go:

(Simon Willnauer) #10

thank you!

(system) #11

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.