-RE: Antw.: Solr 1.4.1 Analysis console gives error regarding CharTermAttributeImpl that is not in the target
A bug in analysis.jsp is consistent with what I am seeing. I can run explain/debug queries using my filter in the Solr/Lucene 3.x version and it’s clearly working. However I get the error when I try the analysis console. Is this the same issue as SOLR-2051?
From: Uwe Schindler [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 11, 2010 1:49 PM
To: Burton-West, Tom; [EMAIL PROTECTED]
Subject: Antw.: Solr 1.4.1 Analysis console gives error regarding CharTermAttributeImpl that is not in the target
I still think this is a bug in analysis.jsp. Copyto does not work here correctly because it tries to copy a ta to cta.seems that analysis.hap does generate the Target attributesource incorrect.
I will look into this.
----- Reply message -----
Von: "Burton-West, Tom" <[EMAIL PROTECTED]>
Datum: Do., Nov. 11, 2010 19:03
Betreff: Solr 1.4.1 Analysis console gives error regarding CharTermAttributeImpl that is not in the target
An: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
I am using Solr 1.4.1 and a custom filter that worked with a previous version of Solr that used Lucene 2.9. When I try to use the analysis console I get this error message:
java.lang.IllegalArgumentException: This AttributeSource contains AttributeImpl of type org.apache.lucene.analysis.tokenattributes.CharTermAttributeImpl that is not in the target
(See below for stack trace that shows this is an interaction of the custom "punctuation filter" and the Analysis jsp)
I believe this has to do with this JIRA issue: https://issues.apache.org/jira/browse/LUCENE-2302
I looked at the most recent org.apache.lucene.analysis package document http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/lucene/src/java/org/apache/lucene/analysis/package.html?view=co but didn't see a mention of CharTermAttributeImpl
Can someone point me to the documentation or example code that might explain the issue?
Stack trace excerpt:
Caused by: java.lang.IllegalArgumentException: This AttributeSource contains AttributeImpl of type org.apache.lucene.analysis.tokenattributes.CharTermAttributeImpl that is not in the target