Hi,
We have a scenario where we need to sort on Date and Name combination. We
have a Date field of type DateTime and a Name field.

When we try sorting it, then the records are getting sorted based on
Timestamp, but we need to sort only on date part keeping timestamp part
aside.

Here is an example : We need to sort the below 4 values :
2019-07-02 11:12:13Z SANTOSH
2019-07-02 12:12:13Z BALA
2019-07-02 13:13:13Z ANAND
2019-07-02 14:15:13Z CHANDAR

Expected Result is as follows :: 
2019-07-02 12:12:13Z ANAND
2019-07-02 13:13:13Z BALA
2019-07-02 14:15:13Z CHANDAR
2019-07-02 11:12:13Z SANTOSH

Here we would like the sort to consider only the date part of the field and
then use the name field. 
In this way, documents for different dates will appear sorted first by date
(without time) and then by name.

Below are the queries I have on this :
1. How can we achieve the above said scenario (explained in example above)
in Solr 6.2

Any solutions are highly appreciated.

Thank you in advance.








--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Reply via email to