elasticsearch/elasticsearch — pull request #4733 by brwe (2014-01-14 21:37:41+00:00)
Title: Previously, the cluster state before flushing was used to check which

types map the given types pattern. However, this state might not be
up to date. Instead use the more recent cluster state from clusterState.state()
This fixes a test failure of PercolatorTests.testDeletePercolatorType

Other changes:

- use BoolFilter instead of OrFilter, because it is faster
- throw exception immediately when no type matching the given patterns
was found in cluster state