static ExpressionConverter<ObjectNode> constantScoreQuery(ObjectMapper mapper, PathNaming pathNaming, Predicate<Path> idPredicate) {
    Objects.requireNonNull(mapper, "expression");
    return expression -> {
      final QueryBuilders.QueryBuilder builder = toBuilder(expression, pathNaming, idPredicate);
      return QueryBuilders.constantScoreQuery(builder).toJson(mapper);
    };
  }
{@code query} part of the JSON
criteria/elasticsearch/src/org/immutables/criteria/elasticsearch/Elasticsearch.java