public Collection<String> simpleMatchToIndexNames(String pattern){
  if (Regex.isSimpleMatchPattern(pattern) == false) {
    return Collections.singletonList(pattern);
  }
  return fieldTypes.simpleMatchToIndexNames(pattern);
}

public Collection < String > simpleMatchToIndexNames ( String pattern ) { if ( Regex . isSimpleMatchPattern ( pattern ) == false ) { return Collections . singletonList ( pattern ) ; } return fieldTypes . simpleMatchToIndexNames ( pattern ) ; }
returns all the fields that match the given pattern . if the pattern is prefixed with a type then the fields will be returned with a type prefix .
