lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From debdoot <debdoot.i...@gmail.com>
Subject Re: Solr with UIMA
Date Thu, 31 May 2012 17:48:25 GMT
Further observation on the error:

All requests to add documents through the /update URL land up with the same
error, irrespective of the fields contained in the document. If I don't use
the UIMAUpdateRequestProcessor, I can add/update documents successfully.

Here are the snippets relevant to updateRequestProcessor declarations in my
solrconfig.xml

<requestHandler name="/update" 
                  class="solr.XmlUpdateRequestHandler">
    
     
   
       <lst name="defaults">
         <str name="update.processor">uima</str>
       </lst>
      
    </requestHandler>

<updateRequestProcessorChain name="uima">
  <processor
class="org.apache.solr.uima.processor.UIMAUpdateRequestProcessorFactory">
    <lst name="uimaConfig">
      <lst name="runtimeParameters">
      </lst>
      <str name="analysisEngine">C:\ex1\RoomNumberAnnotator.xml</str>
      <bool name="ignoreErrors">false</bool>
      
      <lst name="analyzeFields">
        <bool name="merge">false</bool>
        <arr name="fields">
          <str>content</str>
        </arr>
      </lst>
      <lst name="fieldMappings">
        <lst name="type">
          <str name="name">org.apache.uima.tutorial.RoomNumber</str>
          <lst name="mapping">
            <str name="feature">building</str>
            <str name="field">UIMAname</str>
          </lst>
        </lst>
      </lst>
    </lst>
  </processor>
  <processor class="solr.LogUpdateProcessorFactory" />
  <processor class="solr.RunUpdateProcessorFactory" />
</updateRequestProcessorChain>


Please help.

Thanks
Debdoot

--
View this message in context: http://lucene.472066.n3.nabble.com/Solr-with-UIMA-tp3863324p3987083.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message