Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 74408 invoked from network); 27 Aug 2008 19:00:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Aug 2008 19:00:08 -0000 Received: (qmail 33229 invoked by uid 500); 27 Aug 2008 19:00:04 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 33191 invoked by uid 500); 27 Aug 2008 19:00:03 -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 33051 invoked by uid 99); 27 Aug 2008 19:00:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Aug 2008 12:00:03 -0700 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; Wed, 27 Aug 2008 18:59:14 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 92CE8234C1BA for ; Wed, 27 Aug 2008 11:59:44 -0700 (PDT) Message-ID: <2019811103.1219863584600.JavaMail.jira@brutus> Date: Wed, 27 Aug 2008 11:59:44 -0700 (PDT) From: "Yonik Seeley (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Commented: (LUCENE-1061) Adding a factory to QueryParser to instantiate query instances In-Reply-To: <19989690.1195506763431.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-1061?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12626253#action_12626253 ] Yonik Seeley commented on LUCENE-1061: -------------------------------------- In this specific instance I think subclassing of QueryParser is the right way to go, and avoids introducing another class. People are going to want more customizations than just changing the types of created subclauses, and will need to subclass for these other types of changes anyway. > Adding a factory to QueryParser to instantiate query instances > -------------------------------------------------------------- > > Key: LUCENE-1061 > URL: https://issues.apache.org/jira/browse/LUCENE-1061 > Project: Lucene - Java > Issue Type: Improvement > Components: QueryParser > Affects Versions: 2.3 > Reporter: John Wang > Fix For: 2.4 > > Attachments: lucene_patch.txt > > > With the new efforts with Payload and scoring functions, it would be nice to plugin custom query implementations while using the same QueryParser. > Included is a patch with some refactoring the QueryParser to take a factory that produces query instances. -- 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