Hi. I did partly solve this with Solr with faceting but it does not solve the quite normally use feature in db's: num_en_entries = select count distinct(id) from BlogEntry where language='en' num_sv_entries = select count distinct(id) from BlogEntry where language='sv'
it solves however the feature: select count(id),date from BlogEntry group by date I now need this feature elsewhere when parsing accesslogs etc so I am looking into MonetDB, LucidDB and FastBit. Sphinx search seem like they have something like this: http://www.sphinxsearch.com/docs/current.html#clustering Did you ever try a HitCollector ? //Marcus On Wed, Dec 5, 2007 at 1:17 PM, ninaS <nina...@gmx.de> wrote: > > Hey Marcus, > > have you already implemented this feature? > I'm searching a group by function for lucene, too. > > More precisely I need it in Compass, which is built on top of lucene. > > I was thinking about using a HitCollector to get only one result per group. > > How did you do it? > > Cheers, > Nina > > > > Marcus Herou-2 wrote: > > > > Cool. > > > > I'll do since this is a field which I can spend time in. > > > > Kindly > > > > //Marcus > > On 11/5/07, Grant Ingersoll <gsing...@apache.org> wrote: > >> > >> > >> On Nov 5, 2007, at 7:49 AM, Marcus Herou wrote: > >> > >> > Thanks. They seem to have got real far in the dev cycle on this. > >> > Seems like > >> > it will hit the road in Solr 1.3. > >> > > >> > However I would really like this feature to be developed for Core > >> > Lucene, > >> > how do I start that process? > >> > Develop it yourself you would say :) I'm serious isn't it a really > >> > cool and > >> > useful feature ? > >> > >> > >> We're always open to well-thought out and tested patches. See the > >> Wiki for info on contributing. > >> > >> -Grant > >> > >> > >> -------------------------- > >> Grant Ingersoll > >> http://lucene.grantingersoll.com > >> > >> Lucene Boot Camp Training: > >> ApacheCon Atlanta, Nov. 12, 2007. Sign up now! > http://www.apachecon.com > >> > >> Lucene Helpful Hints: > >> http://wiki.apache.org/lucene-java/BasicsOfPerformance > >> http://wiki.apache.org/lucene-java/LuceneFAQ > >> > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > >> For additional commands, e-mail: java-user-h...@lucene.apache.org > >> > >> > > > > > > -- > > Marcus Herou Solution Architect & Core Java developer Tailsweep AB > > +46702561312 > > marcus.he...@tailsweep.com > > http://www.tailsweep.com > > > > > > -- > View this message in context: > http://www.nabble.com/Group-by-in-Lucene---tf4749806.html#a14170395 > Sent from the Lucene - Java Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > > -- Marcus Herou CTO and co-founder Tailsweep AB +46702561312 marcus.he...@tailsweep.com http://www.tailsweep.com/ http://blogg.tailsweep.com/