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

Uwe Schindler commented on LUCENE-4254:
---------------------------------------

It is an option to do it (a clever one)! Ignore the analyzer and set the 
TokenStream directly. No need to use PerFieldAnalyzerWrapper then. I recommend 
to use ICUCollationKeyAnalyzer.reuseableTokenStream() to get it and set it on 
the field.
                
> ICUCollationKeyAnalyzer fail to tokenize Thai word
> --------------------------------------------------
>
>                 Key: LUCENE-4254
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4254
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: modules/analysis
>    Affects Versions: Realtime Branch
>         Environment: Windows 7 SP1.
> Java 1.7.0-b147
>            Reporter: Nattapong Sirilappanich
>            Assignee: Uwe Schindler
>
> Current implementation is:
> KeywordTokenizer tokenizer = new KeywordTokenizer(factory, reader, 
> KeywordTokenizer.DEFAULT_BUFFER_SIZE);
> return new TokenStreamComponents(tokenizer, tokenizer);
> I tried change tokenizer from KeywordTokenizer to ICUTokenizer. It return a 
> proper tokenized word.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to