Hi,

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 - http://forum.hibernate.org/viewforum.php?f=9
which is probably a more appropriate then this mailing list.

--Hardy

On Tue, 16 Dec 2008 16:57:44 +0100, Stephane Nicoll <stephane.nic...@gmail.com> 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: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to