Re: help needed on solr-uima integration

2011-10-27 Thread Koji Sekiguchi

(11/10/27 9:12), Xue-Feng Yang wrote:

Hi,

 From Solr Info page, I can see my solr-uima core is there, but 
updateRequestProcessorChain is not there. What is the reason?


Because UpdateRequestProcessor(and Chain) is not type of SolrInfoMBean.
(As those classes in the page implement SolrInfoMBean, you can see them)

koji
--
Check out Query Log Visualizer for Apache Solr
http://www.rondhuit-demo.com/loganalyzer/loganalyzer.html
http://www.rondhuit.com/en/


Re: help needed on solr-uima integration

2011-10-27 Thread Xue-Feng Yang
Thanks Koji,

I finally found a method not found error in SOLR 3.4. The method 
resolveUpdateChainParam(SolrParams params, org.slf4j.Logger log) is not in the 
class 
org.apache.solr.util.SolrPluginUtils. It was very strange there were no errors 
message. I found the problems after loaded source code to eclipse.


Then I checked both SOLR 4.0 and 3.5. Both have this method and again strange 
to me it is deprecated. When tried 4.0, the number of errors was showed in new 
admin page but no details.

When I tried, I met the following attached errors.

Xue-Feng


message null java.lang.NullPointerException at 
org.apache.solr.uima.processor.SolrUIMAConfigurationReader.readAEOverridingParameters(SolrUIMAConfigurationReader.java:101)
 at 
org.apache.solr.uima.processor.SolrUIMAConfigurationReader.readSolrUIMAConfiguration(SolrUIMAConfigurationReader.java:42)
 at 
org.apache.solr.uima.processor.UIMAUpdateRequestProcessorFactory.getInstance(UIMAUpdateRequestProcessorFactory.java:44)
 at 
org.apache.solr.update.processor.UpdateRequestProcessorChain.createProcessor(UpdateRequestProcessorChain.java:74)
 at 
org.apache.solr.handler.dataimport.DataImportHandler.handleRequestBody(DataImportHandler.java:199)
 at 
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)
 at org.apache.solr.core.SolrCore.execute(SolrCore.java:1369) at 
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:356) 
at 
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:252)
 at
 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
 at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
 at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
 at 
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655) 
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595) 
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98) at 
com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
 at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162) 
at 
org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:330) 
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231) 
at
 
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:174)
 at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:828) at 
com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:725) at 
com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1019) at 
com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
 at 
com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
 at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104) 
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90) 
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79) at 
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
 at 
com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59) 
at com.sun.grizzly.ContextTask.run(ContextTask.java:71) at
 
com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
 at 
com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513) 
at java.lang.Thread.run(Thread.java:662) 



From: Koji Sekiguchi k...@r.email.ne.jp
To: solr-user@lucene.apache.org
Sent: Thursday, October 27, 2011 7:25:09 AM
Subject: Re: help needed on solr-uima integration

(11/10/27 9:12), Xue-Feng Yang wrote:
 Hi,

  From Solr Info page, I can see my solr-uima core is there, but 
updateRequestProcessorChain is not there. What is the reason?

Because UpdateRequestProcessor(and Chain) is not type of SolrInfoMBean.
(As those classes in the page implement SolrInfoMBean, you can see them)

koji
-- 
Check out Query Log Visualizer for Apache Solr
http://www.rondhuit-demo.com/loganalyzer/loganalyzer.html
http://www.rondhuit.com/en/

Re: help needed on solr-uima integration

2011-10-27 Thread Xue-Feng Yang


Thanks Koji,

I finally found a method not found error in SOLR 3.4. The method 
resolveUpdateChainParam(SolrParams params, org.slf4j.Logger log) is not in the 
class 
org.apache.solr.util.SolrPluginUtils. It was very strange there were no errors 
message. I found the problems after loaded source code to eclipse.


Then I checked both SOLR 4.0 and 3.5. Both have this method and again strange 
to me it is deprecated. When tried 4.0, the number of errors was showed in new 
admin page but no details.

When I tried 3.5, I met the following attached errors.

Xue-Feng


message null java.lang.NullPointerException at 
org.apache.solr.uima.processor.SolrUIMAConfigurationReader.readAEOverridingParameters(SolrUIMAConfigurationReader.java:101)
 at 
org.apache.solr.uima.processor.SolrUIMAConfigurationReader.readSolrUIMAConfiguration(SolrUIMAConfigurationReader.java:42)
 at 
org.apache.solr.uima.processor.UIMAUpdateRequestProcessorFactory.getInstance(UIMAUpdateRequestProcessorFactory.java:44)
 at 
org.apache.solr.update.processor.UpdateRequestProcessorChain.createProcessor(UpdateRequestProcessorChain.java:74)
 at 
org.apache.solr.handler.dataimport.DataImportHandler.handleRequestBody(DataImportHandler.java:199)
 at 
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)
 at org.apache.solr.core.SolrCore.execute(SolrCore.java:1369) at 
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:356) 
at 
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:252)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
 at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
 at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
 at 
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655) 
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595) 
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98) at 
com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
 at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162) 
at 
org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:330) 
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231) 
at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:174)
 at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:828) at 
com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:725) at 
com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1019) at 
com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
 at 
com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
 at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104) 
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90) 
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79) at 
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
 at 
com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59) 
at com.sun.grizzly.ContextTask.run(ContextTask.java:71) at
com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
 at 
com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513) 
at java.lang.Thread.run(Thread.java:662) 



From: Koji Sekiguchi k...@r.email.ne.jp
To: solr-user@lucene.apache.org
Sent: Thursday, October 27, 2011 7:25:09 AM
Subject: Re: help needed on solr-uima integration

(11/10/27 9:12), Xue-Feng Yang wrote:
 Hi,

  From Solr Info page, I can see my solr-uima core is there, but 
updateRequestProcessorChain is not there. What is the reason?

Because UpdateRequestProcessor(and Chain) is not type of SolrInfoMBean.
(As those classes in the page implement SolrInfoMBean, you can see them)

koji
-- 
Check out Query Log Visualizer for Apache Solr
http://www.rondhuit-demo.com/loganalyzer/loganalyzer.html
http://www.rondhuit.com/en/

Re: help needed on solr-uima integration

2011-10-26 Thread Xue-Feng Yang
Hi,

Is there logging for uima? From Logging in Solr Admin page, I couldn't find it.


Thanks,

Xue-Feng




From: Xue-Feng Yang just4l...@yahoo.com
To: solr-user@lucene.apache.org solr-user@lucene.apache.org
Sent: Tuesday, October 25, 2011 8:50:05 PM
Subject: Re: help needed on solr-uima integration


I configured solr-uima integration as the resource() I could found, but the 
data import results had empty data from uima. The other fields not from uima 
were there and no error messages. 


The following were the steps I did:

1) set shema.xml with all fields of both uima and non uima.
2) set lib, updateRequestProcessorChain for AE and maps,  requestHandler for 
update, and  DataImportHandler for config and update.processor.


Do I still miss anything?

Thanks,

Xue-Feng




From: Xue-Feng Yang just4l...@yahoo.com
To: solr-user@lucene.apache.org solr-user@lucene.apache.org
Sent: Monday, October 24, 2011 11:21:14 AM
Subject: Re: help needed on solr-uima integration


Thanks Koji. I found it. I should the solution there.

Xue-Feng



From: Koji Sekiguchi k...@r.email.ne.jp
To: solr-user@lucene.apache.org
Sent: Monday, October 24, 2011 7:30:01 AM
Subject: Re: help needed on solr-uima integration

(11/10/24 17:42), Xue-Feng Yang wrote:
 Hi,

 Where can I find test code for
 solr-uima component?

You should find them under:

solr/contrib/uima/src/test

koji
-- 
Check out Query Log Visualizer for Apache Solr
http://www.rondhuit-demo.com/loganalyzer/loganalyzer.html
http://www.rondhuit.com/en/

Re: help needed on solr-uima integration

2011-10-26 Thread Xue-Feng Yang
Hi,

From Solr Info page, I can see my solr-uima core is there, but 
updateRequestProcessorChain is not there. What is the reason?

Thanks,

Xue-Feng





From: Xue-Feng Yang just4l...@yahoo.com
To: solr-user@lucene.apache.org solr-user@lucene.apache.org
Sent: Wednesday, October 26, 2011 7:56:21 PM
Subject: Re: help needed on solr-uima integration

Hi,

Is there logging for uima? From Logging in Solr Admin page, I couldn't find it.


Thanks,

Xue-Feng




From: Xue-Feng Yang just4l...@yahoo.com
To: solr-user@lucene.apache.org solr-user@lucene.apache.org
Sent: Tuesday, October 25, 2011 8:50:05 PM
Subject: Re: help needed on solr-uima integration


I configured solr-uima integration as the resource() I could found, but the 
data import results had empty data from uima. The other fields not from uima 
were there and no error messages. 


The following were the steps I did:

1) set shema.xml with all fields of both uima and non uima.
2) set lib, updateRequestProcessorChain for AE and maps,  requestHandler for 
update, and  DataImportHandler for config and update.processor.


Do I still miss anything?

Thanks,

Xue-Feng




From: Xue-Feng Yang just4l...@yahoo.com
To: solr-user@lucene.apache.org solr-user@lucene.apache.org
Sent: Monday, October 24, 2011 11:21:14 AM
Subject: Re: help needed on solr-uima integration


Thanks Koji. I found it. I should the solution there.

Xue-Feng



From: Koji Sekiguchi k...@r.email.ne.jp
To: solr-user@lucene.apache.org
Sent: Monday, October 24, 2011 7:30:01 AM
Subject: Re: help needed on solr-uima integration

(11/10/24 17:42), Xue-Feng Yang wrote:
 Hi,

 Where can I find test code for
solr-uima component?

You should find them under:

solr/contrib/uima/src/test

koji
-- 
Check out Query Log Visualizer for Apache Solr
http://www.rondhuit-demo.com/loganalyzer/loganalyzer.html
http://www.rondhuit.com/en/

Re: help needed on solr-uima integration

2011-10-25 Thread Xue-Feng Yang
I configured solr-uima integration as the resource() I could found, but the 
data import results had empty data from uima. The other fields not from uima 
were there and no error messages. 


The following were the steps I did:

1) set shema.xml with all fields of both uima and non uima.
2) set lib, updateRequestProcessorChain for AE and maps,  requestHandler for 
update, and  DataImportHandler for config and update.processor.


Do I still miss anything?

Thanks,

Xue-Feng




From: Xue-Feng Yang just4l...@yahoo.com
To: solr-user@lucene.apache.org solr-user@lucene.apache.org
Sent: Monday, October 24, 2011 11:21:14 AM
Subject: Re: help needed on solr-uima integration


Thanks Koji. I found it. I should the solution there.

Xue-Feng



From: Koji Sekiguchi k...@r.email.ne.jp
To: solr-user@lucene.apache.org
Sent: Monday, October 24, 2011 7:30:01 AM
Subject: Re: help needed on solr-uima integration

(11/10/24 17:42), Xue-Feng Yang wrote:
 Hi,

 Where can I find test code for
 solr-uima component?

You should find them under:

solr/contrib/uima/src/test

koji
-- 
Check out Query Log Visualizer for Apache Solr
http://www.rondhuit-demo.com/loganalyzer/loganalyzer.html
http://www.rondhuit.com/en/

Re: help needed on solr-uima integration

2011-10-24 Thread Xue-Feng Yang
Hi,

Where can I find test code for solr-uima component?

Thanks,

Xue-Feng




From: Xue-Feng Yang just4l...@yahoo.com
To: solr-user@lucene.apache.org solr-user@lucene.apache.org
Sent: Sunday, October 23, 2011 3:43:58 AM
Subject: help needed on solr-uima integration

Hi,

After google online, some parts in the puzzle still missing. The best is to 
find a simple example showing the whole process. Is there any example like 
apache-uima/examples/descriptors/tutorial/ex3 RoomNumber and DateTime 
integrated into solr?  In particular, how to feed text into solr for indexing 
which has at least two fields?

Thanks,

Xue-Feng

Re: help needed on solr-uima integration

2011-10-24 Thread Koji Sekiguchi

(11/10/24 17:42), Xue-Feng Yang wrote:

Hi,

Where can I find test code for solr-uima component?


You should find them under:

solr/contrib/uima/src/test

koji
--
Check out Query Log Visualizer for Apache Solr
http://www.rondhuit-demo.com/loganalyzer/loganalyzer.html
http://www.rondhuit.com/en/


Re: help needed on solr-uima integration

2011-10-24 Thread Xue-Feng Yang
Thanks Koji. I found it. I should the solution there.

Xue-Feng




From: Koji Sekiguchi k...@r.email.ne.jp
To: solr-user@lucene.apache.org
Sent: Monday, October 24, 2011 7:30:01 AM
Subject: Re: help needed on solr-uima integration

(11/10/24 17:42), Xue-Feng Yang wrote:
 Hi,

 Where can I find test code for solr-uima component?

You should find them under:

solr/contrib/uima/src/test

koji
-- 
Check out Query Log Visualizer for Apache Solr
http://www.rondhuit-demo.com/loganalyzer/loganalyzer.html
http://www.rondhuit.com/en/

help needed on solr-uima integration

2011-10-23 Thread Xue-Feng Yang
Hi,

After google online, some parts in the puzzle still missing. The best is to 
find a simple example showing the whole process. Is there any example like 
apache-uima/examples/descriptors/tutorial/ex3 RoomNumber and DateTime 
integrated into solr?  In particular, how to feed text into solr for indexing 
which has at least two fields?

Thanks,

Xue-Feng