Will the elasticsearch input plugin of logstash ensure no repeat reading after restart?

Hello,

If use elasticsearch input plugin of logstash to read data from a elasticsearch index and do some processing. How to ensure it will not read repeated data after the logstash restarted ?