lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Wang (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (LUCENE-4530) ArrayOutofBoundsException with WhiteSpaceAnalyzer
Date Sat, 03 Nov 2012 16:15:12 GMT

     [ https://issues.apache.org/jira/browse/LUCENE-4530?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

John Wang closed LUCENE-4530.
-----------------------------


Thanks Rob for the prompt response!
                
> ArrayOutofBoundsException with WhiteSpaceAnalyzer
> -------------------------------------------------
>
>                 Key: LUCENE-4530
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4530
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: modules/analysis
>    Affects Versions: 4.0
>            Reporter: John Wang
>
> Run the following test and get an AOOBE.
> @Test
> public void testLucene() throws Exception {
> Analyzer analyzer = new StandardAnalyzer(Version.LUCENE_40);
> String text = "أعجبني مقطع فيديو في الملفات السرية للإخوان
| السمع والطاعة | سري جداً ヅ ";
> org.apache.lucene.analysis.TokenStream stream = new WhitespaceTokenizer(Version.LUCENE_40,
new CharSequenceReader(text));
> CharTermAttribute termAttr = stream.getAttribute(CharTermAttribute.class);
> while (stream.incrementToken()){ System.out.println(termAttr.toString()); }
> }

--
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


Mime
View raw message