Revision 8296
Added by Jing Tao about 11 years ago
metacat-index/src/main/java/edu/ucsb/nceas/metacat/index/resourcemap/ResourceMapSubprocessor.java | ||
---|---|---|
58 | 58 |
import org.dataone.cn.indexer.parser.AbstractDocumentSubprocessor; |
59 | 59 |
import org.dataone.cn.indexer.parser.IDocumentSubprocessor; |
60 | 60 |
import org.dataone.cn.indexer.resourcemap.ResourceMap; |
61 |
import org.dataone.cn.indexer.resourcemap.ResourceMapFactory; |
|
61 | 62 |
import org.dataone.cn.indexer.solrhttp.SolrDoc; |
62 | 63 |
import org.dataone.cn.indexer.solrhttp.SolrElementField; |
63 | 64 |
import org.dataone.service.exceptions.NotFound; |
... | ... | |
116 | 117 |
private List<SolrDoc> processResourceMap(SolrDoc indexDocument, Document resourceMapDocument) |
117 | 118 |
throws XPathExpressionException, IOException, SAXException, ParserConfigurationException, EncoderException, SolrServerException, NotImplemented, NotFound, UnsupportedType, OREParserException, ResourceMapException{ |
118 | 119 |
//ResourceMap resourceMap = new ResourceMap(resourceMapDocument); |
119 |
ResourceMap resourceMap = new ResourceMap(resourceMapDocument);
|
|
120 |
ResourceMap resourceMap = ResourceMapFactory.buildResourceMap(resourceMapDocument);
|
|
120 | 121 |
List<String> documentIds = resourceMap.getAllDocumentIDs();//this list includes the resourceMap id itself. |
121 | 122 |
//List<SolrDoc> updateDocuments = getHttpService().getDocuments(getSolrQueryUri(), documentIds); |
122 | 123 |
List<SolrDoc> updateDocuments = getSolrDocs(resourceMap.getIdentifier(), documentIds); |
metacat-index/pom.xml | ||
---|---|---|
45 | 45 |
<dependency> |
46 | 46 |
<groupId>org.dataone</groupId> |
47 | 47 |
<artifactId>d1_cn_index_processor</artifactId> |
48 |
<version>1.1.2</version>
|
|
48 |
<version>1.2.0</version>
|
|
49 | 49 |
<type>jar</type> |
50 | 50 |
<exclusions> |
51 | 51 |
<exclusion> |
Also available in: Unified diff
Use the d1_cn_index_processor 1.2.0 version.