You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Eduard Zlotnik (JIRA)" <ji...@apache.org> on 2016/12/29 08:03:58 UTC

[jira] [Commented] (SOLR-9904) JSON API facet incorrect counts for specific values when exclusion applied

    [ https://issues.apache.org/jira/browse/SOLR-9904?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15784809#comment-15784809 ] 

Eduard Zlotnik commented on SOLR-9904:
--------------------------------------

Hello.

We have an indexed filed which defined in schema as following :
{code:title=schema definition|theme=FadeToGrey|linenumbers=true|language=html/xml|firstline=0001|collapse=true}
<field name="interaction_sentiment" type="int" indexed="true" stored="true" required="false" multiValued="false" /> 
{code}

The Solr setup is cloud  4 shards collection.
The indexed field  can store one of  of 5 int values : -2,-1,0,1,2
When using the following queries the JSON facet counts are incorrect.

{code:title=query|theme=FadeToGrey|linenumbers=true|language=html/xml|firstline=0001|collapse=true}
q=*:*&fq=content_type:PARENT&rows=0&wt=json&indent=true&fq={!tag=tagForSentiment}interaction_sentiment:2
&json.facet={
	facetForinteraction_sentiment: 
      {
       type : terms, 
       method : dv, 
       field : interaction_sentiment,	   
       excludeTags: tagForSentiment       
  }
}
{code}




> JSON API facet incorrect counts for specific values when exclusion applied
> --------------------------------------------------------------------------
>
>                 Key: SOLR-9904
>                 URL: https://issues.apache.org/jira/browse/SOLR-9904
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: Facet Module
>    Affects Versions: 6.2.1, 6.3
>            Reporter: Eduard Zlotnik
>




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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org