Revision 8580
Added by ben leinfelder almost 11 years ago
metacat-index/src/main/java/edu/ucsb/nceas/metacat/index/SolrIndex.java | ||
---|---|---|
422 | 422 |
} |
423 | 423 |
} |
424 | 424 |
|
425 |
// make sure there is an id in the solrdoc so it is added to the index |
|
426 |
if (!doc.hasField(ID)) { |
|
427 |
doc.updateOrAddField(ID, pid.getValue()); |
|
428 |
} |
|
429 |
|
|
425 | 430 |
// insert the whole thing |
426 | 431 |
insertToIndex(doc); |
427 | 432 |
} catch (Exception e) { |
Also available in: Unified diff
include ID field as a minimum for indexing additional fields.