Project

General

Profile

« Previous | Next » 

Revision 8580

include ID field as a minimum for indexing additional fields.

View differences:

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