Project

General

Profile

« Previous | Next » 

Revision 8670

include read events when re-indexing obsoleted objects. https://projects.ecoinformatics.org/ecoinfo/issues/6424

View differences:

src/edu/ucsb/nceas/metacat/index/MetacatSolrIndex.java
48 48
import org.dataone.service.exceptions.NotFound;
49 49
import org.dataone.service.exceptions.NotImplemented;
50 50
import org.dataone.service.exceptions.UnsupportedType;
51
import org.dataone.service.types.v1.Event;
51 52
import org.dataone.service.types.v1.Identifier;
52 53
import org.dataone.service.types.v1.Subject;
53 54
import org.dataone.service.types.v1.SystemMetadata;
54 55
import org.xml.sax.SAXException;
55 56

  
56 57
import edu.ucsb.nceas.metacat.DBTransform;
58
import edu.ucsb.nceas.metacat.EventLog;
57 59
import edu.ucsb.nceas.metacat.common.index.IndexTask;
58 60
import edu.ucsb.nceas.metacat.common.query.SolrQueryResponseWriterFactory;
59 61
import edu.ucsb.nceas.metacat.common.query.SolrQueryService;
......
179 181
		if (followRevisions && systemMetadata != null && systemMetadata.getObsoletes() != null) {
180 182
			Identifier obsoletedPid = systemMetadata.getObsoletes();
181 183
			SystemMetadata obsoletedSysMeta = HazelcastService.getInstance().getSystemMetadataMap().get(obsoletedPid);
182
			this.submit(obsoletedPid, obsoletedSysMeta , null, followRevisions);
184
		    Map<String, List<Object>> obsoletedFields = EventLog.getInstance().getIndexFields(obsoletedPid, Event.READ.xmlValue());
185
			this.submit(obsoletedPid, obsoletedSysMeta , obsoletedFields, followRevisions);
183 186
		}
184 187
		
185 188
    }

Also available in: Unified diff