Solr to Elastic

How do I switch from Solr to Elastic a boost based on boosting dates?

{!boost b=recip(ms(NOW/HOUR,%s),3.16e-11,%s,%s)}

I tried the following but I need it to boost newest documents more !

filterFunctionBuilders.add(
new FunctionScoreQueryBuilder.FilterFunctionBuilder(ScoreFunctionBuilders.exponentialDecayFunction(elasticField, new Date().getTime(), scale, 0, .1).setWeight(boost))
);

Please don't post the same thing more than once :slight_smile: