Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 61506 invoked from network); 4 Jan 2006 17:39:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Jan 2006 17:39:12 -0000 Received: (qmail 72993 invoked by uid 500); 4 Jan 2006 17:39:09 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 72963 invoked by uid 500); 4 Jan 2006 17:39:09 -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 72951 invoked by uid 99); 4 Jan 2006 17:39:08 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jan 2006 09:39:08 -0800 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [217.146.177.37] (HELO web26015.mail.ukl.yahoo.com) (217.146.177.37) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 04 Jan 2006 09:39:08 -0800 Received: (qmail 78741 invoked by uid 60001); 4 Jan 2006 17:38:56 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.uk; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Xzm1J/nT7DPCpSkH8kWkyNzm0RdSXfn9xItMJ9MmmxlV34Of0jJUW9bNgrSYaaAkj2Rl04WNojTnwr3fEqz1FrUjr3gu+i/kmfvgmHGDO+nFZUjvEKtu3EM1Vzj74Vzzrpqz4+nbUxSr2g2J2+3mDmLsGnsc3u3uBsigvWbH1Wc= ; Message-ID: <20060104173856.78739.qmail@web26015.mail.ukl.yahoo.com> Received: from [193.36.230.96] by web26015.mail.ukl.yahoo.com via HTTP; Wed, 04 Jan 2006 17:38:56 GMT Date: Wed, 4 Jan 2006 17:38:56 +0000 (GMT) From: mark harwood Subject: Re: "Advanced" query language To: java-dev@lucene.apache.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N This example code looks interesting. If I understand correctly using this approach requires that builders like the "q" QueryObjectBuilder instance must be explicitly registered with each and every builder that consumes its type of output eg BQOB and FQOB. An alternative would be to register "q" just once with the parser as the provider of Query objects and let BQOB and FQOB and others look up the registered provider for the class (Query) at runtime. I presume doing it your way is a deliberate design choice in order to validate at compile time that a particular parser configuration has all of the necessary builders in place to support incoming XML. That seems like a reasonable approach. If I get some time I'll look at implementing something based on this. Cheers Mark ___________________________________________________________ Yahoo! Photos � NEW, now offering a quality print service from just 8p a photo http://uk.photos.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org