title: Elasticsearch query on a specific index
body: <p>I have already searching this since 2 days now. I use the sense chrome plugin to be able to test my queries but I don't find how to specify on which index he is supposed to search. So my queries search on all the indexes and it isn't easy to use.</p>
  
  <p>I have try the following syntaxes:</p>
  
  <pre><code>GET _search
  {
      "query": {
          "term": {
             "_index": {
                "value": "dev_events2"
             }
          }
      }
  
  }
  
  GET _search
  {
      "_index": "dev_events2",
      "query": {
          "match_all" : {  }
      }
  
  }
  
  GET _search
  {
      "index": "dev_events2",
      "query": {
          "match_all" : {  }
      }
  
  }
  </code></pre>
  
  <p>Regards,</p>
  
  <p>Benjamin V.</p>
  
  <hr>
  
  <p>Edit I finally have found the answer: just add the index name into the url for the get: localhost:9201/myIndexName</p>