title: Elasticsearch searching Java API
body: <p>I have got a working query for ElasticSearch, but I have problems to execute the same query with the Java API of ElasticSearch.</p>
  
  <p>How can I express the query below with the Java API of ElasticSearch?</p>
  
  <pre><code>http://localhost:9200/mongoindex/files/_search?q=anyword&amp;fields=file.file
  </code></pre>