make sure empty query gives 0 score