lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ramprakash Ramamoorthy <youngestachie...@gmail.com>
Subject Re: Grouping without block indexing
Date Mon, 25 Feb 2013 06:48:46 GMT
On Fri, Feb 22, 2013 at 12:45 AM, Michael McCandless <
lucene@mikemccandless.com> wrote:

> On Thu, Feb 21, 2013 at 8:23 AM, Ramprakash Ramamoorthy
> <youngestachiever@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-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>


-- 
With Thanks and Regards,
Ramprakash Ramamoorthy,
India,
+91 9626975420

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message