-->
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.  [ 4 posts ] 
Author Message
 Post subject: [Hibernate Search] Problem with a query
PostPosted: Fri Jun 08, 2007 8:24 am 
Regular
Regular

Joined: Wed Apr 25, 2007 10:29 am
Posts: 110
Location: France
Hello,

I have a query for documents.duree.

If my query is documents.duree:[0 TO 99], I have results.
If my query is documents.duree:[0 TO 100], I have no results.


Image

Image

I don't understand where is the problem.

Thank you.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 08, 2007 10:05 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Because in the grand scheme of String comparison 100 < 99

Check for padding in the Lucene documentations. Also look at the Hibernate Search unit test suite, there is a PaddedIntegerBridge
It might be of use to you.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 08, 2007 10:07 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Yu can check here too http://www.hibernate.org/hib_docs/search/reference/en/html_single/#d0e897

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 08, 2007 10:18 am 
Regular
Regular

Joined: Wed Apr 25, 2007 10:29 am
Posts: 110
Location: France
Thank you very much Emmanuel, I will try.


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