Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 opened this issue Mar 28, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

Fixed in rev. 24 - thanks!

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

  • Changed state: Fixed
  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

Issue 10 has been merged into this issue.

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

  • Added labels: ****
  • Removed labels: ****

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant