Changeset 6502


Ignore:
Timestamp:
09/18/15 14:58:57 (9 years ago)
Author:
davor.ostojic@oeaw.ac.at
Message:

#792 from clarin
null values is resolved by adding "default" param to solr's schema.xml. String that represents null values is "[missing value]"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vlo/branches/vlo-3.3-oeaw/vlo-importer/src/main/java/eu/clarin/cmdi/vlo/importer/MetadataImporter.java

    r6400 r6502  
    439439        solrDocument.addField("resourceClassOrig", cmdiData.getOriginalResourceType());
    440440       
    441        
    442         //Add missing facets with "null" val
    443         for(String facet: config.getFacetFields()){
    444                 if(!solrDocument.getFieldNames().contains(facet))
    445                         solrDocument.addField(facet, "null");
    446         }
    447        
    448        
     441         
    449442        LOG.debug("Adding document for submission to SOLR: {}", file);
    450443        docs.add(solrDocument);
Note: See TracChangeset for help on using the changeset viewer.