You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Jan Høydahl (JIRA)" <ji...@apache.org> on 2013/02/07 10:23:14 UTC

[jira] [Commented] (SOLR-4412) LanguageIdentifier lcmap for language field

    [ https://issues.apache.org/jira/browse/SOLR-4412?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13573334#comment-13573334 ] 

Jan Høydahl commented on SOLR-4412:
-----------------------------------

Proposal is a new option:
{code}
langid.lcmap
{code}

Same syntax as langid.map.lcmap. If set, will affect both {{langField}} and field-name mappings. So if you want these to be different, specify both. This way the API is backwards compatible.
                
> LanguageIdentifier lcmap for language field
> -------------------------------------------
>
>                 Key: SOLR-4412
>                 URL: https://issues.apache.org/jira/browse/SOLR-4412
>             Project: Solr
>          Issue Type: Bug
>          Components: contrib - LangId
>    Affects Versions: 4.1
>            Reporter: Jan Høydahl
>             Fix For: 4.2, 5.0
>
>
> For some languages, the detector will detect sub-languages, such as LangDetect detecting zh-tw or zh-cn for Chinese. Tika detector only detects zh. Today you can use {{lcmap}} to map these two into one code, e.g. {{langid.map.lcmap=zh-cn:zh zh-tw:zh}}. But the {{langField}} output is not changed.
> We need an option for {{langField}} as well.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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