Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9475E683B for ; Wed, 22 Jun 2011 12:53:10 +0000 (UTC) Received: (qmail 35503 invoked by uid 500); 22 Jun 2011 12:53:09 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 35444 invoked by uid 500); 22 Jun 2011 12:53:09 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 35437 invoked by uid 99); 22 Jun 2011 12:53:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jun 2011 12:53:09 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jun 2011 12:53:07 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id E003F4283CE for ; Wed, 22 Jun 2011 12:52:47 +0000 (UTC) Date: Wed, 22 Jun 2011 12:52:47 +0000 (UTC) From: =?utf-8?Q?Jan_H=C3=B8ydahl_=28JIRA=29?= To: dev@lucene.apache.org Message-ID: <1105142205.29298.1308747167914.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (SOLR-1979) Create LanguageIdentifierUpdateProcessor MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SOLR-1979?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:all-tabpanel ] Jan H=C3=B8ydahl updated SOLR-1979: ------------------------------ Attachment: SOLR-1979.patch New version. Example of accepted params: {code} true title,subject,text,keywords language_s languages false 0.5 no,en,es,dk true title,text false false false meta_content_language,lang en {code} The only mandatory parameter is langid.fl To enable field name mapping, set langid.map=3Dtrue. It will then map field= names for all fields in langid.fl. If the set of fields to map is differen= t from langid.fl, supply langid.map.fl. Those fields will then be renamed w= ith a language suffix equal to the language detected from the langid.fl fie= lds. If you require detecting languages separately for each field, supply langid= .map.individual=3Dtrue. The supplied fields will then be renamed according = to detected language on an individual basis. If the set of fields to detect= individually is different from the already supplied langid.fl or langid.ma= p.fl, supply langid.map.individual.fl. The fields listed in langid.map.indi= vidual.fl will then be detected individually, while the rest of the mapping= fields will be mapped according to global document language. > Create LanguageIdentifierUpdateProcessor > ---------------------------------------- > > Key: SOLR-1979 > URL: https://issues.apache.org/jira/browse/SOLR-1979 > Project: Solr > Issue Type: New Feature > Components: update > Reporter: Jan H=C3=B8ydahl > Assignee: Jan H=C3=B8ydahl > Priority: Minor > Attachments: SOLR-1979.patch, SOLR-1979.patch, SOLR-1979.patch, S= OLR-1979.patch, SOLR-1979.patch > > > We need the ability to detect language of some random text in order to ac= t upon it, such as indexing the content into language aware fields. Another= usecase is to be able to filter/facet on language on random unstructured c= ontent. > To do this, we wrap the Tika LanguageIdentifier in an UpdateProcessor. Th= e processor is configurable like this: > {code:xml}=20 > > name,subject > language_s > id > en > > {code}=20 > It will then read the text from inputFields name and subject, perform lan= guage identification and output the ISO code for the detected language in t= he outputField. If no language was detected, fallback language is used. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org