public ConstantScoreQuery(Query query){
  this.query=Objects.requireNonNull(query,"Query must not be null");
}

public ConstantScoreQuery ( Query query ) { this . query = Objects . requireNonNull ( query , "Query must not be null" ) ; }
strips off scores from the passed in query . the hits will get a constant score of 1 .
