meraklija_nis
Member
Posted 2 years ago #
My site is in Cyrillic. When user enter the keyword with Latin, search result is not good. How can I change search keyword from Latin to Cyrillic alphabet. I have script for converting text, but I can not find where to use it in function.php (which begins search mechanism).
meraklija_nis
Member
Posted 2 years ago #
That's not what I need. Cyrillic search works well if keyword is entered with Cyrillic, but I want to convert Latin keyword to Cyrillic to get a good result too.
meraklija_nis
Member
Posted 2 years ago #
These words are the same (Cyrillic and Latin alphabet):
тест and test
слика and slika
наслов and naslov
Wordprss search to find the word "тест" that is written in Cyrillic and it is ok if user enter keyword as "тест".
But, the user enter the keyword with Latin alphabet as "test" and wordpress search can not find that word.
I need to convert keyword from Latin to Cyrillic before search.
I ask how, in function.php or elsewhere, to convert keyword before search.
I dont need to converting characters in database. I use utf8 and there is all right.
Vuk Stanković
Member
Posted 1 year ago #
I know this is old thread, but I wonder if you resolved your problem.
Što bi rekli po naški, jel si rešio?
meraklija_nis
Member
Posted 1 year ago #
Unfortunately, I did not solve the problem
(Нисам, претрага ради само са ћирилицом)