lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
Subject Re: GROUP BY in Lucene
Date Mon, 10 Aug 2015 12:47:28 GMT
Lucene has a grouping module that has several approaches for grouping
search hits, though it's only by a single field I believe.

Mike McCandless

http://blog.mikemccandless.com


On Sun, Aug 9, 2015 at 2:55 PM, Gimantha Bandara <gimantha@wso2.com> wrote:
> Hi all,
>
> Is there a way to achieve $subject? For example, consider the following SQL
> query.
>
> SELECT A, B, C SUM(D) as E FROM  `table` WHERE time BETWEEN fromDate AND
> toDate *GROUP BY X,Y,Z*
>
> In the above query we can group the records by, X,Y,Z. Is there a way to
> achieve the same in Lucene? (I guess Faceting would help, But is it
> possible get all the categoryPaths along with the matching records? ) Is
> there any other way other than using Facets?
>
> --
> Gimantha Bandara
> Software Engineer
> WSO2. Inc : http://wso2.com
> Mobile : +94714961919

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message