Low search and non-latin languages
Hello! I think Low Search is having some issues with non-latin languages. (Greek for example) It seems to ignore excerpt length. It always displays the full text of the entry. Highlight keywords is also ignored. I am guessing this is because to the characters encoding. I entered an entry in English and the results are correct, excerpt length is taken into account and highlight keywords works fine.
Is this fixable? Can we use those features with non-latin languages?
Thanks!
Replies
Low 29 Dec 2014 16:54
Hmm, that might be due to multibyte support. Does your server support Multibyte String?
LS doesn't fully utilize those options, but it could. Won't be a quick fix, but I'll take a look soon.
Diadyo 30 Dec 2014 14:39
Thanks for the quick reply (as always) :)
Checking the multibyte string and will reply - I was not aware of this function.
Diadyo 5 Jan 2015 10:40
Hi Low. Checked with multibyte string. Our site is on Rackspace Cloud Sites. Phpinfo shows mbstring but I am not sure if its enabled or not. Can you tell from this screencast (http://screencast.com/t/GafKdEdkB)?
Even if this is enabled do you still have to make changes in order for this to work?
Thank you!
Low 5 Jan 2015 10:42
I'm about to release an update to address this, later today or tomorrow at the latest. Stay tuned.
Low 5 Jan 2015 14:55
Try out version 3.3.4 and see if that helps.
Diadyo 5 Jan 2015 23:48
Thanks Low - it seems to be working! That was really fast!
One thing I cannot figure out. In order to create a form with loose_ends I try this
{exp:low_search:form required="keywords" loose_ends="both"}
however it does not make any difference, when I search part of a word no results are returned. Am I doing something wrong?
Thanks again
Diadyo 5 Jan 2015 23:55
ok - a bit tired as it seems. That needs to go to the results tag :)
all good now!
Thanks Low!
Diadyo 6 Jan 2015 00:03
Back again - I found the following small bug(?)
Greek words have accents. When I search a word without an accent I get correct results but highlighting is not working. For example when I search the keyword ανά I get highlighted results (http://screencast.com/t/Qs1iaQNRZ) but when I search the same keyword without the accent I get the results but no words are highlighted. Is this fixable or this is normal?
Thank you
Low 6 Jan 2015 09:35
I'm afraid highlighting keywords is diacritic-sensitive at the moment. It's on my list to tackle, but it's a lot trickier than it seems.
Diadyo 6 Jan 2015 10:46
That's fine - thanks once again :)