Re: search on field to get distinct values with counts....

2009-03-16 Thread karthik c
> post-processing/filtering of returned facets will work. >>> >>> Otis >>> -- >>> Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch >>> >>> >>> >>> - Original Message >>> >>>> From: karthik c >>>> To: s

Re: search on field to get distinct values with counts....

2009-03-16 Thread Erik Hatcher
AM Subject: search on field to get distinct values with counts Hi, We have a requirement to fetch a set of distinct values of a given field that match the given query. We also need to fetch the number of items associated with each field value. I figured out a way to do this for single-valued

Re: search on field to get distinct values with counts....

2009-03-16 Thread karthik c
utch > > > > - Original Message > > From: karthik c > > To: solr-user@lucene.apache.org > > Sent: Monday, March 16, 2009 2:41:02 AM > > Subject: search on field to get distinct values with counts > > > > Hi, > > > > We have

Re: search on field to get distinct values with counts....

2009-03-16 Thread Otis Gospodnetic
gt; From: karthik c > To: solr-user@lucene.apache.org > Sent: Monday, March 16, 2009 2:41:02 AM > Subject: search on field to get distinct values with counts > > Hi, > > We have a requirement to fetch a set of distinct values of a given field > that match the given

Re: search on field to get distinct values with counts....

2009-03-16 Thread karthik c
Thanks for reading through the long question and providing suggestions Shalin :) You are right about the results being correct. The problem is surely caused because of the approach used. I guess having different type of documents (for movies, for actors, etc.) will help. However with this approac

Re: search on field to get distinct values with counts....

2009-03-16 Thread Shalin Shekhar Mangar
On Mon, Mar 16, 2009 at 12:11 PM, karthik c wrote: > Hi, > > We have a requirement to fetch a set of distinct values of a given field > that match the given query. We also need to fetch the number of items > associated with each field value. I figured out a way to do this for > single-valued fiel

search on field to get distinct values with counts....

2009-03-15 Thread karthik c
Hi, We have a requirement to fetch a set of distinct values of a given field that match the given query. We also need to fetch the number of items associated with each field value. I figured out a way to do this for single-valued fields but am not able to get it to work for multi-valued fields. L