-->
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: Hibernate search by state
PostPosted: Mon Jan 28, 2013 10:34 pm 
Regular
Regular

Joined: Fri Feb 04, 2011 8:34 pm
Posts: 66
Hi, With hibernate search 4.2.0, is possible to perform a search by state rather than latitude and longitude?
eg. User may just enter CA (or California) without selecting a city, then click on the search button.
How to retrieve all results for CA?

Thanks
samuel


Top
 Profile  
 
 Post subject: Re: Hibernate search by state
PostPosted: Tue Jan 29, 2013 7:55 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
We don't include a database of coordinates by city, but you can certainly load such information in your DB and use it for distance queries.

If you just want to search by state name rather than "distance in miles", well that's trivial it has always been possible as you don't need Spatial for that.

_________________
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.  [ 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.