[hibernate-dev] [HSearch] DSL for Lucene queries (was: Re: [infinispan-dev] Query module new API and configurations)

Hardy Ferentschik hibernate at ferentschik.de
Wed Aug 26 16:08:21 EDT 2009


On Wed, 2009-08-26 at 13:39 +0200, Emmanuel Bernard wrote:
> I've been thinking about a DSL to build Lucene queries in the last
> day.
> What do you think of this proposal?

What do you really gain compared to native Lucene queries?
If your API achieves exactly the same as what's possible with Lucene 
it is just a 'useless' wrapper. 

A wrapper around native Lucene queries would make sense if it could
somehow use some of the Hibernate Search specific meta data. As an
extreme example one could generate some meta classes a la JPA2. This way
one could ensure that you can get help with which field names are
available. 

--Hardy




More information about the hibernate-dev mailing list