Add the getMaxScore function to Elastica again (looks like it's more recent than what we can accept!