bug fix regarding duplicate terms being added to the lucene query

Former-commit-id: d12f68cfe986918f1be438fdb8d4281bcf1dd441
This commit is contained in:
Jeremy Long
2013-03-03 09:50:12 -05:00
parent 0e2d2408ca
commit 4945446171

View File

@@ -261,7 +261,7 @@ public class CPEAnalyzer implements org.owasp.dependencycheck.analyzer.Analyzer
if (searchString == null) {
return ret;
}
TopDocs docs = cpe.search(searchString, MAX_QUERY_RESULTS);
for (ScoreDoc d : docs.scoreDocs) {
Document doc = cpe.getDocument(d.doc);