You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Chris Male (JIRA)" <ji...@apache.org> on 2011/09/13 11:12:09 UTC

[jira] [Created] (LUCENE-3431) Make QueryAutoStopWordAnalyzer immutable and reusable

Make QueryAutoStopWordAnalyzer immutable and reusable
-----------------------------------------------------

                 Key: LUCENE-3431
                 URL: https://issues.apache.org/jira/browse/LUCENE-3431
             Project: Lucene - Java
          Issue Type: Improvement
          Components: modules/analysis
            Reporter: Chris Male


Currently QueryAutoStopWordAnalyzer allows its list of stop words to be changed after instantiation through its addStopWords() methods.  This stops the Analyzer from being reusable since it must instantiate its StopFilters every time.

Having these methods means that although the Analyzer can be instantiated once and reused between IndexReaders, the actual analysis stack is not reusable (which is probably the more expensive part).

So lets change the Analyzer so that its stop words are set at instantiation time, facilitating reuse.

--
This message is automatically generated by JIRA.
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-3431) Make QueryAutoStopWordAnalyzer immutable and reusable

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

Chris Male updated LUCENE-3431:
-------------------------------

    Attachment: LUCENE-3431-trunk.patch

Patch against trunk (no deprecations).  All functionality is moved to constructors.  Tests are cleaned up and renamed.

Will make a 3x patch with deprecations.

> Make QueryAutoStopWordAnalyzer immutable and reusable
> -----------------------------------------------------
>
>                 Key: LUCENE-3431
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3431
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: modules/analysis
>            Reporter: Chris Male
>         Attachments: LUCENE-3431-trunk.patch
>
>
> Currently QueryAutoStopWordAnalyzer allows its list of stop words to be changed after instantiation through its addStopWords() methods.  This stops the Analyzer from being reusable since it must instantiate its StopFilters every time.
> Having these methods means that although the Analyzer can be instantiated once and reused between IndexReaders, the actual analysis stack is not reusable (which is probably the more expensive part).
> So lets change the Analyzer so that its stop words are set at instantiation time, facilitating reuse.

--
This message is automatically generated by JIRA.
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-3431) Make QueryAutoStopWordAnalyzer immutable and reusable

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

Chris Male updated LUCENE-3431:
-------------------------------

    Attachment: LUCENE-3431-3x.patch

Patch for 3x with deprecations.

> Make QueryAutoStopWordAnalyzer immutable and reusable
> -----------------------------------------------------
>
>                 Key: LUCENE-3431
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3431
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: modules/analysis
>            Reporter: Chris Male
>         Attachments: LUCENE-3431-3x.patch, LUCENE-3431-trunk.patch
>
>
> Currently QueryAutoStopWordAnalyzer allows its list of stop words to be changed after instantiation through its addStopWords() methods.  This stops the Analyzer from being reusable since it must instantiate its StopFilters every time.
> Having these methods means that although the Analyzer can be instantiated once and reused between IndexReaders, the actual analysis stack is not reusable (which is probably the more expensive part).
> So lets change the Analyzer so that its stop words are set at instantiation time, facilitating reuse.

--
This message is automatically generated by JIRA.
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-3431) Make QueryAutoStopWordAnalyzer immutable and reusable

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

Chris Male resolved LUCENE-3431.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 4.0
                   3.5
         Assignee: Chris Male

3x:
Committed revision 1170423.

Trunk:
Committed revision 1170424.

I will tackle proper reusability along with the other remaining Analyzers.

> Make QueryAutoStopWordAnalyzer immutable and reusable
> -----------------------------------------------------
>
>                 Key: LUCENE-3431
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3431
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: modules/analysis
>            Reporter: Chris Male
>            Assignee: Chris Male
>             Fix For: 3.5, 4.0
>
>         Attachments: LUCENE-3431-3x.patch, LUCENE-3431-trunk.patch
>
>
> Currently QueryAutoStopWordAnalyzer allows its list of stop words to be changed after instantiation through its addStopWords() methods.  This stops the Analyzer from being reusable since it must instantiate its StopFilters every time.
> Having these methods means that although the Analyzer can be instantiated once and reused between IndexReaders, the actual analysis stack is not reusable (which is probably the more expensive part).
> So lets change the Analyzer so that its stop words are set at instantiation time, facilitating reuse.

--
This message is automatically generated by JIRA.
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