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

Torao Takami edited comment on LUCENE-1227 at 7/25/11 4:10 AM:
---------------------------------------------------------------

I avoided this problem by putting NGramFilterFactory and 
WhitespaceTokenizerFactory together in Solr schema.

<tokenizer class="solr.NGramTokenizerFactory" maxGramSize="2" minGramSize="2" />

is written to:

<filter class="solr.NGramFilterFactory" minGramSize="2" maxGramSize="2"/>
<tokenizer class="solr.WhitespaceTokenizerFactory"/>

Platform: Solr 1.4.1

      was (Author: torao):
    I avoided this problem by putting NGramFilterFactory and 
WhitespaceTokenizerFactory together in schema.

<tokenizer class="solr.NGramTokenizerFactory" maxGramSize="2" minGramSize="2" />

is written to:

<filter class="solr.NGramFilterFactory" minGramSize="2" maxGramSize="2"/>
<tokenizer class="solr.WhitespaceTokenizerFactory"/>

  
> NGramTokenizer to handle more than 1024 chars
> ---------------------------------------------
>
>                 Key: LUCENE-1227
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1227
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: modules/analysis
>            Reporter: Hiroaki Kawai
>            Assignee: Grant Ingersoll
>            Priority: Minor
>         Attachments: LUCENE-1227.patch, NGramTokenizer.patch, 
> NGramTokenizer.patch
>
>
> Current NGramTokenizer can't handle character stream that is longer than 
> 1024. This is too short for non-whitespace-separated languages.
> I created a patch for this issues.

--
This message is automatically generated by JIRA.
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