Solr datetime in C#
Sunday 01, February 2015 | Post link
Solr expects date to be in a specific format. While creating an update XML, the following snippet will create a compatible date-time string.
public string GetSolrDate(DateTime d) { return d.ToString("s") + "Z"; }
Categories:
Lucene (1)
Solr (1)
Comments