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

Robert Muir commented on LUCENE-1692:
-------------------------------------

ok got it,

the IDEOGRAPHIC FULL STOP is being converted into a comma token by the 
tokenizer.
if you use the default constructor: SmartChineseAnalyzer(), it won't load the 
default stopwords list, such as from my Luke screenshot.
if you instead instantiate it like this: SmartChineseAnalyzer(true), then it 
loads the default stopwords list.
the default stopwords list includes things like comma, so it ends out getting 
removed.

maybe its not a bug, but this is really non-obvious behavior...!


> Contrib analyzers need tests
> ----------------------------
>
>                 Key: LUCENE-1692
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1692
>             Project: Lucene - Java
>          Issue Type: Test
>          Components: contrib/analyzers
>            Reporter: Robert Muir
>            Assignee: Michael McCandless
>             Fix For: 2.9
>
>         Attachments: example.jpg, LUCENE-1692.txt, LUCENE-1692.txt, 
> LUCENE-1692.txt, LUCENE-1692.txt, LUCENE-1692.txt
>
>
> The analyzers in contrib need tests, preferably ones that test the behavior 
> of all the Token 'attributes' involved (offsets, type, etc) and not just what 
> they do with token text.
> This way, they can be converted to the new api without breakage.

-- 
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-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-dev-h...@lucene.apache.org

Reply via email to