public static void findIndexMatches(SearchPattern pattern,Index index,IndexQueryRequestor requestor,SearchParticipant participant,IJavaSearchScope scope,IProgressMonitor monitor) throws IOException {
  pattern.findIndexMatches(index,requestor,participant,scope,monitor);
}

public static void findIndexMatches ( SearchPattern pattern , Index index , IndexQueryRequestor requestor , SearchParticipant participant , IJavaSearchScope scope , IProgressMonitor monitor ) throws IOException { pattern . findIndexMatches ( index , requestor , participant , scope , monitor ) ; }
query a given index for matching entries . assumes the sender has opened the index and will close when finished .
