mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-01-14 15:53:36 +01:00
Also StandardAnalyzer can use the Version-less constructor. The superclass Analyzer will actually default to LUCENE_CURRENT which is equivalent with LATEST which was sent in
Former-commit-id: 43c8e3350b72bac8eb952ff138887c7232ecb39c
This commit is contained in:
@@ -88,7 +88,7 @@ public class FieldAnalyzerTest {
|
||||
HashMap<String, Analyzer> map = new HashMap<String, Analyzer>();
|
||||
map.put(field1, searchAnalyzerProduct);
|
||||
map.put(field2, searchAnalyzerVendor);
|
||||
PerFieldAnalyzerWrapper wrapper = new PerFieldAnalyzerWrapper(new StandardAnalyzer(LuceneUtils.CURRENT_VERSION), map);
|
||||
PerFieldAnalyzerWrapper wrapper = new PerFieldAnalyzerWrapper(new StandardAnalyzer(), map);
|
||||
QueryParser parser = new QueryParser(field1, wrapper);
|
||||
|
||||
Query q = parser.parse(querystr);
|
||||
|
||||
Reference in New Issue
Block a user