map code cleanup
fix plugin/before_index  if date is already in solr format

if the date was not in the data publica format, the search
index rebuild fails.