Class SearchIndexNameMatcher

All Implemented Interfaces:

public class SearchIndexNameMatcher extends Object implements Predicate<String>
A predicate that checks whether an index pattern matches the current search shard target.
  • 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>