-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: CharStream not found when creating custom analyzers
PostPosted: Mon Jul 27, 2009 4:21 pm 
Newbie

Joined: Mon Feb 05, 2007 8:29 pm
Posts: 2
I'm attempting to create a custom analyzer using @AnalyzerDef, but when I attempt to start the server I get a ClassNotFoundException for org.apache.lucene.analysis.CharStream. I checked the lucene-core package and it seems to be located at org.apache.lucene.queryparser.CharStream. Is anyone else experiencing this issue? I've looked at both Lucene 2.1.0 and 2.4.1 and they both have it in the queryparser package. Am I just doing something really stupid? The class that is trying to utilize CharStream is SolrAnalyzerBuilder.java


Top
 Profile  
 
 Post subject: Re: CharStream not found when creating custom analyzers
PostPosted: Fri Jul 31, 2009 4:15 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
SolR is being bundled with a repackaging of Lucene core, AFAIK they are mostly compatible but you have probably hit a difference.
When compiling your project make sure to build against the standard Lucene 2.4.1, not some Solr version. Also make sure you don't bundle Solr's with your application at runtime.

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
 Post subject: Re: CharStream not found when creating custom analyzers
PostPosted: Fri Jul 31, 2009 4:27 pm 
Newbie

Joined: Mon Feb 05, 2007 8:29 pm
Posts: 2
Ahh dam. Yea, I have a second webapp on this server that does have solr running. I'll have to move stuff around. Thanks a lot.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.