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 Johannes Goll <jo...@gmail.com> on 2010/12/23 16:11:37 UTC

Solr 1.4.1 stats component count not matching facet count for multi valued field

Hi,

I have a facet field called option which may be multi-valued and
a weight field which is single-valued.

When I use the Solr 1.4.1 stats component with a facet field, i.e.

q=*:*&version=2.2&stats=true&
stats.field=weight&stats.facet=option

I get conflicting results for the stats count result
<long name="count">1</long>

when compared with the faceting counts obtained by

q=*:*&version=2.2&facet=true&facet.field=option

I would expect the same count for either method.

This happens if multiple values are stored in the options field.

It seem that for a multiple values only the last entered value is being
considered in the stats component? What am I doing wrong here?

Thanks,
Johannes

RE: Solr 1.4.1 stats component count not matching facet count for multi valued field

Posted by Jonathan Rochkind <ro...@jhu.edu>.
Aha! Thanks, sorry, I'll clarify on my wiki edit. 
________________________________________
From: Chris Hostetter [hossman_lucene@fucit.org]
Sent: Friday, December 24, 2010 12:11 AM
To: solr-user@lucene.apache.org
Subject: RE: Solr 1.4.1 stats component count not matching facet count for multi valued field

: Interesting, the wiki page on StatsComponent says "multi-valued fields
: may be slow" , and may use lots of memory.
: http://wiki.apache.org/solr/StatsComponent

*stats* over multivalued fields work, but use lots of memory -- that bug
only hits you when you compute stats over any field, that are faceted by a
multivalued field.


-Hoss

RE: Solr 1.4.1 stats component count not matching facet count for multi valued field

Posted by Chris Hostetter <ho...@fucit.org>.
: Interesting, the wiki page on StatsComponent says "multi-valued fields 
: may be slow" , and may use lots of memory. 
: http://wiki.apache.org/solr/StatsComponent

*stats* over multivalued fields work, but use lots of memory -- that bug 
only hits you when you compute stats over any field, that are faceted by a 
multivalued field.


-Hoss

RE: Solr 1.4.1 stats component count not matching facet count for multi valued field

Posted by Jonathan Rochkind <ro...@jhu.edu>.
Interesting, the wiki page on StatsComponent says "multi-valued fields may be slow" , and may use lots of memory. http://wiki.apache.org/solr/StatsComponent

Apparently it should also warn that multi-valued fields may not work at all? I'm going to add that with a link to the JIRA ticket. 
________________________________________
From: Chris Hostetter [hossman_lucene@fucit.org]
Sent: Thursday, December 23, 2010 7:22 PM
To: solr-user@lucene.apache.org
Subject: Re: Solr 1.4.1 stats component count not matching facet count for multi valued field

: I have a facet field called option which may be multi-valued and
: a weight field which is single-valued.
:
: When I use the Solr 1.4.1 stats component with a facet field, i.e.
        ...
: I get conflicting results for the stats count result

a jira search for "solr stats multivalued" would have given you...

https://issues.apache.org/jira/browse/SOLR-1782

-Hoss

Re: Solr 1.4.1 stats component count not matching facet count for multi valued field

Posted by Chris Hostetter <ho...@fucit.org>.
: I have a facet field called option which may be multi-valued and
: a weight field which is single-valued.
: 
: When I use the Solr 1.4.1 stats component with a facet field, i.e.
	...
: I get conflicting results for the stats count result

a jira search for "solr stats multivalued" would have given you...

https://issues.apache.org/jira/browse/SOLR-1782

-Hoss