Re: Faceting within one document

2009-10-29 Thread Lance Norskog
Sorry, forgot that part. On Thu, Oct 29, 2009 at 1:37 PM, Andrew Clegg wrote: > > Actually Avlesh pointed me at that, earlier in the thread. But thanks :-) > > > Yonik Seeley-2 wrote: >> >> On Wed, Oct 28, 2009 at 2:02 PM, Andrew Clegg >> wrote: >>> If I give a query that matches a single docume

Re: Faceting within one document

2009-10-29 Thread Andrew Clegg
Actually Avlesh pointed me at that, earlier in the thread. But thanks :-) Yonik Seeley-2 wrote: > > On Wed, Oct 28, 2009 at 2:02 PM, Andrew Clegg > 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 whi

Re: Faceting within one document

2009-10-29 Thread Yonik Seeley
On Wed, Oct 28, 2009 at 2:02 PM, Andrew Clegg 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 >

Re: Faceting within one document

2009-10-29 Thread Andrew Clegg
Are you sure? I've *never* explicitly deleted a document, I only ever rebuild the entire index with the data import handler's "full import with cleaning" operation. Lance Norskog-2 wrote: > > 0-value facets are left behind by docs which you have deleted. If you > optimize, there should be no 0

Re: Faceting within one document

2009-10-29 Thread Lance Norskog
0-value facets are left behind by docs which you have deleted. If you optimize, there should be no 0-value facets. On Wed, Oct 28, 2009 at 11:36 AM, Andrew Clegg wrote: > > > Isn't the TermVectorComponent more for one document at a time, and the > TermsComponent for the whole index? > > Actually

Re: Faceting within one document

2009-10-28 Thread Andrew Clegg
Isn't the TermVectorComponent more for one document at a time, and the TermsComponent for the whole index? Actually -- having done some digging... What I'm really after is the most informative terms in a given document, which should take into account global document frequency as well as term fre

Re: Faceting within one document

2009-10-28 Thread Avlesh Singh
For facets - http://wiki.apache.org/solr/SimpleFacetParameters#facet.mincount For terms - http://wiki.apache.org/solr/TermsComponent Helps? Cheers Avlesh On Wed, Oct 28, 2009 at 11:32 PM, Andrew Clegg wrote: > > Hi, > > If I give a query that matches a single document, and facet on a particular