Search code examples
javaelasticsearchkibana

Display "Seq_no" and "primary_term" in Elastic's response


I am trying to retrieve the "_seq_no" and "_primary_term" from my elastic search cluster, however it is not displaying in Kibana or when I run a search through my Java application. I KNOW there's a setting or param I am missing to get this info back. I've looked around, however I have not been able to find out where I need to make the changes.

Can anyone point me in the right direction?


Solution

  • In Kibana, I just need to include it with the query

    IE

    {
      ...
      ...
      version : true
    }