【发布时间】:2020-08-24 14:08:35
【问题描述】:
我有审核文件
@Document(indexName = "apkreview")
public class ApkReview {
@Id //The unique id
private Long id;
private Long apkId;
private String comment;
private Date commentDate;
//each review is linked to one user
private String appUserId;
@Transient
@JsonProperty
private String username;
//app user stars
private int stars;
private String response;
private Date responseDate;
}
我想按 apkId 统计所有 cmets 不为空的评论
在我的存储库中,我这样做了:
int countByApkIdAndCommentIsNotNull(Long apkId);
我收到了这个错误:
{"status":"ERROR","httpCode":500,"message":"发现非法条件 'IS_NOT_NULL (0): [IsNotNull, NotNull]'.","stackTrace":null}
请问为什么这段代码不起作用?
【问题讨论】:
标签: spring-boot elasticsearch spring-data-elasticsearch