Low Search returns no results (japanese based site)
Version Info:
EE 2.10.3
PHP 5.6.17
LS 4.4.3
I have a Japanese based site where I am trying to implement low search.
I have set a collection for my products channel and set the field weights and clicked the index/lexicon build (lexicon tab states 682 words in lexicon).
In almost every case, the search returns no results.
The funny thing about this is that I can run the same keyword search via EE's default search and return many results.
Where can I start to check for problems?
I am trying to use the example search:form and search:results tags found in the documentation:
{exp:low_search:form required="keywords"}
and
{exp:low_search:results
status="open"
query="{segment_3}"
collection_lang="ja"
keywords:mode="any"
keywords:loose="yes"
limit="10"
}
I have tried the search:results tag with no parameters as well with no change in results.
I'd greatly appreciate any advice.
Thanks!
Replies
Matthew Williams 12 May 2016 03:36
Just to add a note to this,
It seems that I can get some results if the keyword length is a bit longer, but it only seems to find keywords based on the title of the entry, even though I have the relevant field(s) weight set to 3 in the collection settings.
for example,
(メンズシャツ) mens shirt returns 189 entries
but
(メンズ) mens
(シャツ) shirt
only returns no results.
EE search for mens returns 189 entries
and shirt returns 226.
Template debugger shows
Applying Low_search_filter_keywords
Keywords メンズ
starting search (fallback)
searched but found nothing
filters found no matches, returning no results
Low 12 May 2016 07:58
It's probably because Japanese doesn't use spaces as word delimiters. Try and set keywords:loose="both" to search for substrings, ie without spaces.
Matthew Williams 12 May 2016 10:09
Low,
Thank you for the quick reply.
Setting keywords:loose="both" seems to have done the trick!
Thank you again!!