Re: carrot2 clustering component error

2011-02-15 Thread Markus Jelsma
I've seen that before on a 3.1 check out after i compiled the clustering 
component, copied the jars and started Solr. For some reason , recompiling 
didn't work and doing an ant clean in front didn't fix it either. Updating to a 
revision i knew did work also failed.

I just removed the entire checkout and took it back in, repeated my steps and 
it works fine now.

 help me out of this error:
 
   java.lang.NoClassDefFoundError: org/apache/solr/util/plugin/SolrCoreAware


carrot2 clustering component error

2011-02-14 Thread Isha Garg

help me out of this error:

 java.lang.NoClassDefFoundError: org/apache/solr/util/plugin/SolrCoreAware





Carrot2 clustering component

2011-01-18 Thread Isha Garg

Hi,
Can anyone help me to solve the error:
Class org.carrot2.util.pool.SoftUnboundedPool does not implement the 
requested interface org.carrot2.util.pool.IParameterizedPool
at 
org.carrot2.core.PoolingProcessingComponentManager.init(PoolingProcessingComponentManager.java:77)
at 
org.carrot2.core.PoolingProcessingComponentManager.init(PoolingProcessingComponentManager.java:62)
at 
org.carrot2.core.ControllerFactory.create(ControllerFactory.java:158)
at 
org.carrot2.core.ControllerFactory.createPooling(ControllerFactory.java:71)
at 
org.apache.solr.handler.clustering.carrot2.CarrotClusteringEngine.init(CarrotClusteringEngine.java:61)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
Method)
at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at 
org.apache.solr.core.SolrResourceLoader.newInstance(SolrResourceLoader.java:396)
at 
org.apache.solr.handler.clustering.ClusteringComponent.inform(ClusteringComponent.java:121)
at 
org.apache.solr.core.SolrResourceLoader.inform(SolrResourceLoader.java:486)

at org.apache.solr.core.SolrCore.init(SolrCore.java:588)
at 
org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:137)
at 
org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:83)

at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:99)
at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at 
org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:594)

at org.mortbay.jetty.servlet.Context.startContext(Context.java:139)
at 
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218)
at 
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500)
at 
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at 
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
at 
org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:161)
at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at 
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at 
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)

at org.mortbay.jetty.Server.doStart(Server.java:210)
at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)

at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:929)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)
at org.mortbay.start.Main.invokeMain(Main.java:183)
at org.mortbay.start.Main.start(Main.java:497)
at org.mortbay.start.Main.main(Main.java:115)
18 Jan, 2011 6:03:30 PM org.apache.solr.common.SolrException log
SEVERE: java.lang.IncompatibleClassChangeError: Class 
org.carrot2.util.pool.SoftUnboundedPool does not implement the requested 
interface org.carrot2.util.pool.IParameterizedPool
at 
org.carrot2.core.PoolingProcessingComponentManager.init(PoolingProcessingComponentManager.java:77)
at 
org.carrot2.core.PoolingProcessingComponentManager.init(PoolingProcessingComponentManager.java:62)
at 
org.carrot2.core.ControllerFactory.create(ControllerFactory.java:158)
at 
org.carrot2.core.ControllerFactory.createPooling(ControllerFactory.java:71)
at 
org.apache.solr.handler.clustering.carrot2.CarrotClusteringEngine.init(CarrotClusteringEngine.java:61)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
Method)
at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at 
org.apache.solr.core.SolrResourceLoader.newInstance(SolrResourceLoader.java:396)
at 
org.apache.solr.handler.clustering.ClusteringComponent.inform(ClusteringComponent.java:121)
at 
org.apache.solr.core.SolrResourceLoader.inform(SolrResourceLoader.java:486)

at 

Re: Carrot2 clustering component

2011-01-18 Thread Stanislaw Osinski
Hi,

I think the exception is caused by the fact that you're trying to use the
latest version of Carrot2 with Solr 1.4.x. There are two alternative
solutions here:

* as described in http://wiki.apache.org/solr/ClusteringComponent,
invoke ant get-libraries
to get the compatible JAR files.

or

* use the latest version of Carrot2 with Solr 1.4.x by installing the
compatibility package, documentation is here:
http://download.carrot2.org/stable/manual/#section.solr

Cheers,

Staszek


On Tue, Jan 18, 2011 at 13:36, Isha Garg isha.g...@orkash.com wrote:

 Hi,
Can anyone help me to solve the error:
 Class org.carrot2.util.pool.SoftUnboundedPool does not implement the
 requested interface org.carrot2.util.pool.IParameterizedPool
at
 org.carrot2.core.PoolingProcessingComponentManager.init(PoolingProcessingComponentManager.java:77)
at
 org.carrot2.core.PoolingProcessingComponentManager.init(PoolingProcessingComponentManager.java:62)
at org.carrot2.core.ControllerFactory.create(ControllerFactory.java:158)
at
 org.carrot2.core.ControllerFactory.createPooling(ControllerFactory.java:71)
at
 org.apache.solr.handler.clustering.carrot2.CarrotClusteringEngine.init(CarrotClusteringEngine.java:61)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at
 org.apache.solr.core.SolrResourceLoader.newInstance(SolrResourceLoader.java:396)
at
 org.apache.solr.handler.clustering.ClusteringComponent.inform(ClusteringComponent.java:121)
at
 org.apache.solr.core.SolrResourceLoader.inform(SolrResourceLoader.java:486)
at org.apache.solr.core.SolrCore.init(SolrCore.java:588)
at
 org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:137)
at
 org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:83)
at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:99)
at
 org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at
 org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:594)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:139)
at
 org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218)
at
 org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500)
at
 org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
at
 org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at
 org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
at
 org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:161)
at
 org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at
 org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
at
 org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at
 org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)
at org.mortbay.jetty.Server.doStart(Server.java:210)
at
 org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:929)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.mortbay.start.Main.invokeMain(Main.java:183)
at org.mortbay.start.Main.start(Main.java:497)
at org.mortbay.start.Main.main(Main.java:115)
 18 Jan, 2011 6:03:30 PM org.apache.solr.common.SolrException log
 SEVERE: java.lang.IncompatibleClassChangeError: Class
 org.carrot2.util.pool.SoftUnboundedPool does not implement the requested
 interface org.carrot2.util.pool.IParameterizedPool
at
 org.carrot2.core.PoolingProcessingComponentManager.init(PoolingProcessingComponentManager.java:77)
at
 org.carrot2.core.PoolingProcessingComponentManager.init(PoolingProcessingComponentManager.java:62)
at org.carrot2.core.ControllerFactory.create(ControllerFactory.java:158)
at
 org.carrot2.core.ControllerFactory.createPooling(ControllerFactory.java:71)
at
 org.apache.solr.handler.clustering.carrot2.CarrotClusteringEngine.init(CarrotClusteringEngine.java:61)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
 

Carrot2 clustering Component

2011-01-17 Thread Isha Garg

Hi,
  Please tell me how can I get the libraries and plugins for 
carrot2 clustering component in solr1.4.Tell me the site from where i 
can get them.


Thanks!
Isha


Carrot2 clustering component

2011-01-17 Thread Isha Garg

Hi,
   I am not able to understand the caarot2 clustering component from

http://wiki.apache.org/solr/ClusteringComponent

please provide me more detailed information if someone had already worked on 
this. How to run this and use this during search query.


Thanks!
Isha





Re: Carrot2 clustering component

2011-01-17 Thread Otis Gospodnetic
Isha,

You'll get more and better help if you provide more details about what you have 
done, what you have tried, what isn't working, what errors or behaviour you are 
seeing, etc.

Otis

Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch
Lucene ecosystem search :: http://search-lucene.com/



- Original Message 
 From: Isha Garg isha.g...@orkash.com
 To: solr-user@lucene.apache.org
 Sent: Tue, January 18, 2011 12:38:03 AM
 Subject: Carrot2 clustering component
 
 Hi,
I am not able to understand the caarot2 clustering component  from
 
 http://wiki.apache.org/solr/ClusteringComponent
 
 please  provide me more detailed information if someone had already worked on 
this. How  to run this and use this during search  query.
 
 
 Thanks!
 Isha
 
 
 
 


Re: Carrot2 clustering component

2011-01-17 Thread Isha Garg

On Tuesday 18 January 2011 11:12 AM, Otis Gospodnetic wrote:

Isha,

You'll get more and better help if you provide more details about what you have
done, what you have tried, what isn't working, what errors or behaviour you are
seeing, etc.

Otis

Sematext ::http://sematext.com/  :: Solr - Lucene - Nutch
Lucene ecosystem search ::http://search-lucene.com/



- Original Message 
   

From: Isha Gargisha.g...@orkash.com
To:solr-user@lucene.apache.org
Sent: Tue, January 18, 2011 12:38:03 AM
Subject: Carrot2 clustering component

Hi,
I am not able to understand the caarot2 clustering component  from

http://wiki.apache.org/solr/ClusteringComponent

please  provide me more detailed information if someone had already worked on
this. How  to run this and use this during search  query.


Thanks!
Isha




 

I had downloaded some jar files compatible with solr1.4  including:
carrot2-core-3.4.2.jar
guava-r05.jar
hppc-0.3.1.jar
jackson-core-asl-1.5.2.jar
mahout-collections-0.3.jar
jackson-mapper-asl-1.5.2.jar
log4j-1.2.14.jar
mahout-math-0.3.jar
simple-xml-2.3.5.jar
And placed them at contrib/clustering/lib

Then changed the solr.config as:

requestHandler name=standard default=true
 !-- default values for query parameters --
 lst name=defaults
 str name=echoParamsexplicit/str
 !--
 int name=rows10/int
 str name=fl*/str
 str name=version2.1/str
 --
 !--bool name=clusteringtrue/bool--
 str name=clustering.enginedefault/str
 bool name=clustering.resultstrue/bool
 !-- The title field --
 str name=carrot.titleheadin/str
 str name=carrot.urlid/str
 !-- The field to cluster on --
 str name=carrot.snippettext/str
 !-- produce summaries --
 bool name=carrot.produceSummarytrue/bool
 !-- the maximum number of labels per cluster --
 !--int name=carrot.numDescriptions5/int--
 !-- produce sub clusters --
 bool name=carrot.outputSubClustersfalse/bool

 /lst
 arr name=last-components
 strclustering/str
 /arr
 /requestHandler

 searchComponent name=clustering
 !-- Declare an engine --
 lst name=engine
 !-- The name, only one can be named default --
 str name=namedefault/str

 str 
name=carrot.algorithmorg.carrot2.clustering.lingo.LingoClusteringAlgorithm/str
 str name=LingoClusteringAlgorithm.desiredClusterCountBase20/str
 /lst
 lst name=engine
 str name=namestc/str
 str 
name=carrot.algorithmorg.carrot2.clustering.stc.STCClusteringAlgorithm/str
 /lst
 /searchComponent


And then run solr using command:
java -Dsolr.clustering.enabled=true -jar start.jar


Now can you tell me where i am wrong ?? what else should i do?




Re: Carrot2 clustering component

2011-01-17 Thread Otis Gospodnetic
Isha,

Next, you need to run the actual search so Carrot2 has some search results to 
cluster.

Otis

Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch
Lucene ecosystem search :: http://search-lucene.com/



- Original Message 
 From: Isha Garg isha.g...@orkash.com
 To: solr-user@lucene.apache.org
 Sent: Tue, January 18, 2011 1:54:39 AM
 Subject: Re: Carrot2 clustering component
 
 On Tuesday 18 January 2011 11:12 AM, Otis Gospodnetic wrote:
   Isha,
  
  You'll get more and better help if you provide more  details about what you 
have
  done, what you have tried, what isn't  working, what errors or behaviour 
  you 
are
  seeing, etc.
  
   Otis
  
  Sematext ::http://sematext.com/  :: Solr - Lucene - Nutch
   Lucene ecosystem search ::http://search-lucene.com/
  
  
  
  - Original  Message 
 
  From: Isha Gargisha.g...@orkash.com
   To:solr-user@lucene.apache.org
   Sent: Tue, January 18, 2011 12:38:03 AM
  Subject: Carrot2 clustering  component
  
  Hi,
  I am not able  to understand the caarot2 clustering component  from
  
  http://wiki.apache.org/solr/ClusteringComponent
  
  please  provide me more detailed information if someone had  already 
  worked 
on
  this. How  to run this and use this during  search  query.
  
  
  Thanks!
   Isha
  
  
  
  

 I had downloaded some jar files compatible with solr1.4   including:
 carrot2-core-3.4.2.jar
 guava-r05.jar
 hppc-0.3.1.jar
 jackson-core-asl-1.5.2.jar
 mahout-collections-0.3.jar
 jackson-mapper-asl-1.5.2.jar
 log4j-1.2.14.jar
 mahout-math-0.3.jar
 simple-xml-2.3.5.jar
 And  placed them at contrib/clustering/lib
 
 Then changed the solr.config  as:
 
 requestHandler name=standard default=true
  !--  default values for query parameters --
  lst name=defaults
   str name=echoParamsexplicit/str
  !--
  int  name=rows10/int
  str name=fl*/str
  str  name=version2.1/str
  --
  !--bool  name=clusteringtrue/bool--
  str  name=clustering.enginedefault/str
  bool  name=clustering.resultstrue/bool
  !-- The title field  --
  str name=carrot.titleheadin/str
  str  name=carrot.urlid/str
  !-- The field to cluster on  --
  str name=carrot.snippettext/str
  !-- produce  summaries --
  bool  name=carrot.produceSummarytrue/bool
  !-- the maximum number  of labels per cluster --
  !--int  name=carrot.numDescriptions5/int--
  !-- produce sub  clusters --
  bool  name=carrot.outputSubClustersfalse/bool
 
  /lst
   arr name=last-components
  strclustering/str
   /arr
  /requestHandler
 
  searchComponent  name=clustering
  !-- Declare an engine --
  lst  name=engine
  !-- The name, only one can be named default  --
  str name=namedefault/str
 
  str  
name=carrot.algorithmorg.carrot2.clustering.lingo.LingoClusteringAlgorithm/str

   str  name=LingoClusteringAlgorithm.desiredClusterCountBase20/str
   /lst
  lst name=engine
  str  name=namestc/str
  str  
name=carrot.algorithmorg.carrot2.clustering.stc.STCClusteringAlgorithm/str
   /lst
  /searchComponent
 
 
 And then run solr using  command:
 java -Dsolr.clustering.enabled=true -jar start.jar
 
 
 Now  can you tell me where i am wrong ?? what else should i  
do?