On Thu, Feb 21, 2013 at 6:13 PM, Michael McCandless <
luc...@mikemccandless.com> wrote:

> On Thu, Feb 21, 2013 at 6:52 AM, Ramprakash Ramamoorthy
> <youngestachie...@gmail.com> wrote:
> > On Wed, Feb 20, 2013 at 11:11 PM, Michael McCandless <
> > luc...@mikemccandless.com> wrote:
> >
> >> Just use the 2-pass grouping if you can't index your groups as a block
> of
> >> docs.
> >>
> >> See
> >>
> http://lucene.apache.org/core/4_1_0/grouping/org/apache/lucene/search/grouping/package-summary.html
> >> for examples...
> >>
> >
> > Thanks Mike. Just wondering if a multi level grouping is possible. My
> > understanding as on date would be , run the first pass collector for
> every
> > field and then do a second pass for each result combo? Can you throw some
> > light on this please?
>
> 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.

>
> 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

Reply via email to