lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mark harwood <>
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.


Yahoo! Photos – NEW, now offering a quality print service from just 8p a photo

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message