Can someone put up a guide to integrate uima with solr

2015-12-03 Thread vaibhavlella




--
View this message in context: 
http://lucene.472066.n3.nabble.com/Can-someone-put-up-a-guide-to-integrate-uima-with-solr-tp4243464.html
Sent from the Solr - User mailing list archive at Nabble.com.


Problems integrating Uima with solr

2015-12-02 Thread vaibhavlella
I followed these steps but was getting warnings 

Step 1:Setting  tags in solrconfig.xml appropriately to point those
jar files
  

   

Step 2:modified  solrconfig.xml adding the following snippet and working API
keys:


  

  VALID_ALCHEMYAPI_KEY
  VALID_ALCHEMYAPI_KEY
  VALID_ALCHEMYAPI_KEY
  VALID_ALCHEMYAPI_KEY
  VALID_ALCHEMYAPI_KEY
  VALID_OPENCALAIS_KEY

/Users/vaibhavlella/solr/solr-5.3.1/tester/OverridingParamsExtServicesAE.xml

false


  false
  
body
  


  
org.apache.uima.alchemy.ts.concept.ConceptFS

  text
  concept

  
  
org.apache.uima.alchemy.ts.language.LanguageFS

  language
  language

  
  
org.apache.uima.SentenceAnnotation

  coveredText
  sentence

  

  



  
Step 3:modified schema.xml as follows:




  
   
   
   
   
   
   
   
Step 4: Created a new UpdateRequestHandler with the following NOTE:using
solr.UpdateRequestHandler instead of solr.XmlUpdateRequestHandler since
error was being generated.
  
  

  uima

  
Step 5:Tried to index books.json that is given in exampledocs with solr and
got the following warnings and no new fields were generated
$ bin/solr start -s tester/solr
$ bin/post -c newcore tester/books.json
The following was the response:
java -classpath /Users/vaibhavlella/solr/solr-5.3.1/dist/solr-core-5.3.1.jar
-Dauto=yes -Dc=newcore -Ddata=files org.apache.solr.util.SimplePostTool
tester/books.json
SimplePostTool version 5.0.0
Posting files to [base] url http://localhost:8983/solr/newcore/update...
Entering auto mode. File endings considered are
xml,json,csv,pdf,doc,docx,ppt,pptx,xls,xlsx,odt,odp,ods,ott,otp,ots,rtf,htm,html,txt,log
POSTing file books.json (application/json) to [base]
SimplePostTool: WARNING: Solr returned an error #500 (Server Error) for url:
http://localhost:8983/solr/newcore/update
SimplePostTool: WARNING: Response:
{"responseHeader":{"status":500,"QTime":6534},"error":{"msg":"processing
error null. id=978-0641723445, 
text=\"null...\"","trace":"org.apache.solr.common.SolrException: processing
error null. id=978-0641723445,  text=\"null...\"\n\tat
org.apache.solr.uima.processor.UIMAUpdateRequestProcessor.processAdd(UIMAUpdateRequestProcessor.java:127)\n\tat
org.apache.solr.handler.loader.JsonLoader$SingleThreadedJsonLoader.handleAdds(JsonLoader.java:470)\n\tat
org.apache.solr.handler.loader.JsonLoader$SingleThreadedJsonLoader.processUpdate(JsonLoader.java:134)\n\tat
org.apache.solr.handler.loader.JsonLoader$SingleThreadedJsonLoader.load(JsonLoader.java:113)\n\tat
org.apache.solr.handler.loader.JsonLoader.load(JsonLoader.java:76)\n\tat
org.apache.solr.handler.UpdateRequestHandler$1.load(UpdateRequestHandler.java:98)\n\tat
org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:74)\n\tat
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:143)\n\tat
org.apache.solr.core.SolrCore.execute(SolrCore.java:2068)\n\tat
org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:669)\n\tat
org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:462)\n\tat
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:214)\n\tat
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:179)\n\tat
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)\n\tat
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)\n\tat
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)\n\tat
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)\n\tat
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)\n\tat
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)\n\tat
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)\n\tat
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)\n\tat
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)\n\tat
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)\n\tat
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)\n\tat
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)\n\tat
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)\n\tat
org.eclipse.jetty.server.Server.handle(Server.java:499)\n\tat
org.eclipse.jetty.server.HttpChannel.handle(HttpCha