public ElasticQueryParserConfiguration ReplaceVisitor <T>(IChainableQueryVisitor visitor, int?newPriority = null) where T : IChainableQueryVisitor { QueryVisitor.ReplaceVisitor <T>(visitor, newPriority); AggregationVisitor.ReplaceVisitor <T>(visitor, newPriority); SortVisitor.ReplaceVisitor <T>(visitor, newPriority); return(this); }