How to clear cache of keyword field in elastic search?

Hi ,

I am facing cache issue with keyword field in Elastic. I have a document with keyword field which is indexed with some value example : abc later the same document is reindexed again with some value abcd, old value still present in aggregation. How to remove the old value abc with count as zero from aggregation.

Can someone help me how to clear aggregation cache?

I have used clear cache API on fields and on index as well which seems not working

Hi @Bhavyagc

You will need to show an example as that does not sound like correct behavior...

Perhaps the document is not really being updated, but adding another document.

Can you show some repeatable code / example?

1 Like