Fixed search_indexes and added warning for invalid dates