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

Robert Muir commented on LUCENE-4254:
-------------------------------------

{quote}
If a field that i required must be both tokenized and using 
ICUCollationKeyAnalyzer, do i have to use method Field.setTokenStream() only
{quote}

If you have a field "title" that you want tokenized (for search) but collated 
(for sort), I think its best
to create "title" and "title_sort". 

In general sort really only works if the field has a single value, so you dont 
want to mix the two. You can
then optimize the sort field: disable storing (Field.Store.NO) for "title_sort" 
since its already stored
in "title", and usually also omitNorms(), and set the index options to 
DOCS_ONLY.

                
> 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