lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From RobertV <>
Subject aggregation in lucene
Date Tue, 16 Dec 2008 20:53:18 GMT

Does anyone know how to retrieve aggregated results from lucene? Is is
possible to do something similar to this SQL statement below, which returns
the numbers of books for each author for books published in 2007-2008?

select count(*), author_name
from book
where published_date >= '2007-01-01'
and published_date <= '2008-12-31'
group by author_name

Note: I do NOT want to loop through every document to get these totals. 
Also note the "group by" and I am using two fields (author_name and
published_date) so a simple TermEnum does not cut it.

View this message in context:
Sent from the Lucene - General mailing list archive at

View raw message