klokantech/osmnames-sphinxsearch

Russion query returns 400 BAD REQUEST

Opened this issue · 1 comments

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

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