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")
.defaultOperator(And)
.fields(ImmutableList.of("some-title"))
.tieBreaker(1.0D)
.type(TextQueryType.MostFields)).build().bool()._toQuery());
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.
.fields(
ImmutableMap.of(
"title", 15f,
"title-alt", 5f))
Seems no one responding , i noticed similar request.
That also no one responded. So can we not able to get any suggestion from any elastic team experts ? No detailed migration guide for every case i agree but any one share the experience helps a lot.
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.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.