ES 1.x: adapt ping end point
ES 1.x: replace custom_score with script_score inside function_score
ES 1.x: rename filter to post_filter