I am copying date field to string field(schema.xml) using:
<copyField source="mydate" dest="mystr"/>
source and dest types are defined as:
<field name="mydate" type="solr.TrieDateField" indexed="true" stored="true"/>
<field name="mystr" type="solr.TextField" indexed="true" stored="true" multiValued="true"/>
value of mydate is "2009-06-03T00:00:00Z"
I am expecting the same value in mystr, i.e.,"2009-06-03T00:00:00Z", but am getting a date in mystr in a different format. The value I get in mystr is "Wed Jun 03 00:00:00 UTC 2009".
I am running solr in solrcloud mode and have 2 nodes solr cluster. Moreover, this behavior occurs ONLY in solrcloud mode. This is working perfectly if I run solr as a single node.
I am looking for help to get the source date as it is (without format change) into mystr field.
I know I can achieve this by defining a separate string field and set value in DIH, but I am curious to know why the above copy not working as expected.