In this code snippet :-
QueryBuilder qb = scriptQuery(
new Script("doc['num1'].value > 1")
);
Located here :- ScriptQuery
I'm getting :- "The method scriptQuery(Script) is undefined for the type App"
I have already imported :-
import org.elasticsearch.script.;
import org.elasticsearch.index.query.ScriptQueryBuilder.;
Is there any other library to import?