Partial keyword search problem
Hi there,
I have a problem with searching by a keyword which can be part of other word. The search is finding only exact matched, though Default search mode is set to Any word.
E.g. if I search for "prayer" it does NOT find records where "prayers" is present, only those with "prayer",
The form setup is really basic:
{exp:low_search:form channel="question-answer" result_page="question-answer/search-results" form_id="question-search-form"}
Is that a limitation or do I miss something?
Yuri
Replies
Low 6 Jan 2014 09:02
You're looking for the loose_ends parameter. Use a hidden form element, or set it on the Results tag.
Yuri Salimovskiy 6 Jan 2014 10:47
Thank you - but I'm using search form, not filtering. I tried adding loose_ends="both" both to form and results tag, but that did not help.
Low 6 Jan 2014 10:55
You are filtering by keywords, which are entered using a form. At least, I assume you're using an input field with name="keywords" in your search form.
Setting loose_ends="right" on the Results tag should work. Setting it on the Form tag will have no effect.
Yuri Salimovskiy 6 Jan 2014 11:03
I guess it should work, but it does not =(
Here's my template tag:
{exp:low_search:results limit="10" sticky="no" loose_ends="both" status="open|closed" disable="member_data|categories|category_fields|comments" query="{segment_3}" paginate="bottom" paginate_base="question-answer/_search/{segment_3}"}
Not sure if that matter, but I'm using Publisher on this site for multi-lingual content
Low 6 Jan 2014 11:16
I'll need to take a look myself. Please send SuperAdmin login credentials to hi at gotolow dot com if you can.
Low 6 Jan 2014 12:05
For visibility: the default search mode was set to Automatic, which ignores the loose_ends parameter. Setting it to Any solved the issue.