demo code for twitter based index update strategy