You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Simon Arame (Commented) (JIRA)" <ji...@apache.org> on 2011/12/15 10:00:31 UTC

[jira] [Commented] (LUCENE-3434) Make ShingleAnalyzerWrapper and PerFieldAnalyzerWrapper immutable

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

Simon Arame commented on LUCENE-3434:
-------------------------------------

As of Lucene 3.4.0, the default Analyzer of PerFieldAnalyzerWrapper is not loaded when searching documents only with fields in the exception list.
                
> Make ShingleAnalyzerWrapper and PerFieldAnalyzerWrapper immutable
> -----------------------------------------------------------------
>
>                 Key: LUCENE-3434
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3434
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: modules/analysis
>            Reporter: Chris Male
>            Assignee: Chris Male
>             Fix For: 3.5, 4.0
>
>         Attachments: LUCENE-3434-3x.patch, LUCENE-3434-trunk.patch
>
>
> Both ShingleAnalyzerWrapper and PerFieldAnalyzerWrapper have setters which change some state which impacts their analysis stack.  If these are going to become reusable, then the state must be immutable as changing it will have no effect.
> Process will be similar to QueryAutoStopWordAnalyzer, I will remove in trunk and deprecate in 3x.

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