You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Nick Vasilyev <ni...@gmail.com> on 2016/04/15 02:49:25 UTC

JSON Facet Stats Mincount

Hello, I am trying to get a list of items that have more than one
manufacturer using the following json facet query. This works fine without
mincount, but errors out as soon as I add it.

Is this possible or am I doing something wrong?

json.facet={
   groupID: {
      type: terms,
      field: groupID,
      facet:{ y: "unique(mfr)",
                mincount: 2}
       }
}

Error:
"error": { "msg": "expected Map but got 2 ,path=facet/groupID", "code": 400
}

Thanks in advance