You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Cullin Wible (JIRA)" <ji...@apache.org> on 2008/09/23 19:44:44 UTC

[jira] Created: (LUCENE-1403) StandardTokenizer - Improper Hostname Recognition

StandardTokenizer - Improper Hostname Recognition
-------------------------------------------------

                 Key: LUCENE-1403
                 URL: https://issues.apache.org/jira/browse/LUCENE-1403
             Project: Lucene - Java
          Issue Type: Bug
    Affects Versions: 2.3.2, 2.3.1
         Environment: Java 5
            Reporter: Cullin Wible


As of 2.3.1 the documentation for the StandardTokenizer states that it "Recognizes email addresses and internet hostnames as one token."

However hostnames such as "my-host.com" are recognized as two tokens "my" and "host.com".

Any host with a dash in the name is not recognized properly.

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


[jira] Commented: (LUCENE-1403) StandardTokenizer - Improper Hostname Recognition

Posted by "Mark Miller (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-1403?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12646163#action_12646163 ] 

Mark Miller commented on LUCENE-1403:
-------------------------------------

It simple enough to add '-' to the HOSTS regex, but as always, its a back compat problem with StandardAnalyer. It seems there are new StandardAnalyzer exceptions brought up every few weeks - isn't that why it used to be billed more as an example than the end/all be all? With as many hoops as have been jumped over already  though, I suppose its a reasonable one.

> StandardTokenizer - Improper Hostname Recognition
> -------------------------------------------------
>
>                 Key: LUCENE-1403
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1403
>             Project: Lucene - Java
>          Issue Type: Bug
>    Affects Versions: 2.3.1, 2.3.2
>         Environment: Java 5
>            Reporter: Cullin Wible
>
> As of 2.3.1 the documentation for the StandardTokenizer states that it "Recognizes email addresses and internet hostnames as one token."
> However hostnames such as "my-host.com" are recognized as two tokens "my" and "host.com".
> Any host with a dash in the name is not recognized properly.

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


[jira] Commented: (LUCENE-1403) StandardTokenizer - Improper Hostname Recognition

Posted by "Michael McCandless (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-1403?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12718793#action_12718793 ] 

Michael McCandless commented on LUCENE-1403:
--------------------------------------------

Note that with matchVersion (pending patch on LUCENE-1684) it'd be easy to fix this while allowing back-compat users to precisely preserve the old behavior.

> StandardTokenizer - Improper Hostname Recognition
> -------------------------------------------------
>
>                 Key: LUCENE-1403
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1403
>             Project: Lucene - Java
>          Issue Type: Bug
>    Affects Versions: 2.3.1, 2.3.2
>         Environment: Java 5
>            Reporter: Cullin Wible
>
> As of 2.3.1 the documentation for the StandardTokenizer states that it "Recognizes email addresses and internet hostnames as one token."
> However hostnames such as "my-host.com" are recognized as two tokens "my" and "host.com".
> Any host with a dash in the name is not recognized properly.

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