I’m using apache lucene for indexing and searching in my application. Everything is working fine and now i’ve to integrate reporting and for that i need aggregate values. I’ve been stuck and couldn’t find a way to use aggregate function in lucene search string like we can use them in HQL very easily!
Any hints or way around to use aggregate function in lucene search string?
Unlike HQL (and SQL), Lucene query syntax does not let you retrieve aggregates. However, you might be interested in a somewhat similar feature called faceting which lets you retrieve category counts for your query .