lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mark harwood <markharw...@yahoo.co.uk>
Subject Re: "Advanced" query language
Date Wed, 04 Jan 2006 17:38:56 GMT
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


Mime
View raw message