ElasticSearch Java RESTAPI dout?

Hi Team,
PFA and how to I do in java with dynamic field value and dynamic boolqueries. In this part dynamic values comes from CSV file.

BoolQueries : must, should, mustnot --- it will change user purpose
Queries:---> Query field - values something like that --> hi near team which means spannear query will use.

using Java

Hi!
I'm sorry but I couldn't understand your problem, could you be a little clearer?

Hi ,

did u understand this above picture?

Regards,
Mahendran M

and all these values are doing dynamically. not like we put into the value as Java code.