我有子查询,在其中返回所需的文档
variants
字段
fl = *, variants:[subquery]
variants.q = {!terms f=baseProduct_string v=$row.baseProduct_string}
因此,要求是不要返回variants
字段为空的任何文档
我试图添加带有:variants:[* TO *]
的过滤器查询,并且还试图为此目的使用现存函数,但是我不断得到
"error":{
"metadata":[
"error-class","org.apache.solr.common.SolrException",
"root-error-class","org.apache.solr.common.SolrException"],
"msg":"undefined field: \"variants\"",
"code":400}}
有什么办法吗?