Search limit to 3 caracters

More
12 years 3 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
12 years 3 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:
Code:
//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
Code:
<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:
www.flexicontent.org/phpbb/viewt ... ?f=29&t=10

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

Regards,

Robert

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

More
12 years 3 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
Time to create page: 0.269 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline