Replies: 2 comments 4 replies
-
Could you please have a look at the PostgreSQL logs (usually You could also see what happens if you run the bad query on the database directly: |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I installed nomitaim following the instruction https://nominatim.org/release-docs/3.7.0/appendix/Install-on-Ubuntu-20/. Then i import the database as explain at https://nominatim.org/release-docs/3.7.0/admin/Import/ .
I 've done it twice, once i import the full planet, twice juste europe.
Il import the admin-style as i juste need city, not road etc...
the import is find, when it check, no error message, everything looks fine.
So i try to start the server
nominatim serve and then lynx http://localhost:8088/status.php which return ok
but when I try lynx http://localhost:8088/search.php?q=Berlin i recieved an error 500 internal server error. If i try with debug=1
Debug output for Geocode::lookup
Geocode: 'Query' => 'Berlin'
'Structured query' => False
'Name keys' => 'name:en', 'name', 'brand', 'official_name:en', 'short_name:en', 'official_name', 'short_name', 'ref', 'type'
'Excluded place IDs' =>
'Try reversed query' => True
'Limit (for searches)' => 20
'Limit (for results)' => 10
'Country codes' =>
'Bounded search' => False
'Viewbox' =>
'Route points' =>
'Route width' => False
'Max rank' => 20
'Min address rank' => 0
'Max address rank' => 30
'Address rank list' =>
_________________________________________________________________________________________________________________________________
Query Preprocessing
Normalized query: 'berlin'
Search context: 'Near radius' => False
'Near point (SQL)' => ''
'Bounded viewbox' => False
'Viewbox (SQL, small)' => ''
'Viewbox (SQL, large)' => ''
'Viewbox (SQL, centre)' => ''
'Countries (SQL)' => ''
'Excluded IDs (SQL)' => ''
Base search: 'Search rank' => 0
'Country code' => ''
'Name terms' =>
'Name terms (stop words)' =>
'Address terms' =>
'Address terms (stop words)' =>
'Address terms (full words)' => ''
'Special search' => 0
'Class' => ''
'Type' => ''
'House number' => ''
'Postcode' => ''
Final query phrases: 0 => 'Berlin'
_________________________________________________________________________________________________________________________________
Tokenization
Tokens: ' berlin' => ' berlin'
'berlin' => 'berlin'
SELECT word_id, word_token, word, class, type, country_code, operator, coalesce(search_name_count, 0) as count FROM word WHERE
word_token in (' berlin','berlin')
Valid Tokens:
429021
'word'
'partial' => False
'count' => 0
berlin
158052
'word'
'partial' => True
'count' => 7514
Phrases:
''
'berlin'
0 => 'berlin'
0 => 0 => 'berlin'
_________________________________________________________________________________________________________________________________
Search candidates
rank Name Tokens Name Not Address Tokens Address Not country operator class type postcode housenumber
1 # berlin(429021)#
2 #berlin(158052)#
_________________________________________________________________________________________________________________________________
Search Loop, group 1, loop 1
rank Name Tokens Name Not Address Tokens Address Not country operator class type postcode housenumber
1 # berlin(429021)#
SELECT place_id, address_rank, ( SELECT count(*) FROM ( SELECT unnest(ARRAY[429021]) INTERSECT SELECT unnest(nameaddress_vector) ) s)
as exactmatch FROM search_name WHERE name_vector @> ARRAY[429021] ORDER BY (CASE WHEN importance = 0 OR importance IS NULL THEN
0.75001-(search_rank::float/40) ELSE importance END) DESC, exactmatch DESC LIMIT 20
{"error":{"code":500,"message":"Could not get places for search terms.","details":"/usr/local/lib/nominatim/lib-php/DB.php(187)"}}
. Thanks for your help
Mathilde
Beta Was this translation helpful? Give feedback.
All reactions