Elastic Search
Filter Response
You can use filter_path=hits.hits.fields, aggregations
path parameter to filter specific part of the response, which will reduce data load which contains all unnecessary data
CONDITIONS
WEEK:
Instant Currentdate = Instant.ofEpochMilli(new Date().getTime());
ZonedDateTime zdt = ZonedDateTime.ofInstant(Currentdate, ZoneId.of('Z'));
return zdt.get(IsoFields.WEEK_OF_WEEK_BASED_YEAR);
Day of the Week
"script": "doc['record_created_at'].value.dayOfWeekEnum.getDisplayName(TextStyle.FULL, Locale.ROOT)"
Last updated