Sample code for Lucene Near Realtime Feature.