Re: newbie question on querying on multiple attributes

2008-12-16 Thread Hardy Ferentschik
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

Re: newbie question on querying on multiple attributes

2008-12-16 Thread Stephane Nicoll
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 On Tue, Dec