Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 78397 invoked from network); 8 Oct 2009 05:07:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Oct 2009 05:07:56 -0000 Received: (qmail 85630 invoked by uid 500); 8 Oct 2009 05:07:55 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 85543 invoked by uid 500); 8 Oct 2009 05:07:55 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 85535 invoked by uid 99); 8 Oct 2009 05:07:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Oct 2009 05:07:55 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Oct 2009 05:07:52 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 47E56234C1EC for ; Wed, 7 Oct 2009 22:07:31 -0700 (PDT) Message-ID: <1994220575.1254978451280.JavaMail.jira@brutus> Date: Wed, 7 Oct 2009 22:07:31 -0700 (PDT) From: "Adriano Crestani (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Commented: (LUCENE-1938) Precedence query parser using the contrib/queryparser framework In-Reply-To: <951890738.1254438143770.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-1938?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12763365#action_12763365 ] Adriano Crestani commented on LUCENE-1938: ------------------------------------------ {quote} I looked at the pipeline PrecedenceQueryNodeProcessorPipeline, it contains some complex logic off removing a processor from the StandardQueryNodeProcessorPipeline. I think it would be better to have a common ancestor, CommonQueryNodeProcessorPipeline, that both StandardQueryNodeProcessorPipeline and PrecedenceQueryNodeProcessorPipeline can extend. {quote} I don't think it's so complex, it just removes GroupQueryNodeProcessor and adds ModifierQueryNodeProcessor (I think this is the class name). I also added this description to the javadocs. Anyway, I would prefer to leave it like that, extending StandardQPP, instead of creating a common pipeline. The common pipeline would not make much sense right now, there is not QueryBuilder impl that would produce a correct Query instance from a query tree processed by it, so no one could just use it. In future, we could have a third QP implementation, that instead of replacing GroupQueryNodeProcessor by ModifierQueryNodeProcessor, it would replace another processor, or switch the processors position, etc... the CommonQueryNodeProcessorPipeline would not make sense anymore, it only make sense right now for PrecedenceQP and StandardQP, because we know what both have in common, but doesn't mean a third QP would have the same in common. So, +1 to leave it the way it's. > Precedence query parser using the contrib/queryparser framework > --------------------------------------------------------------- > > Key: LUCENE-1938 > URL: https://issues.apache.org/jira/browse/LUCENE-1938 > Project: Lucene - Java > Issue Type: New Feature > Components: contrib/* > Affects Versions: 2.9 > Reporter: Adriano Crestani > Assignee: Adriano Crestani > Priority: Minor > Fix For: 3.1 > > Attachments: LUCENE-1938.patch > > > Extend the current StandardQueryParser on contrib so it supports boolean precedence -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org