osm-search / Nominatim

Open Source search based on OpenStreetMap data
https://nominatim.org
GNU General Public License v3.0
3.18k stars 714 forks source link

test_token problem #55

Closed andreabat closed 11 years ago

andreabat commented 11 years ago

Hello , installed from source, works great if querying directly the endpoint through rest calls. when calling from web interface I get the following error:

2013-05-08 12:22:16 CEST ERROR: relation "test_token" does not exist at character 43 2013-05-08 12:22:16 CEST STATEMENT: select *,levenshtein('v scoca',word) from test_token where (metaphone = dmetaphone('v scoca') or metaphonealt = dmetaphone('v scoca') or metaphone = dmetaphone_alt('v scoca') or metaphonealt = dmetaphone_alt('v scoca')) and len between length('v scoca')-2 and length('v scoca')+2 and levenshtein('v scoca',word) < 3 order by levenshtein('v scoca',word) asc, abs(len - length('v scoca')) asc limit 20

Have I missed something during the install phase ?

lonvia commented 11 years ago

Is it possible that you tried to enable suggestions? This is currently not really implemented.

andreabat commented 11 years ago

Right! Sorry for wasting your time.

lonvia commented 11 years ago

9cec9898829eda6e39cf0562eba1b33a7d161f98 removes the offending code to avoid further confusion.