-->
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.  [ 6 posts ] 
Author Message
 Post subject: Search Result order changes on subsequent search
PostPosted: Thu Oct 09, 2008 5:43 pm 
Beginner
Beginner

Joined: Tue May 03, 2005 11:45 pm
Posts: 43
Hibernate version: 3.2.5 - hibernate search 3.0.1.ga

We have noticed that when executing the same search over and over we're getting slightly different ordering of the results. I don't believe any of the underlying data is changing for these records in the database via hibernate.

I would think this order would be completely static if none of the data is changing.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 13, 2008 5:30 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
Hi,

if the data is not changing and you are executing exactly the same search you would expect the same results. If you still have the problem, can you somehow reproduce this behavior and maybe create some sort of test harness?

--Hardy


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 15, 2008 2:42 pm 
Beginner
Beginner

Joined: Tue May 03, 2005 11:45 pm
Posts: 43
We have fields like last_update that change when the row in the database is modified. However this field isn't in the index but I'm wondering if this is an issue.

I'm going to upgrade to 3.1.0 Beta 1 and see if I still get this problem.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 15, 2008 3:56 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
is "last_update" updated by Java code through hibernate, or is there a DB trigger?

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


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 15, 2008 6:27 pm 
Beginner
Beginner

Joined: Tue May 03, 2005 11:45 pm
Posts: 43
We are updating that timestamp via java code. Why would this cause the order of search results to change?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 15, 2008 6:45 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
as Hardy said, a testcase could help a lot to understand what you are doing.

of course this shouldn't have any effect on the order.

_________________
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.  [ 6 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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.