bug fix regarding duplicate terms being added to the lucene query

Former-commit-id: beee4c78158abc0ffc1087d829ebd2ed747043b0
This commit is contained in:
Jeremy Long
2013-03-03 09:50:12 -05:00
parent 5a5d699cab
commit c7f7324d05

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);