Search limit to 3 caracters

More
6 years 6 months ago #21492 by sylvain
Hi all and happy new year,

The need is quite simple, my users have to be able to search simple words as CO2 etc... containing only 3 caracters.
I ve suppose to have removed the joomla limitation by updating limit defined here
/JOOMAL_DIR/administrator/components/com_search/helpers/search.php
but it seems that there is another limit in flexicontent search engine.
Could you help me to customize/remove this limit

Thks in advance

Please Log in or Create an account to join the conversation.

More
6 years 6 months ago #21561 by iamrobert
I am using the latest flexicontent. My solution is probably hacky but my site is in Chinese so needs to be 1 or 2 characters...

1. components > com_flexicontent > views > search

Line 168 - set minchars & maxchars - I changed to 1 & 15:
//limit searchword
$min = $params->get('minchars', 1);
$max = $params->get('maxchars', 15);

2. You can also do it in the .xml file - but it didn't seem to change for me:
components > com_flexicontent > views > search > default.xml

Line 26
<param name="minchars" type="text" default="1" label="Minimum length" description="Minimum character length the search words are allowed to have" />
<param name="maxchars" type="text" default="15" label="Maxmum length" description="Maximum characters length the search words are allowed to have" />

You may need to publish this hack to stop errors displaying:
http://www.flexicontent.org/phpbb/viewt ... ?f=29&t=10

Final Example:
http://www.hernia.com.tw/test/search?se ... wXLQNTkC6_

Regards,

Robert

Please Log in or Create an account to join the conversation.

More
6 years 6 months ago #21566 by micker
Replied by micker on topic Search limit to 3 caracters
great tips thanks !

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
© 2018 Flexicontent. All Rights Reserved.