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

2009-03-16 Thread karthik c
Thanks Erik... Can we enable highlighting for facet results as well ? I am using Solr's faceting feature to get a unique set of results for the field with counts, so unless highlighting works for facet results, it will not really be useful. karthik c http://cantspellathing.blogspot.com On Mon, M

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

2009-03-16 Thread Erik Hatcher
Perhaps the Highlighting feature will help? You could use that to see which docs have something highlighted for the field in question. Erik On Mar 16, 2009, at 10:12 AM, karthik c wrote: Thanks Otis... What kind of post-processing are u talking about here ? Is there any mechanism i

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

2009-03-16 Thread karthik c
Thanks Otis... What kind of post-processing are u talking about here ? Is there any mechanism in Solr to identify which of the facet results match the query ? karthik c http://cantspellathing.blogspot.com On Mon, Mar 16, 2009 at 6:57 PM, Otis Gospodnetic < otis_gospodne...@yahoo.com> wrote: > >

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

2009-03-16 Thread Otis Gospodnetic
If your searches are simplistic and Shalin's suggestion is not an option for you for some reason, perhaps even something as simple as post-processing/filtering of returned facets will work. Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch - Original Message > From:

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