code: public Index matchIndex(String pattern, IndexMatchHint matchHint) {
          return indexes.matchIndex(pattern, matchHint);
      }
docs: Matches an index for the given pattern and match hint.
  
  @param pattern   the pattern to match an index for. May be either an
  attribute name or an exact index name.
  @param matchHint the match hint.
  @return the matched index or {@code null} if nothing matched.
  @see QueryContext.IndexMatchHint