Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Lucene and all its subprojects:

Switch to Threaded View
Lucene >> mail # dev >> Antw.: Solr 1.4.1 Analysis console gives error regarding CharTermAttributeImpl that is not in the target


Copy link to this message
-
RE: Antw.: Solr 1.4.1 Analysis console gives  error regarding CharTermAttributeImpl that is not in the target
Thanks Uwe,

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?

Tom

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.
---
Uwe Schindler
Generics Policeman
Bremen, Germany

----- 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]>

Hello all,

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?

Tom Burton-West
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
       at org.apache.lucene.util.AttributeSource.copyTo(AttributeSource.java:493)
       at org.apache.jsp.admin.analysis_jsp$1.incrementToken(org.apache.jsp.admin.analysis_jsp:102)
       at org.apache.solr.analysis.PunctuationFilter.incrementToken(PunctuationFilter.java:40)
       at org.apache.jsp.admin.analysis_jsp.getTokens(org.apache.jsp.admin.analysis_jsp:131)
       at org.apache.jsp.admin.analysis_jsp.doAnalyzer(org.apache.jsp.admin.analysis_jsp:110)
       at org.apache.jsp.admin.analysis_jsp._jspService(org.apache.jsp.admin.analysis_jsp:718)

NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB