[ 
https://issues.apache.org/jira/browse/SOLR-4428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13710076#comment-13710076
 ] 

Eva Andreasson commented on SOLR-4428:
--------------------------------------

Thanks for the pointer! 

So, before I continue, and with your last comment in mind, would it be 
preferred to do something similar to what is in the wiki already (alt. #1 
below) or could I rewrite to some extent, i.e. step through an example (alt. #2 
below) or both?

NOTE: the postings in this comment are not final, I have some follow up 
questions on them as well.

ALTERNATIVE #1:

<updateRequestProcessorChain name="uima">
    <processor class= “processor class path”  >
      <lst name="uimaConfig">
        <lst name="runtimeParameters">
          <!-- parameters defined in the AE overriding parameters in the 
delegate AEs -->
          …
        </lst>
        <str name="analysisEngine">
          <!-- AE class path -->
        </str>
        <lst name="analyzeFields">
          <bool name="merge">
            <!-- true or false -->
          </bool>
          <arr name="fields">
            <!-- field definitions -->
          </arr>
        </lst>
        <lst name="fieldMappings">
          <lst name="type">
            <str name="name"><!-- map class name --></str>
            <lst name="mapping">
              <str name="feature"><!-- feature name --></str>
              <str name="field"><!-- field name --></str>
            </lst>
          </lst>
          …
        </lst>
      </lst>
    </processor>
    <processor class="solr.RunUpdateProcessorFactory" /processor>
  </updateRequestProcessorChain>


ALTERNATIVE #2:

(used directly from the example you provided, but with the approach of stepping 
through each portion.

<!-- first you need to define the path to the UIMA class ... -->

<updateRequestProcessorChain name="uima">
    <processor 
class="org.apache.solr.uima.processor.UIMAUpdateRequestProcessorFactory">
      <lst name="uimaConfig">

<!-- then you need to define any analysis engine (Q1: assuming AE stands for 
analysis engine?) parameters, which will override parameters in the delegate 
analysis engines. You will need to define the type, a name, and the parameter 
value... -->
 
        <lst name="runtimeParameters">
          <int name="ngramsize">3</int>
        </lst>

<!-- and so on... with comments intersecting ... -->

        <str name="analysisEngine">/uima/TestAE.xml</str>
        <lst name="analyzeFields">
          <bool name="merge">false</bool>
         
...



My input would be alt. 2. It works better for a user like me, easier to read 
and understand, as it provides both structure and example at the same time, but 
open to either. 


                
> Update SolrUIMA wiki page
> -------------------------
>
>                 Key: SOLR-4428
>                 URL: https://issues.apache.org/jira/browse/SOLR-4428
>             Project: Solr
>          Issue Type: Task
>            Reporter: Tommaso Teofili
>            Assignee: Tommaso Teofili
>            Priority: Minor
>
> SolrUIMA wiki page (see http://wiki.apache.org/solr/SolrUIMA) is actually 
> outdated and needs to be updated ont the following topics:
> * proper XML configuration
> * how to use existing UIMA analyzers
> * what's the default configuration
> * how to change the default configuration

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to