public UnifiedHighlighter(IndexSearcher indexSearcher,Analyzer indexAnalyzer){
  this.searcher=indexSearcher;
  this.indexAnalyzer=Objects.requireNonNull(indexAnalyzer,"indexAnalyzer is required" + " (even if in some circumstances it isn't used)");
}

public UnifiedHighlighter ( IndexSearcher indexSearcher , Analyzer indexAnalyzer ) { this . searcher = indexSearcher ; this . indexAnalyzer = Objects . requireNonNull ( indexAnalyzer , "indexAnalyzer is required" + " (even if in some circumstances it isn't used)" ) ; }
constructs the highlighter with the given index searcher and analyzer .
