make else if instead of if
add javadocs for FunctionScoreQueryBuilder