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 15:39:09 UTC

[jira] [Created] (SOLR-2759) Remove the need for EDismax's ExtendedAnalyzer

Remove the need for EDismax's ExtendedAnalyzer
----------------------------------------------

                 Key: SOLR-2759
                 URL: https://issues.apache.org/jira/browse/SOLR-2759
             Project: Solr
          Issue Type: Improvement
          Components: search
            Reporter: Chris Male


ExtendedDisMaxQParserPlugin.ExtendedAnalyzer cannot be ported over to being reusable due to its support for deciding at runtime whether stopwords should be filtered or not.  

One way to resolve this is to maintain 2 lazy-initialized Map<String, Analyzer> in the ExtendedSolrQueryParser, one with the stopword filtering Analyzers for fields, the other with no-stopword filtering Analyzers.  Then ExtendedSolrQueryParser can override the QueryParserBase.newFieldQuery(Analyzer, String, String, boolean) and substitute in the appropriate Analyzer based on the runtime behavior desired at that time.

This will mean an ever so slight increase in memory consumption due to the 2 maps, but will allow for reusability which will reduce memory consumption and increase query throughput.

--
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] [Commented] (SOLR-2759) Remove the need for EDismax's ExtendedAnalyzer

Posted by "Chris Male (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2759?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13103650#comment-13103650 ] 

Chris Male commented on SOLR-2759:
----------------------------------

Actually, we only need the 1 Map which will contain the no-stopword filtering Analyzers, since we can just retrieve the other directly from the Schema (since it doesn't need to be altered).

> Remove the need for EDismax's ExtendedAnalyzer
> ----------------------------------------------
>
>                 Key: SOLR-2759
>                 URL: https://issues.apache.org/jira/browse/SOLR-2759
>             Project: Solr
>          Issue Type: Improvement
>          Components: search
>            Reporter: Chris Male
>
> ExtendedDisMaxQParserPlugin.ExtendedAnalyzer cannot be ported over to being reusable due to its support for deciding at runtime whether stopwords should be filtered or not.  
> One way to resolve this is to maintain 2 lazy-initialized Map<String, Analyzer> in the ExtendedSolrQueryParser, one with the stopword filtering Analyzers for fields, the other with no-stopword filtering Analyzers.  Then ExtendedSolrQueryParser can override the QueryParserBase.newFieldQuery(Analyzer, String, String, boolean) and substitute in the appropriate Analyzer based on the runtime behavior desired at that time.
> This will mean an ever so slight increase in memory consumption due to the 2 maps, but will allow for reusability which will reduce memory consumption and increase query throughput.

--
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] (SOLR-2759) Remove the need for EDismax's ExtendedAnalyzer

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

Chris Male updated SOLR-2759:
-----------------------------

    Attachment: SOLR-2759.patch

Simple patch which does what is described above.

> Remove the need for EDismax's ExtendedAnalyzer
> ----------------------------------------------
>
>                 Key: SOLR-2759
>                 URL: https://issues.apache.org/jira/browse/SOLR-2759
>             Project: Solr
>          Issue Type: Improvement
>          Components: search
>            Reporter: Chris Male
>         Attachments: SOLR-2759.patch
>
>
> ExtendedDisMaxQParserPlugin.ExtendedAnalyzer cannot be ported over to being reusable due to its support for deciding at runtime whether stopwords should be filtered or not.  
> One way to resolve this is to maintain 2 lazy-initialized Map<String, Analyzer> in the ExtendedSolrQueryParser, one with the stopword filtering Analyzers for fields, the other with no-stopword filtering Analyzers.  Then ExtendedSolrQueryParser can override the QueryParserBase.newFieldQuery(Analyzer, String, String, boolean) and substitute in the appropriate Analyzer based on the runtime behavior desired at that time.
> This will mean an ever so slight increase in memory consumption due to the 2 maps, but will allow for reusability which will reduce memory consumption and increase query throughput.

--
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] (SOLR-2759) Remove the need for EDismax's ExtendedAnalyzer

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

Chris Male resolved SOLR-2759.
------------------------------

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

Committed revision 1170425.

> Remove the need for EDismax's ExtendedAnalyzer
> ----------------------------------------------
>
>                 Key: SOLR-2759
>                 URL: https://issues.apache.org/jira/browse/SOLR-2759
>             Project: Solr
>          Issue Type: Improvement
>          Components: search
>            Reporter: Chris Male
>            Assignee: Chris Male
>             Fix For: 4.0
>
>         Attachments: SOLR-2759.patch
>
>
> ExtendedDisMaxQParserPlugin.ExtendedAnalyzer cannot be ported over to being reusable due to its support for deciding at runtime whether stopwords should be filtered or not.  
> One way to resolve this is to maintain 2 lazy-initialized Map<String, Analyzer> in the ExtendedSolrQueryParser, one with the stopword filtering Analyzers for fields, the other with no-stopword filtering Analyzers.  Then ExtendedSolrQueryParser can override the QueryParserBase.newFieldQuery(Analyzer, String, String, boolean) and substitute in the appropriate Analyzer based on the runtime behavior desired at that time.
> This will mean an ever so slight increase in memory consumption due to the 2 maps, but will allow for reusability which will reduce memory consumption and increase query throughput.

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