Hi Chantal, why dont you just add another Field to your Index where u put the Day only, you can sort by this filed then in your queries
cheers. -----Ursprüngliche Nachricht----- Von: Chantal Ackermann [mailto:chantal.ackerm...@btelligent.de] Gesendet: Freitag, 9. Juli 2010 11:45 An: solr-user@lucene.apache.org Betreff: Sort by Day - Use of DateMathParser in Function Query? Dear all, this is not a new problem, I just wanted to check whether with 1.4 there might have been changes that allow a different approach. In my query, I retrieve results that have a date field. I have to sort the result by day only, then by a different string field. The time of that date shall not be used for sorting. I cannot filter the results on a certain date (day). This thread confirms my first thought that I need another field in the index: http://search.lucidimagination.com/search/document/422dc30e0a222c28/sorting_dates_with_reduced_precision#46566037750d7b5 However, is it possible to use the DateMathParser somehow in the function queries? If it's not yet possible - why not: (a) is there are great risk that the performance would be bad? Or some other reason that discourages this solution. (b) simple not implemented In case of (b), I might try to implement it. Thanks! Chantal