-->
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: minus sign in range
PostPosted: Wed Apr 15, 2009 6:57 am 
Newbie

Joined: Thu Apr 02, 2009 8:05 am
Posts: 4
Hi

in my project I have the following indexed class:

class Photo {
...
Float longitude;
...
}

the float number indexed with mask "%09.4f" so longitude stored as
0011.1234 or -111.2345

querying with positive number range works, like

longitude:[0010.0123 TO 0015.3445]

querying for a given negative value also works:
longitude:-111.2345

but it fails with negative range
longitude:[-110.0000 TO -115.0000]

I tried to escape the minus sign but that does not help
I tried to find it out using Luke but failed...

both my code and luke uses ConstantScoreRangeQuery

can anybody help ??

thanks

Gabor


Top
 Profile  
 
 Post subject: my fault
PostPosted: Wed Apr 15, 2009 7:51 am 
Newbie

Joined: Thu Apr 02, 2009 8:05 am
Posts: 4
Hi

looks like it was my fault :)
index=Index.UN_TOKENIZED solved it

Gabor


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.