Vidit Asthana <vidit.astha...@gmail.com> wrote:
> My documents don't have anything like timestamp which I can use to fetch
> "only newly added" documents after a certain point. Is there any internal
> field which I can use to create this checkpoint and then later use that to
> fetch "only incremental updates" from that point onwards?

You could have a timestamped field that is auto-set to the time of indexing the 
document:

  <field name="index_time" type="date" default="NOW" />

where date is a solr.DatePointField.


There is a warning in the API about doing that in SolrCloud, so use with care 
or use the TimestampUpdateProcessorFactory that is mentioned:
http://lucene.apache.org/solr/7_2_1/solr-core/org/apache/solr/schema/DatePointField.html


- Toke Eskildsen

Reply via email to