是否有可能写在一个范围查询休眠搜索与above使用其他领域?如果我尝试使用字符串会引发错误:
private BooleanJunction addInCriticalStock(QueryBuilder queryBuilder, BooleanJunction booleanJunction, boolean inCriticalStock) {
return booleanJunction
.must(queryBuilder
.range()
.onField("currentStock")
.above("minimumStock") // This is other field, also "@minimumStock"
.createQuery()
);
}
我一直在搜索问题和休眠文档,但所有示例都带有固定值字段,si,这可能吗?
浮云间
相关分类