Return-Path: Delivered-To: apmail-lucene-solr-commits-archive@minotaur.apache.org Received: (qmail 6891 invoked from network); 9 Mar 2011 09:37:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Mar 2011 09:37:33 -0000 Received: (qmail 14675 invoked by uid 500); 9 Mar 2011 09:37:33 -0000 Delivered-To: apmail-lucene-solr-commits-archive@lucene.apache.org Received: (qmail 14644 invoked by uid 500); 9 Mar 2011 09:37:33 -0000 Mailing-List: contact solr-commits-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-dev@lucene.apache.org Delivered-To: mailing list solr-commits@lucene.apache.org Received: (qmail 14637 invoked by uid 99); 9 Mar 2011 09:37:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Mar 2011 09:37:33 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.131] (HELO eos.apache.org) (140.211.11.131) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Mar 2011 09:37:31 +0000 Received: from eosnew.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id 90675406 for ; Wed, 9 Mar 2011 09:37:10 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: Apache Wiki To: Apache Wiki Date: Wed, 09 Mar 2011 09:37:10 -0000 Message-ID: <20110309093710.38941.78704@eosnew.apache.org> Subject: =?utf-8?q?=5BSolr_Wiki=5D_Update_of_=22SolrUIMA=22_by_TommasoTeofili?= X-Virus-Checked: Checked by ClamAV on apache.org Dear Wiki user, You have subscribed to a wiki page or wiki category on "Solr Wiki" for chan= ge notification. The "SolrUIMA" page has been changed by TommasoTeofili. http://wiki.apache.org/solr/SolrUIMA?action=3Ddiff&rev1=3D12&rev2=3D13 -------------------------------------------------- =3D=3D=3D Using other UIMA components =3D=3D=3D To use different UIMA components inside the contrib/uima module you need = to: 1. import the component jar - 2. use a new descriptor inside config/uimaConfig/analysisEngine element = of solrconfig.xml + 2. use the new component Analysis Engine descriptor inside config/uimaCo= nfig/analysisEngine element of solrconfig.xml - 3. optionally adjust Analysis Engine configuration + 3. adjust Analysis Engine configuration (optional) 3. change the types and features' mapping inside config/uimaConfig/field= Mapping element of solrconfig.xml = =3D=3D=3D=3D Import the component jar =3D=3D=3D=3D @@ -110, +110 @@ = =3D=3D=3D=3D Adjust AE configuration (optional) =3D=3D=3D=3D = + Sometimes Analysis Engines require custom parameters to be set inside the= ir descriptor or custom resources to be imported. + The easiest way to do so is to get a copy of such a descriptor, modify pa= rameters/resources as needed and put them inside a directory which gets inc= luded in the final jar (i.e.: solr/contrib/uima/src/main/resources/org/apac= he/uima ) + = + = =3D=3D=3D=3D Change the types and features' mapping =3D=3D=3D=3D = + Inside the solrconfig.xml go to config/uimaConfig/fieldMapping element an= d change element according to the annotations extracted by the used = component. = + For example if you're using the Dictionary Annotator and you want to put = the dictionary entry annotations found inside a 'lemmas' field you should c= onfigure the fieldMapping element as following: + = + {{{ + + ... + + ... + + + + + + ... + + ... + + }}} = = =20