[
https://issues.apache.org/jira/browse/LUCENE-2484?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12874002#action_12874002
]
Uwe Schindler commented on LUCENE-2484:
---------------------------------------
So after hours of waiting:
- Lucene Core, Contrib is fine
- Modules fine
- Solr core works
- *Solr carrot2 is broken and this is not fixable!*
Its broken by itsself:
The contrib module for carrot clustering depends on carrot, but carrot itsself
depends on an older version of Lucene! We only have the binary, so we cannot
fix it:
{noformat}
java.lang.NoClassDefFoundError:
org/apache/lucene/analysis/tokenattributes/TermAttribute
at
org.carrot2.text.analysis.ExtendedWhitespaceTokenizer.<init>(ExtendedWhitespaceTokenizer.java:53)
at
org.carrot2.text.analysis.ExtendedWhitespaceAnalyzer.tokenStream(ExtendedWhitespaceAnalyzer.java:28)
at
org.carrot2.text.analysis.ActiveLanguageAnalyzer.tokenStream(ActiveLanguageAnalyzer.java:53)
at org.carrot2.text.preprocessing.Tokenizer.tokenize(Tokenizer.java:171)
at
org.carrot2.text.preprocessing.PreprocessingPipeline.preprocess(PreprocessingPipeline.java:96)
at
org.carrot2.text.preprocessing.PreprocessingPipeline.preprocess(PreprocessingPipeline.java:87)
at
org.carrot2.clustering.lingo.LingoClusteringAlgorithm.process(LingoClusteringAlgorithm.java:155)
at
org.carrot2.core.ControllerUtils.performProcessing(ControllerUtils.java:95)
at
org.carrot2.core.ControllerUtils.performProcessing(ControllerUtils.java:138)
at
org.carrot2.core.CachingController.processInternal(CachingController.java:279)
at
org.carrot2.core.CachingController.process(CachingController.java:224)
at
org.apache.solr.handler.clustering.carrot2.CarrotClusteringEngine.cluster(CarrotClusteringEngine.java:78)
at
org.apache.solr.handler.clustering.ClusteringComponent.process(ClusteringComponent.java:75)
at
org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:195)
at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
at
org.apache.solr.handler.clustering.ClusteringComponentTest.testComponent(ClusteringComponentTest.java:57)
Caused by: java.lang.ClassNotFoundException:
org.apache.lucene.analysis.tokenattributes.TermAttribute
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
{noformat}
We cannot move forward in breaking backwards in trunk, so I suggest to disable
this contrib in trunk! We can only support it if, it moves to Lucene/Solr in
complete and we have the source code in solr's SVN.
Thoughts?
> Remove deprecated TermAttribute from tokenattributes and legacy support in
> indexer
> ----------------------------------------------------------------------------------
>
> Key: LUCENE-2484
> URL: https://issues.apache.org/jira/browse/LUCENE-2484
> Project: Lucene - Java
> Issue Type: Task
> Reporter: Uwe Schindler
> Assignee: Uwe Schindler
> Fix For: 4.0
>
> Attachments: LUCENE-2484.patch
>
>
> The title says it:
> - Remove interface TermAttribute
> - Remove empty fake implementation TermAttributeImpl extends
> CharTermAttributeImpl
> - Remove methods from CharTermAttributeImpl (and indirect from Token)
> - Remove sophisticated® backwards™ Layer in TermsHash*
> - Remove IAE from NumericTokenStream, if TA is available in AS
> - Fix rest of core tests (TestToken)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]