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

Karl Wettin commented on LUCENE-889:
------------------------------------

Erik Hatcher [25/May/07 06:57 AM]
> This patch concerns me. This changes default behavior
> in a very basic and commonly used piece of Lucene. At 
> the very least this should be made entirely optional and
> off by default.
>
> Thoughts? 

It is off by default. The punctuation comes out from the tokenizer, but the 
StandardAnalyzer uses a StandardFilter, and the StandardFilter will filter out 
the punctuation tokens. In order to get the punctuation, one needs to use a 
plain StandardTokenizer.

> Standard tokenizer with punctuation output
> ------------------------------------------
>
>                 Key: LUCENE-889
>                 URL: https://issues.apache.org/jira/browse/LUCENE-889
>             Project: Lucene - Java
>          Issue Type: Improvement
>    Affects Versions: 2.1
>            Reporter: Karl Wettin
>            Priority: Trivial
>         Attachments: standard.patch, test.patch
>
>
> This patch adds punctuation (comma, period, question mark and exclamation 
> point)  tokens as output from the StandardTokenizer, and filters them out in 
> the StandardFilter.
> (I needed them for text classification reasons.)

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to