title: Max limit on the number of values I can specify in the ids filter or generally query clause?
body: <p>In elasticsearch what is the max limit to specify the value in the number of values a match can be performed on? I read somewhere that it is 1024 but is also configurable. Is that true? And how does it affect the performance? </p>
  
  <pre><code>curl -XPOST 'localhost:9200/my_index/_search?pretty' -d '{
    "query": {
      "filtered": {
        "filter": {
          "not": {
            "ids": {
              "type": "my_type",
              "values": ["1", "2", "3"]
  }}}}}}'
  </code></pre>
  
  <p>How many values can I specify in this array ? What is the limit? If it is configurable what is the performance impact on increasing the limit? </p>