lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hardy Ferentschik" <>
Subject Re: newbie question on querying on multiple attributes
Date Tue, 16 Dec 2008 16:06:43 GMT

instead of the ClassBridge you can just annotate all the properties you  
want to index with
@Field and build a BooleanQuery out of the input field. Indexing the  
properties into
separate document fields is probably more extendable in the future when  
you for example
only want to search on a subset of the properties.

I recommend you read through the online documentation of Hibernate Search  
and you can also
ask question at the Hibernate Search Forum -
which is probably a more appropriate then this mailing list.


On Tue, 16 Dec 2008 16:57:44 +0100, Stephane Nicoll  
<> wrote:

> Consider the use of the ClassBridge in Hibernate Search. Very useful. It
> basically allows you to merge multiple fields of your hibernate entity  
> into
> a single lucene field. Once this is done, you can query this single field
> from lucene without the need for BooleanQuery.
> HTH,
> St├ęphane

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

View raw message