added searchIntoPeriod, upgrade indexMap by Day