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 Jamie Johnson <je...@gmail.com> on 2012/05/01 16:47:32 UTC
Solr Facets and doc count for a term
Is there a way to not only get the number of times a term appears for
a particular field (faceting) as well as the number of documents that
were associated with a particular term? So for instance if I had the
following docs
doc1:
field:value
field:value
field2:value2
doc2:
field:value
field2:value3
The facet counts for field would be
value: 3
the facets for field2 would be
value2: 1
value3: 1
I also want to get the doc count back so you'd see the following
value: 2
value2: 1
value3: 1
Is this possible?
Re: Solr Facets and doc count for a term
Posted by Chris Hostetter <ho...@fucit.org>.
: Is there a way to not only get the number of times a term appears for
: a particular field (faceting) as well as the number of documents that
: were associated with a particular term? So for instance if I had the
: following docs
Nope... faceting is associated with _sets_ of documents, so there is no
scoring info associated with each constraint, just the number of documents
in the set (that's what allows it to be very efficient)
-Hoss