Peter Davis created SOLR-7119:
---------------------------------

             Summary: Tag and exclude local params don't work for interval 
facet as documented
                 Key: SOLR-7119
                 URL: https://issues.apache.org/jira/browse/SOLR-7119
             Project: Solr
          Issue Type: Bug
          Components: faceting
    Affects Versions: 4.10.3
            Reporter: Peter Davis


The documentation for [Faceting - Tagging and Excluding 
Filters|https://cwiki.apache.org/confluence/display/solr/Faceting#Faceting-TaggingandExcludingFilters]
 says _(emphasis mine)_:
bq. Filter exclusion is supported for *all* types of facets.

But using the {{\{!ex}}} local param with an *interval* facet does not work.  
This query returns 0 in `facet_counts.facet_intervals.weight`.

{code}
http://.../select?q=*:*&fq={!tag=weight}weight:[45 TO 
100}&facet=true&facet.interval=weight&facet.interval.set={!ex=weight}[*,45)
{code}

A workaround appears to be to use query facets instead of interval facets.  
This query returns the expected facet count:

{code}
http://.../select?q=*:*&fq={!tag=weight}weight:[45 TO 
100}&facet=true&facet.query={!ex=weight}weight:[* TO 45}
{code}

I want to use this for a _multi-select_ faceting UI.  Some of our facets are 
field or query facets while others are intervals.

At least, it would be helpful if the documentation said which kinds of facets 
this works for.

Looking at the code in {{IntervalFacets.java}}, it appears that {{\{!key}}} is 
the only local param currently supported.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to