The computed frequency will be for the current set of results (the result of q and fq parameters). Setting facet.mincount=1 will give you only those terms which are present (frequency >= 1) in your results.
On Mon, Aug 18, 2008 at 10:58 AM, Gene Campbell <[EMAIL PROTECTED]> wrote: > OK, more testing seems to say that if i do mincount=1, I only get > facet field values that are actually in the documents > > 'facet_fields':{ > 'title':[ > 'build',1, > 'central',1, > : > : > > for > > > http://localhost:8085/solr/select?q=example.com&wt=python&indent=on&facet=true&facet.field=title&facet.limit=-1&facet.sort=true&facet.mincount=1 > > assuming title is a facetable field. > > please correct if I'm on the wrong track. > > cheers > gene > > > > > On Mon, Aug 18, 2008 at 5:10 PM, Gene Campbell <[EMAIL PROTECTED]> wrote: > > I'm still learning how to use facets with Solr correctly. It seems > > that you get facet counts computed over all docs in your index. > > For example, I tried this on a local index I've built up for testing. > > This index has urls uniquely indexed, so no two docs > > have the same url value. > > > > > http://localhost:8085/solr/select?q=www.example.com&facet=true&facet.field=title&facet.limit=-1&facet.mincount=1 > > > > This returns what seems like facet values for the title field over my > > whole index. What I would like is the the facet value counts > > computed just over the docs returned. Is this possible? > > > > thanks > > gene > > > -- Regards, Shalin Shekhar Mangar.