Project

General

Profile

« Previous | Next » 

Revision 45468

fixed date format passed to delete by version method

View differences:

modules/dnet-data-provision-services/trunk/src/main/java/eu/dnetlib/index/actors/IndexFeedActorImpl.java
6 6

  
7 7
import eu.dnetlib.clients.index.model.document.IndexDocument;
8 8
import eu.dnetlib.clients.index.utils.IndexFieldUtility;
9
import eu.dnetlib.index.utils.IndexDateUtility;
9 10
import eu.dnetlib.utils.MetadataReference;
10 11
import eu.dnetlib.clients.index.utils.ServiceTools;
11 12
import eu.dnetlib.enabling.tools.DnetStreamSupport;
......
90 91

  
91 92
			cleanMarkedDocuments(indexCollection, dsId);
92 93
			if (feedMode.equals(FeedMode.REFRESH)) {
93
				deleteByVersion(indexCollection, dsId, version);
94
				deleteByVersion(indexCollection, dsId, IndexDateUtility.getParsedDateField(version));
94 95
			}
95 96

  
96 97
			indexCollection.commit();

Also available in: Unified diff