Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

NO JIRA: termVectors[NL] local variable rename in TermVectorComponent.process (#2234)

Christine Poerschke7d3683b007c9
diff --git a/solr/core/src/java/org/apache/solr/handler/component/TermVectorComponent.java b/solr/core/src/java/org/apache/solr/handler/component/TermVectorComponent.java
index 5ef1571d403..6373b0a6337 100644
--- a/solr/core/src/java/org/apache/solr/handler/component/TermVectorComponent.java
+++ b/solr/core/src/java/org/apache/solr/handler/component/TermVectorComponent.java
@@ -130,8 +130,8 @@ public class TermVectorComponent extends SearchComponent {
return;
}
- NamedList<Object> termVectors = new NamedList<>();
- rb.rsp.add(TERM_VECTORS, termVectors);
+ NamedList<Object> termVectorsNL = new NamedList<>();
+ rb.rsp.add(TERM_VECTORS, termVectorsNL);
IndexSchema schema = rb.req.getSchema();
SchemaField keyField = schema.getUniqueKeyField();
@@ -236,7 +236,7 @@ public class TermVectorComponent extends SearchComponent {
warnings.add("noPayloads", noPay);
}
if (warnings.size() > 0) {
- termVectors.add(TV_KEY_WARNINGS, warnings);
+ termVectorsNL.add(TV_KEY_WARNINGS, warnings);
}
DocListAndSet listAndSet = rb.getResults();
@@ -268,10 +268,10 @@ public class TermVectorComponent extends SearchComponent {
String uKey = schema.printableUniqueKey(solrDoc);
assert null != uKey;
docNL.add("uniqueKey", uKey);
- termVectors.add(uKey, docNL);
+ termVectorsNL.add(uKey, docNL);
} else {
// support for schemas w/o a unique key,
- termVectors.add("doc-" + docId, docNL);
+ termVectorsNL.add("doc-" + docId, docNL);
}
if (null != fields) {