OpenSearch/qa
Simon Willnauer e81804cfa4 Add a shard filter search phase to pre-filter shards based on query rewriting (#25658)
Today if we search across a large amount of shards we hit every shard. Yet, it's quite
common to search across an index pattern for time based indices but filtering will exclude
all results outside a certain time range ie. `now-3d`. While the search can potentially hit
hundreds of shards the majority of the shards might yield 0 results since there is not document
that is within this date range. Kibana for instance does this regularly but used `_field_stats`
to optimize the indexes they need to query. Now with the deprecation of `_field_stats` and it's upcoming removal a single dashboard in kibana can potentially turn into searches hitting hundreds or thousands of shards and that can easily cause search rejections even though the most of the requests are very likely super cheap and only need a query rewriting to early terminate with 0 results.

This change adds a pre-filter phase for searches that can, if the number of shards are higher than a the `pre_filter_shard_size` threshold (defaults to 128 shards), fan out to the shards
and check if the query can potentially match any documents at all. While false positives are possible, a negative response means that no matches are possible. These requests are not subject to rejection and can greatly reduce the number of shards a request needs to hit. The approach here is preferable to the kibana approach with field stats since it correctly handles aliases and uses the correct threadpools to execute these requests. Further it's completely transparent to the user and improves scalability of elasticsearch in general on large clusters.
2017-07-12 22:19:20 +02:00
..
evil-tests Add console appender to deprecated settings test 2017-07-08 07:59:35 -04:00
full-cluster-restart test: avoid NPE 2017-07-04 20:33:02 +02:00
mixed-cluster IndexingIT should check for global checkpoints regardless of master version 2017-07-07 12:55:42 +02:00
multi-cluster-search Add a shard filter search phase to pre-filter shards based on query rewriting (#25658) 2017-07-12 22:19:20 +02:00
no-bootstrap-tests Fix permissions handling on Windows spawner test 2017-04-07 06:25:24 -04:00
reindex-from-old Disable reindex-from-old tests in windows 2017-05-11 17:36:03 -04:00
rolling-upgrade Fix cluster health wait conditions in rolling restart tests 2017-07-06 14:35:07 -04:00
smoke-test-client Tests: Move cluster dependencies from runner to cluster (#24142) 2017-04-17 16:02:46 -07:00
smoke-test-http Migrate RestHttpResponseHeadersIT to ESRestTestCase (#25675) 2017-07-12 21:42:50 +02:00
smoke-test-ingest-disabled Tests: Change rest test extension from .yaml to .yml (#24659) 2017-05-16 17:24:35 -07:00
smoke-test-ingest-with-all-dependencies remove ingest.new_date_format (#25583) 2017-07-10 13:07:50 -07:00
smoke-test-multinode Tests: Change rest test extension from .yaml to .yml (#24659) 2017-05-16 17:24:35 -07:00
smoke-test-plugins Tests: Change rest test extension from .yaml to .yml (#24659) 2017-05-16 17:24:35 -07:00
smoke-test-reindex-with-all-modules test: re-enable `Reindex from remote with parent join field` test no that join field type no longer always emits its fields inside search hits. 2017-07-07 10:18:13 +02:00
smoke-test-tribe-node Tests: Change rest test extension from .yaml to .yml (#24659) 2017-05-16 17:24:35 -07:00
vagrant Use config directory to find jvm.options 2017-07-12 15:29:13 -04:00
verify-version-constants Fix docs lucene version check error message 2017-06-26 15:45:13 -07:00
wildfly Use synchronized Wildfly shutdown 2017-06-12 21:38:58 -04:00