Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 89DC0D50A for ; Thu, 11 Oct 2012 22:39:06 +0000 (UTC) Received: (qmail 52159 invoked by uid 500); 11 Oct 2012 22:39:03 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 52066 invoked by uid 500); 11 Oct 2012 22:39:03 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 51785 invoked by uid 99); 11 Oct 2012 22:39:03 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Oct 2012 22:39:03 +0000 Date: Thu, 11 Oct 2012 22:39:02 +0000 (UTC) From: "Danny Dvinov (JIRA)" To: dev@lucene.apache.org Message-ID: <1411213496.33444.1349995143021.JavaMail.jiratomcat@arcas> In-Reply-To: <157227149.41659.1326576759652.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (SOLR-3039) ExtendedDismaxQParser should allow for extension of parsing-related behavior MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SOLR-3039?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Danny Dvinov updated SOLR-3039: ------------------------------- Attachment: SOLR-3039.patch Changes include: - Making ExtendedDismaxQParser public to allow implementations that can extend it (and pulling it out into a separate file, ExtendedDismaxQParser.java). - Making ExtendedSolrQueryParser protected to allow to allow implementations that can extend it. - Introducing 3 protected methods on ExtendedDismaxQParser to allow implementations that extend ExtendedDismaxQParser to override some of the behavior: 1. ExtendedSolrQueryParser getQueryParser to allow specifying the parser used to parse the query. 2. boolean includeClause(Clause clause) to allow overriding whether given clause should be part of the {@link org.apache.lucene.search.Query} being parsed. 3. String preProcessUserQuery(String queryString) to allow pre-processing the query string prior to parsing. > ExtendedDismaxQParser should allow for extension of parsing-related behavior > ---------------------------------------------------------------------------- > > Key: SOLR-3039 > URL: https://issues.apache.org/jira/browse/SOLR-3039 > Project: Solr > Issue Type: Improvement > Components: query parsers > Affects Versions: 5.0 > Reporter: Danny Dvinov > Priority: Minor > Labels: edismax, parser, parsing > Fix For: 5.0 > > Attachments: SOLR-3039.patch, SOLR-3039.patch, SOLR-3039.patch, SOLR-3039.patch > > Original Estimate: 24h > Remaining Estimate: 24h > > ExtendedDismaxQParser.parse does not currently allow for things like query pre-processing prior to its parsing, specifying the parser to be used, and whether particular clause should be included in the query being parsed. Furthermore, ExtendedDismaxQParser and inner ExtendedSolrQueryParser cannot be subclassed. By resolving this issue, we'll provide a way for Solr implementations to extend the parser and parsing related behavior. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators 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