You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by jo...@apache.org on 2011/02/28 13:07:09 UTC
svn commit: r1075307 - /uima/sandbox/trunk/Solrcas/desc/solrmapping.xml
Author: joern
Date: Mon Feb 28 12:07:09 2011
New Revision: 1075307
URL: http://svn.apache.org/viewvc?rev=1075307&view=rev
Log:
UIMA-2047 Replaced mapping file with a real world sample mapping file.
Modified:
uima/sandbox/trunk/Solrcas/desc/solrmapping.xml
Modified: uima/sandbox/trunk/Solrcas/desc/solrmapping.xml
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/Solrcas/desc/solrmapping.xml?rev=1075307&r1=1075306&r2=1075307&view=diff
==============================================================================
--- uima/sandbox/trunk/Solrcas/desc/solrmapping.xml (original)
+++ uima/sandbox/trunk/Solrcas/desc/solrmapping.xml Mon Feb 28 12:07:09 2011
@@ -19,12 +19,29 @@
under the License.
-->
+<!-- The mapping file defines how the CAS structure is transformed
+ into solr fields -->
<solrMapping>
- <documentText>text</documentText>
+ <!-- The document language is written into the language field -->
<documentLanguage>language</documentLanguage>
+
+ <!-- The whole text in the CAS is written into the text field -->
+ <documentText>text</documentText>
+
+ <!-- Each document has a unique id inside the DocumentId FS, the if field of that
+ FS is written into the solr id field -->
+ <fsMapping>
+ <type name="com.apache.uima.solrcas.DocumentId">
+ <map feature="id" field="id"/>
+ </type>
+ </fsMapping>
+
+ <!-- The document contains organization entity mentions, these
+ the text covered by these annotations is written into the
+ organization field -->
<fsMapping>
- <type name="uima.tcas.Annotation">
- <map feature="coveredText" field="annotation"/>
- </type>
+ <type name="com.apache.uima.solrcas.Organization">
+ <map feature="coveredText" field="organization"/>
+ </type>
</fsMapping>
</solrMapping>
\ No newline at end of file