AnsweredAssumed Answered

equivalent for count and group by

Question asked by aznk on Jan 25, 2007
Is there any equivalent command for SQL count and group by either in Lucene or any language (like templating language for example) ?
I have a sequence of words (in fact property values that have been extracted from a custom aspect) in a template (#assign command) and I need group and count similar words.
For instance, if I have in my sequence : "seq1", "seq2", "seq1"
It would print :
seq1, count = 2
seq2, count = 1
Any idea of how to do this ?