Dear Wiki user, You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.
The "Solr4UIMA" page has been changed by MogenetiDev: http://wiki.apache.org/solr/Solr4UIMA?action=diff&rev1=25&rev2=26 All the SolrUIMA configuration is placed inside a <uimaConfig> element inside the solrconfig.xml. {{{ - <uimaConfig> - <runtimeParameters> - <!-- here go parameters defined in the AE which override parameters in the delegate AEs --> - ... - </runtimeParameters> - <analysisEngine><!-- here goes the AE path in the classpath --></analysisEngine> - <analyzeFields merge="true"><!-- comma separated list of fields of the original document to analyze --></analyzeFields> - <fieldMapping> - <!-- here goes the mapping between features of UIMA FeatureStructures to Solr fields --> - <type name="org.apache.uima.something.Annotation"> - <map feature="oneFeature" field="destination_field"/> - </type> - ... - </fieldMapping> - </uimaConfig> + <updateRequestProcessorChain name="uima" default="true"> + <processor class="org.apache.solr.uima.processor.UIMAUpdateRequestProcessorFactory"> + <lst name="uimaConfig"> + <lst name="runtimeParameters"> + </lst> + <str name="analysisEngine">/descriptors/AggregateEngineDescriptor.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">com.example.uima.Any1</str> + <lst name="mapping"> + <str name="feature">Any1</str> + <str name="field">Any2</str> + </lst> + </lst> + <lst name="type"> + <str name="name">com.example.uima.Any2</str> + <lst name="mapping"> + <str name="feature">Any2</str> + <str name="field">Any2</str> + </lst> + </lst> + <lst name="type"> + <str name="name">com.example.uima.Any3</str> + <lst name="mapping"> + <str name="feature">Any3</str> + <str name="field">Any3</str> + </lst> + </lst> + </lst> + </lst> + </processor> + <processor class="solr.LogUpdateProcessorFactory" /> + <processor class="solr.RunUpdateProcessorFactory" /> + </updateRequestProcessorChain> }}} The analysisEngine element holds the classpath to the UIMA Analysis Engine descriptor that describes which analysis block should be executed. The analysis engine referenced can be primitive or aggregate.