title: Elasticsearch find documents by another document
body: <p>I want to search documents in elasticsearch which have exactly same fields as the given document of id docId. For e.g. user calls the api with a docId, I want to filter docs such that all the docs returned fulfills some parameters in docId. </p>
  
  <p>For example can I query Elasticsearch like this:</p>
  
  <pre><code>POST similarTerms/_search
  {
      "fields": [
         "_id", "title"
      ]   ,
      "filter": {
      "query": {"match": {
         "title": doc[docId].title
      }}
      }, 
      "size": 30
  
  }
  </code></pre>
  
  <p>I know I can fetch the document with docId and then I can prepare the above query, but can I avoid the network hop somehow as even milliseconds of time improvement is of great concern for my app.</p>
  
  <p>Thanks</p>