Implement function score on search dsl