(11/07/07 18:38), Sowmya V.B. wrote:
Hi

I am trying to add UIMA module in to Solr..and began with the readme file
given here.
https://svn.apache.org/repos/asf/lucene/dev/tags/lucene_solr_3_1/solr/contrib/uima/README.txt

I would recommend you to use Solr 3.3 rather than 3.1, as we have changed some 
configuration
in solrconfig.xml for UIMA.

2. modify your schema.xml adding the fields you want to be hold
metadata specifying proper values for type, indexed, stored and
multiValued options:

-I understood this line as: adding to my schema.xml, the new fields that
will come as a result of a UIMA pipeline. For example, in my UIMA pipeline,
post-processing, I get fields A,B,C in addition to fields X,Y,Z that I
already added to the SolrInputDocument. So, does this mean I should add
A,B,C to the schema.xml?

I think you got it. Have you tried it but you got some errors?

3. In SolrConfig.xml,

inside,

<uimaConfig>
     <runtimeParameters>

The uimaConfig tag has been moved into update processor setting @ Solr 3.2.
Please see the latest README.txt.

if iam not using any of those "alchemy api key..." etc, I think I can remove
those lines. However, I plan to use the openNLP tagger&  tokenizer, and an
annotator I wrote for my task. Can I give my model file locations here as
runtimeParameters?

I don't have an idea of openNLP.

4. I did not understand what "fieldMapping" tag does. The description said:
"field mapping describes which features of which types should go in a
field"--
- For example, in this snippet from the link:

  <type name="org.apache.uima.alchemy.ts.concept.ConceptFS">
        <map feature="text" field="concept"/>
       </type>

-what does "feature" mean and what does "field" mean?

This defines a map uima feature:

http://uima.apache.org/d/uimaj-2.3.1/references.html#ugr.ref.xml.component_descriptor.type_system.features

to Solr field.

koji
--
http://www.rondhuit.com/en/

Reply via email to