New Java API for 8.x I could not field fields with weight setting in API as MAP
final BoolQuery.Builder expectedBooleanQuery = new BoolQuery.Builder().must(
new Query.Builder().queryString(queryStringQuery -> queryStringQuery.query("water")
In the new API we can see only .fields(ImmutableList.of("all")) allows List of string but how to set same as earlier version like.
It has been less than a day since your initial post and it is a weekend. This forum is manned by volunteers, so it can often take a few days to get an answer. If your question is very specific or around an area limited number of people have experience with it may take longer and it is possible you will not get an answer at all.
If you have not received any response after 2-3 days (excluding weekends) you can up the thread, but remember that there are no SLAs here.