Hey, great advice Amit, Jack, and Chris.  It's been a while since I got such
a nice array of options!  My response... yes, Amit, I thought of your way
before posting... I was just thinking, eh, there must be a way in SOLR,
since it was so easy to do the facets.  So I wanted an alternative first
before something that seems fairly ugly.. storing redundant data like that.

Jack, I was thinking of a group.func query, but I was looking for some way
to manipulate a string in some way.  I'm a bit surprised SOLR doesn't
provide this yet either.  I'm sure there's a reason.  The solution you
provided is pretty impressive, and I think I along with a bunch of other
subscribers at the very least appreciate having such a nice working example
of how to do a group.func that way.

Chris, yeah, it's for all of time, but good insight that I appreciate..
facets are a little different, yes.

I think the way I'm going to go for now, since I realize I'm doing a query
sorted by this date anyway, is just detecting day changes in the result set
while iterating through them, and grouping them that way.  Might've wanted
to have SOLR group them if there was a clean n' easy solution, but there
apparently isn't one.

- Scott



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Grouping-by-a-date-field-tp4023318p4023563.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to