lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Никита Веневитин <venevitinnik...@gmail.com>
Subject Fwd: Excluding filter queries in json facet
Date Fri, 21 Oct 2016 09:41:00 GMT
Hello! I've got problem with excluding filter query when using json facet
api.
My query:

q=*
fq={!tag=fieldA} fieldA:"valueA"
fq={!tag=fieldB} fieldB:"valueB"


and there is no documents with fieldA:"valueA" and fieldB:"valueB",
so docs list is empty.
Then, if I use

facet=true&facet.field={!ex=fieldB}fieldB


it works fine: response contains terms with counts not taking second filter
query
into account, but if I use

json.facet=
{
    "fieldB_facet": {
        "field": "fieldB",
        "mincount": 0,
        "domain": {
            "excludeTags": "fieldB"
        },
        "limit": -1,
        "sort": "index asc",
        "type": "terms"
    }
}

I expect same result, but response contains only

"facets":{ "count":0}}

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message