First I appreciate your writeup of the problem, it's very helpful when people take the time to put in the details....
I can't reconcile these two things: {{{<filter class="org.apache.pco.search.orchSynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/> as org.apache.solr.common.SolrException: Error loading class 'pointcross.orchSynonymFilterFactory' at}}} This seems to indicate that your config file is really looking for "pointcross.orchSynonymFilterFactory" rather than "org.apache....pco.search.orchSynonymFilterFactory". Do you perhaps have another definition in your config "pointcross.orchSynonymFilterFactory"? Try running "jar -tfv <your jar file>" to see what classes are actually defined in the file in the solr lib directory. Perhaps it's not what you expect (Perhaps Eclipse did something unexpected). Given the anomaly above (the error reported doesn't correspond to the class you defined) I'd also look to see if you have any old jars lying around that you somehow get to first. Finally, is there any chance that your "pointcross.orchSynonymFilterFactory" is a dependency of "org.apache....pco.search.orchSynonymFilterFactory"? In which case Solr may be finding "org.apache....pco.search.orchSynonymFilterFactory" but failing to load a dependency (that would have to be put in the lib or the jar). Hope that helps Erick On Fri, Apr 22, 2011 at 3:00 AM, rajini maski <rajinima...@gmail.com> wrote: > One doubt regarding adding the solr plugin. > > > I have a new java file created that includes few changes in > SynonymFilterFactory.java. I want this java file to be added to solr > instance. > > I created a package as : org.apache.pco.search > This includes OrcSynonymFilterFactory java class extends > BaseTokenFilterFactory implements ResourceLoaderAware {code.....} > > Packages included: import org.apache.solr.analysis.*; > > import org.apache.lucene.analysis.Token; > import org.apache.lucene.analysis.TokenStream; > import org.apache.solr.common.ResourceLoader; > import org.apache.solr.common.util.StrUtils; > import org.apache.solr.util.plugin.ResourceLoaderAware; > > import java.io.File; > import java.io.IOException; > import java.io.Reader; > import java.io.StringReader; > import java.util.ArrayList; > import java.util.List; > > > I exported this java file in eclipse, > selecting File tab-Export to package > -org.apache.pco.search-OrchSynonymFilterFactory.java > and generated jar file - org.apache.pco.orchSynonymFilterFactory.jar > > This jar file placed in /lib folder of solr home instance > Changes in solr config - <lib dir="./lib" /> > > Now i want to add this in schema fieldtype for synonym filter as > > <filter class="org.apache.pco.search.orchSynonymFilterFactory" > synonyms="synonyms.txt" ignoreCase="true" expand="true"/> > > But i am not able to do it.." It has an error > as org.apache.solr.common.SolrException: Error loading class > 'pointcross.orchSynonymFilterFactory' at > org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:373) > at > org.apache.solr.core.SolrResourceLoader.newInstance(SolrResourceLoader.java:388) > at org.apache.solr.util.plugin.AbstractPluginLoader" > > Please can anyone tell me , What is the mistake i am doing here and the fix > for it ? > > Rajani >