mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-18 23:34:15 +01:00
bug fix regarding duplicate terms being added to the lucene query
Former-commit-id: d12f68cfe986918f1be438fdb8d4281bcf1dd441
This commit is contained in:
@@ -261,7 +261,7 @@ public class CPEAnalyzer implements org.owasp.dependencycheck.analyzer.Analyzer
|
|||||||
if (searchString == null) {
|
if (searchString == null) {
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
TopDocs docs = cpe.search(searchString, MAX_QUERY_RESULTS);
|
TopDocs docs = cpe.search(searchString, MAX_QUERY_RESULTS);
|
||||||
for (ScoreDoc d : docs.scoreDocs) {
|
for (ScoreDoc d : docs.scoreDocs) {
|
||||||
Document doc = cpe.getDocument(d.doc);
|
Document doc = cpe.getDocument(d.doc);
|
||||||
|
|||||||
Reference in New Issue
Block a user