SolrServer solrServer = getActiveSolrServer();
try {
SolrQuery query = new SolrQuery("*:*");
query.addFilterQuery(entryTypeField + ":" + METADATA_ENTRY);
query.addFilterQuery(conceptUriField + ":" + ClientUtils.escapeQueryChars(conceptId));
for (SolrDocument result : solrServer.query(query).getResults()) {
// there should be only one (or none: tolerated)
// fetch any old values to update (all metadata fields are assumed to be stored)s
Map<String,Collection<Object>> fieldValues = new HashMap<String,Collection<Object>>();
for (String fieldName : result.getFieldNames()) {
fieldValues.put(fieldName, result.getFieldValues(fieldName));