Summary

Hello,

i am currently working on the search functionality of my project and found several issues and things to improve related to com_finder. One of it is the creation of search term suggestions (alternative search words).

In class JHtmlQuery.suggested the processing of $suggested is case-sensitive, which must not be like that. If i for instance do a search over my indexed items where each of it has a title containing "... Testobject ....", then i get matches only for a lower case search term like "test", but not for "Test". As soon as i change the responsible lines (140 and 149) inside the mentioned function from
$suggested = str_replace($token->term, $token->suggestion, $suggested);
to
$suggested = str_ireplace($token->term, $token->suggestion, $suggested);
i get matches for either case, which is much more user friendly and expected behavior.
Opened On:
22 Dec 2012, 9:49 by Tino Brackebusch
Closed On:
7 May 2013, 15:32
Status:
Closed

Filed Under

  • Apache 2.2.x
  • Components
  • Developer
  • MySQL 5.2.x

Responses

Posted on 7 May 2013, 15:32 by Brian Teeman
I am sorry but you have posted this in the tracker for Joomla 1.5 which is no longer supported and I am closing this. Please can you repost it in the appropriate tracker

Joomla 2.5.x http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemBrowse&tracker_id=11410

Joomla 3.x http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemBrowse&tracker_id=8103
Posted on 13 May 2013, 4:40 by Tino Brackebusch
Issue moved to http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=30929