Package org.elasticsearch.index.query
Class SearchIndexNameMatcher
- java.lang.Object
-
- org.elasticsearch.index.query.SearchIndexNameMatcher
-
-
Constructor Summary
Constructors Constructor Description SearchIndexNameMatcher(String indexName, String clusterAlias, ClusterService clusterService)Creates a new index name matcher.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleantest(String pattern)Given an index pattern, checks whether it matches against the current shard.
-
-
-
Constructor Detail
-
SearchIndexNameMatcher
public SearchIndexNameMatcher(String indexName, String clusterAlias, ClusterService clusterService)
Creates a new index name matcher.- Parameters:
indexName- he name of the local index.clusterAlias- the cluster alias of this search shard target. If it is a local target, the alias should be null or equal toRemoteClusterAware.LOCAL_CLUSTER_GROUP_KEY.clusterService- the cluster service.
-
-
Method Detail
-
test
public boolean test(String pattern)
Given an index pattern, checks whether it matches against the current shard. If this shard represents a remote shard target, then in order to match the pattern contain the separator ':', and must match on both the cluster alias and index name.
-
-