title: Elasticsearch improve query performance
body: <p>I'm trying to improve query performance.  It takes an average of about 3 seconds for simple queries which don't even touch a nested document, and it's sometimes longer.</p>
  
  <pre><code>curl "http://searchbox:9200/global/user/_search?n=0&amp;sort=influence:asc&amp;q=user.name:Bill%20Smith"
  </code></pre>
  
  <p>Even without the sort it takes seconds. Here are the details of the cluster:</p>
  
  <pre><code>1.4TB index size.
  210m documents that aren't nested (About 10kb each)
  500m documents in total. (nested documents are small: 2-5 fields).
  About 128 segments per node.
  3 nodes, m2.4xlarge (-Xmx set to 40g, machine memory is 60g)
  3 shards.
  Index is on amazon EBS volumes.
  Replication 0 (have tried replication 2 with only little improvement)
  </code></pre>
  
  <p>I don't see any noticeable spikes in CPU/memory etc. Any ideas how this could be improved?</p>