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 16:31:09 UTC

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

     [ 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