/** * Adds a script field under the given name with the provided script. * * @param name * The name of the field * @param script * The script */ public SearchSourceBuilder scriptField(String name, Script script) { scriptField(name, script, false); return this; }
searchRequest.source().scriptField(scriptedField.fieldName(), scriptedField.script());
/** * Adds a script based field to load and return. The field does not have to be stored, * but its recommended to use non analyzed or numeric fields. * * @param name The name that will represent this value in the return hit * @param script The script to use */ public SearchRequestBuilder addScriptField(String name, Script script) { sourceBuilder().scriptField(name, script); return this; }
/** * Adds a script field under the given name with the provided script. * * @param name * The name of the field * @param script * The script */ public SearchSourceBuilder scriptField(String name, Script script) { scriptField(name, script, false); return this; }
/** * Adds a script field under the given name with the provided script. * * @param name * The name of the field * @param script * The script */ public SearchSourceBuilder scriptField(String name, Script script) { scriptField(name, script, false); return this; }
/** * Adds a script field under the given name with the provided script. * * @param name * The name of the field * @param script * The script */ public SearchSourceBuilder scriptField(String name, Script script) { scriptField(name, script, false); return this; }
/** * Adds a script based field to load and return. The field does not have to be stored, * but its recommended to use non analyzed or numeric fields. * * @param name The name that will represent this value in the return hit * @param script The script to use */ public SearchRequestBuilder addScriptField(String name, Script script) { sourceBuilder().scriptField(name, script); return this; }
/** * Adds a script based field to load and return. The field does not have to be stored, * but its recommended to use non analyzed or numeric fields. * * @param name The name that will represent this value in the return hit * @param script The script to use */ public TopHitsBuilder addScriptField(String name, Script script) { sourceBuilder().scriptField(name, script); return this; }
/** * Adds a script based field to load and return. The field does not have to be stored, * but its recommended to use non analyzed or numeric fields. * * @param name The name that will represent this value in the return hit * @param script The script to use */ public SearchRequestBuilder addScriptField(String name, Script script) { sourceBuilder().scriptField(name, script); return this; }
/** * Adds a script based field to load and return. The field does not have to be stored, * but its recommended to use non analyzed or numeric fields. * * @param name The name that will represent this value in the return hit * @param script The script to use */ public T addScriptField(String name, Script script) { sourceBuilder().scriptField(name, script); return (T) this; }
/** * Adds a script based field to load and return. The field does not have to be stored, * but its recommended to use non analyzed or numeric fields. * * @param name The name that will represent this value in the return hit * @param script The script to use */ public SearchRequestBuilder addScriptField(String name, Script script) { sourceBuilder().scriptField(name, script); return this; }
/** * Adds a script based field to load and return. The field does not have to be stored, * but its recommended to use non analyzed or numeric fields. * * @param name The name that will represent this value in the return hit * @param script The script to use */ public SearchRequestBuilder addScriptField(String name, Script script) { sourceBuilder().scriptField(name, script); return this; }
public SearchRequestBuilder<JsonInput, JsonOutput> scriptField(String name, String script, Map<String, Object> params) { sourceBuilder().scriptField(name, script, params); return this; }
public SearchRequestBuilder<JsonInput, JsonOutput> scriptField(String name, String script) { sourceBuilder().scriptField(name, script); return this; }
public SearchRequestBuilder<JsonInput, JsonOutput> scriptField(String name, String lang, String script, Map<String, Object> params) { sourceBuilder().scriptField(name, lang, script, params); return this; }
groupSource.scriptField(field.fieldName(), field.script());
searchSourceBuilder.scriptField(scriptedField.fieldName(), scriptedField.script());
groupSource.scriptField(field.fieldName(), field.script());
groupSource.scriptField(field.fieldName(), field.script());
groupSource.scriptField(field.fieldName(), field.script());