title: How to improve performance when searching by id in Elasticsearch
body: <p>I am using Elasticsearch 5.1.</p>
  
  <p>The cluster consists of 5 nodes and uses 16gb memory.</p>
  
  <p>I store some data in the ES using the document's ID, and retrieve the data through the get request using the ES JAVA Client.</p>
  
  <p>I have tried several tests.</p>
  
  <p>Sometimes the response time is slightly slower.</p>
  
  <p>Perhaps it seems to be late when the first request occurs after not making a get request on that index for some time.</p>
  
  <p>Is there a way to improve performance when retrieving data through the document's ID?</p>