dummas2008 / luke

Automatically exported from code.google.com/p/luke
0 stars 0 forks source link

Analyzer plugin does not work at all (only with SimpleAnalyzer), as all analyzers is Lucene now take the o.a.l.util.Version param in the ctor #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In Luke 1.0.0, the anylzer plugin currently only works with 
KeywordAnalyzer and SimpleAnalyzer, because all analyzers in Lucene 
Contrib and Core now require an one-arg ctor, that takes 
o.a.l.util.Version. In the configuration an option to set the argument 
value should be provided. As Version is an enum in Lucene 3.0, it should 
be easy to fill an drop down list with Version.values().

The correct ctor for dynmaically loading analyzers should first check for 
an Version ctor and fall back to empty ctor.

Also the width of the term display on the left side in the analyzer plugin 
in zero.

Also the search tab has the same problem, you can specify an arg but it 
then crashes with "analyzer must have zero-arg or (String) constructor. 
Using StandardAnalyzer". But this loops endless, because StandardAnalyzer 
also has no zero-arg ctor.

Original issue reported on code.google.com by uwe.h.schindler on 26 Dec 2009 at 2:47

GoogleCodeExporter commented 8 years ago
Fixed in rev. 24 - thanks!

Original comment by sig...@gmail.com on 18 Jan 2010 at 5:07

GoogleCodeExporter commented 8 years ago
Issue 10 has been merged into this issue.

Original comment by sig...@gmail.com on 8 Feb 2010 at 2:09