Thanks Alex for your reply. But the field created_date will be updated every time the document inserted to the solr. I want to record the first time the document indexed to solr and I'm using DataImport handler.
And I tried solr.TimestampUpdateProcessorFactory but I got NullPointerException, So I changed it to use default value for the field on the schema <field name="solr_time_stamp" type="tdate" indexed="true" stored="true" multiValued="false" omitNorms="true" termVectors="false" termPositions="false" termOffsets="false" default="NOW" /> but this field contains the last update of the document not the first time the document inserted. Thanks, Mahmoud On Tue, Feb 7, 2017 at 12:10 AM, Alexandre Rafalovitch <arafa...@gmail.com> wrote: > If you are reindexing full documents, there is no way. > > If you are actually doing updates using Solr updates XML/JSON, then > you can have a created_date field with default value of NOW. > Similarly, you could probably do something with UpdateRequestProcessor > chains to get that NOW added somewhere. > > Regards, > Alex. > ---- > http://www.solr-start.com/ - Resources for Solr users, new and experienced > > > On 6 February 2017 at 15:32, Mahmoud Almokadem <prog.mahm...@gmail.com> > wrote: > > Hello, > > > > I'm using dih on solr 6 for indexing data from sql server. The document > can > > br indexed many times according to the updates on it. Is that available > to > > get the first time the document inserted to solr? > > > > And how to get the dates of the document updated? > > > > Thanks for help, > > Mahmoud >