klokantech / osmnames-sphinxsearch

Geocoder search engine for OSMNames.org data powered by sphinx search
https://osmnames.org/
MIT License
76 stars 24 forks source link

Russion query returns 400 BAD REQUEST #38

Open klokan opened 7 years ago

klokan commented 7 years ago

Sample query: ялча

http://search.osmnames.org/q/%D1%8F%D0%BB%D1%87%D0%B0.js

Reported by @komzpa at https://twitter.com/komzpa/status/783722445228351488

The CORS is not a problem (I see the Access-Control-Allow-Origin: * header).

The problem is probably status code 400 BAD REQUEST - returned by Flask for some reason.

It may be also related to required improvement of Unicode charset indexing, where we need to improve Sphinx search config. See #20

klokan commented 7 years ago

It can be solved by applying unidecode on the index #20 as well as the query.