-->
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.  [ 3 posts ] 
Author Message
 Post subject: Giving the sort job to the database
PostPosted: Mon Aug 24, 2009 7:47 am 
Newbie

Joined: Tue Jul 14, 2009 6:13 am
Posts: 12
Is there a way to get the results the normal way via FullTextQuery, but letting the "sort job" for the database? Or is it only possible to sort via the "setSort"-method from the FullTextQuery object.


Top
 Profile  
 
 Post subject: Re: Giving the sort job to the database
PostPosted: Wed Aug 26, 2009 6:16 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
No that's not possible, a FullTextQuery needs to be sorted the full-text way; that's because there could be a lot of matches but using pagination only the needed subject for current page is loaded from DB: to define which entities will be loaded the sort must happen before the fetch-from-DB step.

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


Top
 Profile  
 
 Post subject: Re: Giving the sort job to the database
PostPosted: Thu Aug 27, 2009 7:18 am 
Newbie

Joined: Tue Jul 14, 2009 6:13 am
Posts: 12
thanks for the explanation.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.