Hibernate Books

All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Double attribute question
PostPosted: Mon Dec 22, 2008 11:39 pm 
Beginner
Beginner

Joined: Mon Aug 22, 2005 1:22 am
Posts: 36
After researching some, I have a question in regards to double based attributes.

In the lucene docs, it appears that to speed up searching against double values, it is recommended to convert the value to a more sortable especially if negative numbers are used. The docs recommend using [url]
http://svn.apache.org/viewvc/incubator/ ... rev=382610[/url] to convert to a sortable value.

I looked at the built-in DoubleBridge and it doesn't use this function.

My questions are:
- is the built-in DoubleBridge adequate for searching/sorting?
- or should I create a SortableDoubleBridge that utilizes the Lucene recommended approach?

Has any one else used double based values in the searching? which implementation was used?

Hopefully I made my point clear.

Thanks
- Doug


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 31, 2008 8:05 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2296
Location: Third rock from the Sun
thanks for the valuable information.
I don't remember to have used the DoubleBridge recently; did you test it?
I often use other number bridges and I never had a problem with sorting.
In case you need to build your own SortableDoubleBridge we should include it in Search; however this would break backwards compatibility as the indexed terms are going to be different.

I'll open a task so this is not lost, if you can make a test and attach it that would be very helpful:
http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-331

thanks

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 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.