[ 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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org