Function score and optional weight : avg score is wrong #8992