lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: Facets vs TermV's
Date Wed, 05 May 2010 00:27:47 GMT
: Basically, what is the difference between issuing a facet field query
: that returns facets with counts,
: and a query with term vectors that also returns document frequency
: counts for terms in a field? 

The FacetComponent generates counts that are relative the set of documents 
that match your query, so if you search for "jimbo" and 1034 docs match, 
then your facet counts will tell you how many of those 1034 docs match 
each of the facet constraints.

The TermsComponent generates counts that tell ou about the raw terms in 
the index -- you don't even need to have a search (or a doc set) to use 
the TermsComponent, it just gives you raw data from the index.

(that's why the "/terms" handler in the example Solr 1.4 configs doesn't 
even include the "query" component, and the examples using hte 
TermsComponent never mention a "q" param)

-Hoss


Mime
View raw message