Support for constant score query

Might need some additions on the testing side.