This commit is contained in:
Schuyler Erle 2011-08-31 03:24:06 -07:00
commit 50fe1fb71c

View File

@ -24,7 +24,7 @@ class FeatureSearchManager(models.GeoManager):
cursor = connection.cursor()
cursor.execute("""SELECT set_limit(%f)""" % threshold)
def find(self, bbox=None, text=None, adm1=None, adm2=None, threshold=0.35, srid=4326):
def find(self, bbox=None, text=None, adm1=None, adm2=None, threshold=0.5, srid=4326):
qset = self.get_query_set()
if bbox:
(minx, miny, maxx, maxy) = bbox