-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: How to combine the results of 2 searches (diff. fields)?
PostPosted: Wed Apr 30, 2008 1:17 pm 
Newbie

Joined: Wed Apr 30, 2008 12:10 pm
Posts: 6
Hi,

What i'm looking for is the following:

I want to search on e.g. Book.title and search in Author.name and combine (join) the results. Both queries will use different input terms (so words searched for in Author.name can not occur in Book.title unles you use the same words in that search input).
Is this possible (efficiently)? How?

Regards
Gerwin


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 01, 2008 3:58 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
you mean using Hibernate Search right?
did you see Lucene's BooleanQuery ?

you can use any Lucene query with Hibernate Search;
read more about Lucene and use Luke to experiment:
http://hibernate.org/446.html

regards,

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.