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:
Hans Joachim Desserud
2015-01-10 19:52:42 +01:00
parent 9f348cfa16
commit a37853def6

View File

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