You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Santiago M. Mola (Created) (JIRA)" <ji...@apache.org> on 2012/02/01 11:24:58 UTC

[jira] [Created] (LUCENE-3744) Add support for type whitelist in TypeTokenFilter

Add support for type whitelist in TypeTokenFilter
-------------------------------------------------

                 Key: LUCENE-3744
                 URL: https://issues.apache.org/jira/browse/LUCENE-3744
             Project: Lucene - Java
          Issue Type: Improvement
          Components: modules/analysis
            Reporter: Santiago M. Mola
            Priority: Trivial
         Attachments: TypeTokenFilter-whitelist.patch

A usual use case for TypeTokenFilter is allowing only a set of token types. That is, listing allowed types, instead of filtered ones. I'm attaching a patch to add a useWhitelist option for that.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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


[jira] [Commented] (LUCENE-3744) Add support for type whitelist in TypeTokenFilter

Posted by "Tommaso Teofili (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-3744?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13197834#comment-13197834 ] 

Tommaso Teofili commented on LUCENE-3744:
-----------------------------------------

Hello Santiago,
would you mind also providing unit tests for the whitelist usage?

                
> Add support for type whitelist in TypeTokenFilter
> -------------------------------------------------
>
>                 Key: LUCENE-3744
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3744
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: modules/analysis
>            Reporter: Santiago M. Mola
>            Priority: Trivial
>         Attachments: TypeTokenFilter-whitelist.patch
>
>
> A usual use case for TypeTokenFilter is allowing only a set of token types. That is, listing allowed types, instead of filtered ones. I'm attaching a patch to add a useWhitelist option for that.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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


[jira] [Resolved] (LUCENE-3744) Add support for type whitelist in TypeTokenFilter

Posted by "Tommaso Teofili (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-3744?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tommaso Teofili resolved LUCENE-3744.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 4.0
                   3.6
    
> Add support for type whitelist in TypeTokenFilter
> -------------------------------------------------
>
>                 Key: LUCENE-3744
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3744
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: modules/analysis
>            Reporter: Santiago M. Mola
>            Assignee: Tommaso Teofili
>            Priority: Trivial
>             Fix For: 3.6, 4.0
>
>         Attachments: LUCENE-3744_2.patch, TypeTokenFilter-whitelist.patch, TypeTokenFilter_whitelst_lucene_and_solr.patch
>
>
> A usual use case for TypeTokenFilter is allowing only a set of token types. That is, listing allowed types, instead of filtered ones. I'm attaching a patch to add a useWhitelist option for that.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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


[jira] [Commented] (LUCENE-3744) Add support for type whitelist in TypeTokenFilter

Posted by "Tommaso Teofili (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-3744?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13199603#comment-13199603 ] 

Tommaso Teofili commented on LUCENE-3744:
-----------------------------------------

applied on trunk r1240034
appliend on branch-3.x r1240035
                
> Add support for type whitelist in TypeTokenFilter
> -------------------------------------------------
>
>                 Key: LUCENE-3744
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3744
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: modules/analysis
>            Reporter: Santiago M. Mola
>            Assignee: Tommaso Teofili
>            Priority: Trivial
>         Attachments: LUCENE-3744_2.patch, TypeTokenFilter-whitelist.patch, TypeTokenFilter_whitelst_lucene_and_solr.patch
>
>
> A usual use case for TypeTokenFilter is allowing only a set of token types. That is, listing allowed types, instead of filtered ones. I'm attaching a patch to add a useWhitelist option for that.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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


[jira] [Updated] (LUCENE-3744) Add support for type whitelist in TypeTokenFilter

Posted by "Tommaso Teofili (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-3744?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tommaso Teofili updated LUCENE-3744:
------------------------------------

    Attachment: LUCENE-3744_2.patch

Thanks Santiago, I updated the patch to split the Lucene changes from the Solr changes (will open a new Jira for the Solr factories changes).

                
> Add support for type whitelist in TypeTokenFilter
> -------------------------------------------------
>
>                 Key: LUCENE-3744
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3744
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: modules/analysis
>            Reporter: Santiago M. Mola
>            Priority: Trivial
>         Attachments: LUCENE-3744_2.patch, TypeTokenFilter-whitelist.patch, TypeTokenFilter_whitelst_lucene_and_solr.patch
>
>
> A usual use case for TypeTokenFilter is allowing only a set of token types. That is, listing allowed types, instead of filtered ones. I'm attaching a patch to add a useWhitelist option for that.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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


[jira] [Updated] (LUCENE-3744) Add support for type whitelist in TypeTokenFilter

Posted by "Santiago M. Mola (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-3744?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Santiago M. Mola updated LUCENE-3744:
-------------------------------------

    Attachment: TypeTokenFilter-whitelist.patch

Add useWhitelist option to TypeTokenFilter.
                
> Add support for type whitelist in TypeTokenFilter
> -------------------------------------------------
>
>                 Key: LUCENE-3744
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3744
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: modules/analysis
>            Reporter: Santiago M. Mola
>            Priority: Trivial
>         Attachments: TypeTokenFilter-whitelist.patch
>
>
> A usual use case for TypeTokenFilter is allowing only a set of token types. That is, listing allowed types, instead of filtered ones. I'm attaching a patch to add a useWhitelist option for that.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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


[jira] [Assigned] (LUCENE-3744) Add support for type whitelist in TypeTokenFilter

Posted by "Tommaso Teofili (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-3744?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tommaso Teofili reassigned LUCENE-3744:
---------------------------------------

    Assignee: Tommaso Teofili
    
> Add support for type whitelist in TypeTokenFilter
> -------------------------------------------------
>
>                 Key: LUCENE-3744
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3744
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: modules/analysis
>            Reporter: Santiago M. Mola
>            Assignee: Tommaso Teofili
>            Priority: Trivial
>         Attachments: LUCENE-3744_2.patch, TypeTokenFilter-whitelist.patch, TypeTokenFilter_whitelst_lucene_and_solr.patch
>
>
> A usual use case for TypeTokenFilter is allowing only a set of token types. That is, listing allowed types, instead of filtered ones. I'm attaching a patch to add a useWhitelist option for that.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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


[jira] [Updated] (LUCENE-3744) Add support for type whitelist in TypeTokenFilter

Posted by "Santiago M. Mola (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-3744?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Santiago M. Mola updated LUCENE-3744:
-------------------------------------

    Attachment: TypeTokenFilter_whitelst_lucene_and_solr.patch

Sure. Here's the patch with tests and Solr's factory changes.
                
> Add support for type whitelist in TypeTokenFilter
> -------------------------------------------------
>
>                 Key: LUCENE-3744
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3744
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: modules/analysis
>            Reporter: Santiago M. Mola
>            Priority: Trivial
>         Attachments: TypeTokenFilter-whitelist.patch, TypeTokenFilter_whitelst_lucene_and_solr.patch
>
>
> A usual use case for TypeTokenFilter is allowing only a set of token types. That is, listing allowed types, instead of filtered ones. I'm attaching a patch to add a useWhitelist option for that.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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