SOLR子查询结果过滤器

时间:2020-06-01 13:41:24

标签: solr

我有子查询,在其中返回所需的文档 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}}

有什么办法吗?

0 个答案:

没有答案