add constant_score query; remove some unneeded variables