Use XConstantScoreQuery instead of ConstantScoreQuery.

Relates to #3167