Hello,

i had a look into the source code of the annotator and actually it is using a HashMap to store the values by the type name. Would it be better to use a list for the type system to support DocumentAnnotation Types as well? Can we change that within the source?

Thank you



Am 21.08.2012 17:14, schrieb Andreas Niekler:
UPDATE:

It seems that if i'm doing something like this:

<type name="de.uni_leipzig.informatik.asv.uima.cpe.DocumentMetadata">
             <map feature="Date" field="Date" />
         </type>
         <type
name="de.uni_leipzig.informatik.asv.uima.cpe.DocumentMetadata">
             <map feature="Id" field="_id" />
         </type>
         <type
name="de.uni_leipzig.informatik.asv.uima.cpe.DocumentMetadata">
             <map feature="Company" field="Company" />
         </type>
         <type
name="de.uni_leipzig.informatik.asv.uima.cpe.DocumentMetadata">
             <map feature="PublicationType" field="PublicationType" />
         </type>
         <type
name="de.uni_leipzig.informatik.asv.uima.cpe.DocumentMetadata">
             <map feature="Language" field="Language" />
         </type>
         <type
name="de.uni_leipzig.informatik.asv.uima.cpe.DocumentMetadata">
             <map feature="Creator" field="Creator" />
         </type>
         <type
name="de.uni_leipzig.informatik.asv.uima.cpe.DocumentMetadata">
             <map feature="Page" field="Page" />
         </type>
         <type
name="de.uni_leipzig.informatik.asv.uima.cpe.DocumentMetadata">
             <map feature="Section" field="Section" />
         </type>
         <type
name="de.uni_leipzig.informatik.asv.uima.cpe.DocumentMetadata">
             <map feature="Subsection" field="Subsection" />
         </type>
         <type
name="de.uni_leipzig.informatik.asv.uima.cpe.DocumentMetadata">
             <map feature="NewsAgency" field="NewsAgency" />
         </type>

That the values are overwritten somehow. Could that be?

Thank you

Andreas

Am 21.08.2012 16:39, schrieb Andreas Niekler:
Hello,

i'm currently working with the SolrCas Consumer. I set up a mapping file
and a schema for the Solr instance. The problem i'm facing is that some
values are written to the index fields an some not. In the attached
mapping file i have the
de.uni_leipzig.informatik.asv.uima.cpe.DocumentMetadata Annotation and i
take several features from that annotation. The only feature that is
correctly written to the index is the Id Feature. I defined that as the
<uniqueKey>_id</uniqueKey>. All other Features of type
de.uni_leipzig.informatik.asv.uima.cpe.DocumentMetadata are not written
to the index by the SolrCasConsumer.

Can anybody tell me why this could happen? I appended my schema.xml as
well

Thank you

Andreas


--
Andreas Niekler, Dipl. Ing. (FH)
NLP Group | Department of Computer Science
University of Leipzig
Johannisgasse 26 | 04103 Leipzig

mail: [email protected]

Reply via email to