Hello Tommaso, Thank you for your answer.
Yes, I'm using Solr 3.4.0: so what's the right Solr-UIMA module version to use? Or I have to use an earlier version of Solr? Just another question. From what I understood, the Solr-UIMA component should work in the following way: when I submit a set of documents to Solr, it sends them to the UIMA pipeline; then takes the annotated documents and creates the Lucene indexes I can search from through the Solr webapp. Is it right or is there something I'm missing? Thank you again. Inviato da iPhone Il giorno 10/dic/2011, alle ore 14:58, Tommaso Teofili <tommaso.teof...@gmail.com> ha scritto: > Hello Adriana, > > your configuration looks fine to me. > The exception you pasted makes me think you're using a Solr instance at a > certain version (3.4.0) while the Solr-UIMA module jar is at a different > version; I remember there has been a change in the > UpdateRequestProcessorFactory API at some point in time which may cause > this issue. > > Tommaso > > > > 2011/12/7 Adriana Farina <farinaadri...@rocketmail.com> > >> Hello, >> >> >> I'm trying to use the SolrUIMA component of solr 3.4.0. I modified >> solrconfig.xml file in the following way: >> >> <updateRequestProcessorChain name="uima"> >> <processor >> class="org.apache.solr.uima.processor.UIMAUpdateRequestProcessorFactory"> >> >> <lst name="uimaConfig"> >> <str >> name="analysisEngine">C:\Users\Stefano\workspace2\UimaComplete\descriptors\analysis_engine\AggregateAE.xml</str> >> <!-- Set to true if you want to continue indexing even if text >> processing fails. >> Default is false. That is, Solr throws RuntimeException and >> never indexed documents entirely in your session. --> >> <bool name="ignoreErrors">true</bool> >> <!-- This is optional. It is used for logging when text processing >> fails. >> If logField is not specified, uniqueKey will be used as >> logField. >> <str name="logField">id</str> >> --> >> <lst name="analyzeFields"> >> <bool name="merge">false</bool> >> <arr name="fields"> >> <str>text</str> >> </arr> >> </lst> >> <lst name="fieldMappings"> >> <lst name="type"> >> <str name="name">org.apache.uima.RegEx</str> >> <lst name="mapping"> >> <str name="feature">expressionFound</str> >> <str name="field">campo1</str> >> </lst> >> </lst> >> <lst name="type"> >> <str name="name">org.apache.uima.LingAnnotator</str> >> <lst name="mapping"> >> <str name="feature">category</str> >> <str name="field">campo2</str> >> </lst> >> <lst name="precision"> >> <str name="feature">precision</str> >> <str name="field">campo3</str> >> </lst> >> </lst> >> <lst name="type"> >> <str name="name">org.apache.uima.DictionaryEntry</str> >> <lst name="mapping"> >> <str name="feature">coveredText</str> >> <str name="field">campo4</str> >> </lst> >> </lst> >> </lst> >> </lst> >> </processor> >> <processor class="solr.LogUpdateProcessorFactory" /> >> <processor class="solr.RunUpdateProcessorFactory" /> >> </updateRequestProcessorChain> >> >> >> I followed the tutorial I found on the solr wiki ( >> http://wiki.apache.org/solr/SolrUIMA) and customized it. However when I >> start the solr webapp (java -jar start.jar) I get the following exception: >> >> org.apache.solr.common.SolrException: Error Instantiating >> >> UpdateRequestProcessorFactory, >> org.apache.solr.uima.processor.UIMAUpdateRequestProcessorFactory is not a >> org.apache.solr.update.processor.UpdateRequestProcessorFactory >> at org.apache.solr.core.SolrCore.createInstance(SolrCore.java:425) >> at >> org.apache.solr.core.SolrCore.createInitInstance(SolrCore.java:445) >> at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:1569) >> at org.apache.solr.update.processor.UpdateRequestProcessorChain.init >> (UpdateRequestProcessorChain.java:57) >> at >> org.apache.solr.core.SolrCore.createInitInstance(SolrCore.java:447) >> at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:1553) >> at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:1547) >> at >> org.apache.solr.core.SolrCore.loadUpdateProcessorChains(SolrCore.java:620) >> at org.apache.solr.core.SolrCore.<init>(SolrCore.java:561) >> at org.apache.solr.core.CoreContainer.create(CoreContainer.java:463) >> at org.apache.solr.core.CoreContainer.load(CoreContainer.java:316) >> at org.apache.solr.core.CoreContainer.load(CoreContainer.java:207) >> at >> org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer. >> java:130) >> at >> org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java: >> 94) >> at >> org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97) >> at >> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) >> at >> org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java: >> 713) >> at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) >> at >> org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java: >> 1282) >> at >> org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518) >> at >> org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499) >> at >> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) >> at >> org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java: >> 152) >> at org.mortbay.jetty.handler.ContextHandlerCollection.doStart >> (ContextHandlerCollection.java:156) >> at >> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) >> at >> org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java: >> 152) >> at >> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) >> at >> org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) >> at org.mortbay.jetty.Server.doStart(Server.java:224) >> at >> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) >> at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) >> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) >> at java.lang.reflect.Method.invoke(Unknown Source) >> at org.mortbay.start.Main.invokeMain(Main.java:194) >> at org.mortbay.start.Main.start(Main.java:534) >> at org.mortbay.start.Main.start(Main.java:441) >> at org.mortbay.start.Main.main(Main.java:119) >> >> I can't figure out why I'm getting this exception, since I'm following the >> tutorial step by step and the only thing I modified are the definitions of >> the fieldMapping. Can you help me please? >> >> Thank you.