On Wed, Oct 28, 2009 at 2:02 PM, Andrew Clegg <andrew.cl...@gmail.com> wrote:
> If I give a query that matches a single document, and facet on a particular
> field, I get a list of all the terms in that field which appear in that
> document.
>
> (I also get some with a count of zero, I don't really understand where they
> come from... ?)

By default, solr has a facet.mincount of zero, so it includes terms
that don't match your set of documents.
Try facet.mincount=1

-Yonik
http://www.lucidimagination.com


> Is it possible with faceting, or a similar mechanism, to get a count of how
> many times each term appears within that document?
>
> This would be really useful for building a list of top keywords within a
> long document, for summarization purposes. I can do it on the client side
> but it'd be nice to know if there's a quicker way.
>
> Thanks!
>
> Andrew.
>
> --
> View this message in context: 
> http://www.nabble.com/Faceting-within-one-document-tp26099278p26099278.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>

Reply via email to