On Fri, Feb 22, 2013 at 12:45 AM, Michael McCandless < luc...@mikemccandless.com> wrote:
> On Thu, Feb 21, 2013 at 8:23 AM, Ramprakash Ramamoorthy > <youngestachie...@gmail.com> wrote: > > >> Can you give an example of what you mean by multi-level grouping? > > > > Say for instance, I have indexed a library, with the following fields. > > published_year, language, genre, author and title. > > > > Now my objective would be group by published_year and then by language > and > > then by genre. > > > > The result would be, > > > > 2013 > > English > > Thriller > > Thriller A > > Thriller B > > Thriller C > > Romance > > Romance A > > Romance B > > Spanish > > Thriller > > Thriller A > > Comedy > > Comedy A > > Comedy B > > 2012 > > ..... > > ..... > > .... > > .... > > > > > > and so on. > > > > Hope I am clear? Thanks. > > OK that makes sense, thanks. > > Lucene's grouping module can't do this today, I believe, but there are > some discussions here: > > https://issues.apache.org/jira/browse/SOLR-2526 > > about how one might go about doing so. Basically you'd need to make a > tuple value of (published_year, language, genre) and have that be your > group key. > Thank you Mike. Will update here once I am upto something, in this aspect. > > Mike McCandless > > http://blog.mikemccandless.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > > -- With Thanks and Regards, Ramprakash Ramamoorthy, India, +91 9626975420