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 2009/11/10 15:11:27 UTC

[jira] Commented: (LUCENE-2049) ArabicStemFilter removes numbers

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

Robert Muir commented on LUCENE-2049:
-------------------------------------

hi, arabic stem filter does not remove numbers.

instead, the tokenizer is based on LetterTokenizer, which does not index numbers.

> ArabicStemFilter removes numbers
> --------------------------------
>
>                 Key: LUCENE-2049
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2049
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: contrib/analyzers
>    Affects Versions: 2.9, 2.9.1
>            Reporter: Jesper Badstue
>
> It seems that if a word consist or contains a number the word is removed by the arabic stemmer.
> The bug can be reproduced by creating a unit test in TestArabicStemFilter.java
> public void testNonArabicNumbers() throws IOException {
>     check("123", "123");
>  }
> This test fails as the returned string is empty.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org