getId

Since Lucene 5.0, every commit (segments_N) writes a unique id. This will return that id