Changed lucene ids to localIDs