public SearchSourceBuilder scriptField(String name,Script script){
  if (scriptFields == null) {
    scriptFields=new ArrayList<>();
  }
  scriptFields.add(new ScriptField(name,script));
  return this;
}

public SearchSourceBuilder scriptField ( String name , Script script ) { if ( scriptFields == null ) { scriptFields = new ArrayList < > ( ) ; } scriptFields . add ( new ScriptField ( name , script ) ) ; return this ; }
adds a script field under the given name with the provided script .
