Class SearchIndexNameMatcher

java.lang.Object
org.opensearch.index.query.SearchIndexNameMatcher
All Implemented Interfaces:
Predicate<String>

public class SearchIndexNameMatcher extends Object implements Predicate<String>
A predicate that checks whether an index pattern matches the current search shard target.
Opensearch.internal:
  • Constructor Details

  • Method Details

    • 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.

      Specified by:
      test in interface Predicate<String>