public SynonymQuery build() {Collections.sort(terms, Comparator.comparing(a -> a.term));return new SynonymQuery(terms.toArray(new TermAndBoost[0]), field);}

public SynonymQuery build ( ) { Collections . sort ( terms , Comparator . comparing ( a -> a . term ) ) ; return new SynonymQuery ( terms . toArray ( new TermAndBoost [ 0 ] ) , field ) ; }
public CompositeReaderContext Build(){return (CompositeReaderContext)Build(null, reader, 0, 0);}
