diff --git a/solr/core/src/java/org/apache/solr/update/AddUpdateCommand.java b/solr/core/src/java/org/apache/solr/update/AddUpdateCommand.java index 407ad30f2a7..377cb6b92b3 100644 --- a/solr/core/src/java/org/apache/solr/update/AddUpdateCommand.java +++ b/solr/core/src/java/org/apache/solr/update/AddUpdateCommand.java @@ -168,7 +168,6 @@ public class AddUpdateCommand extends UpdateCommand implements Iterable all = flatten(solrDoc); - SchemaField uniq = req.getSchema().getUniqueKeyField(); String idField = getHashableId(); for (SolrInputDocument sdoc : all) {