You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (JIRA)" <ji...@apache.org> on 2013/08/14 17:45:50 UTC
[jira] [Resolved] (SOLR-5153) CollationKeyFilter returns unexpected
output
[ https://issues.apache.org/jira/browse/SOLR-5153?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Muir resolved SOLR-5153.
-------------------------------
Resolution: Not A Problem
This is expected, see http://wiki.apache.org/solr/UnicodeCollation#Searching
"Please note that the strange output you see from the filter is really a binary collation key encoded in a special form. What is important is that it is the same value for equivalent tokens as defined by that collator."
> CollationKeyFilter returns unexpected output
> --------------------------------------------
>
> Key: SOLR-5153
> URL: https://issues.apache.org/jira/browse/SOLR-5153
> Project: Solr
> Issue Type: Bug
> Components: SearchComponents - other
> Affects Versions: 4.3
> Environment: Mac os x
> Reporter: Maciej Niemczyk
>
> Given the default situation and the example from solr-wiki: http://wiki.apache.org/solr/UnicodeCollation
> the solr analysis reports strange output for the CKF.
> Settings:
> {code}
> <fieldType name="germanText" class="solr.TextField">
> <analyzer type="index">
> <tokenizer class="solr.WhitespaceTokenizerFactory"/>
> <filter class="solr.CollationKeyFilterFactory" language="de" strength="primary"/>
> </analyzer>
> <analyzer type="query">
> <tokenizer class="solr.WhitespaceTokenizerFactory"/>
> <filter class="solr.CollationKeyFilterFactory" language="de" strength="primary"/>
> </analyzer>
> </fieldType>
> <field name="germanText" type="germanText" indexed="true" stored="false" multiValued="true"/>
> <copyField source="title" dest="germanText"/>
> {code}
> Input:
> {code}
> Peter
> {code}
> Output:
> {code}
> WT: Peter [50 65 74 65 72]
> CKF: 1䀖瀅䀃᐀ [31 e4 80 96 c e7 80 85 e4 80 83 e1 90 80 0 0 0]
> {code}
--
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