? Success

User tests: Successful: Unsuccessful:

avatar chivitli
chivitli
5 Feb 2014

Results are truncated to a number of characters from the begining, so unless your query falls there, you won't see it in the results view, which may confuse user who did the search.

This improves the truncation so that the characters around the search query are shown. If it was the last word in the article, then chosen amount of characters before it will be shown (or after if it was at the begining), otherwise it aims for the search query to be in the middle of excerpt for optimal understanding.

If the match was not in the body of the description, then the first XXX characters will be shown like before.

Maybe such function would be useful to add to JHtml.string?

Tracker: http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=33290&start=0

avatar chivitli chivitli - open - 5 Feb 2014
avatar chivitli chivitli - change - 19 Jul 2014
Title
Improvement to result display in smart search
[#33290] Improvement to result display in smart search
avatar Kubik-Rubik
Kubik-Rubik - comment - 27 Jul 2014

@test @chivitli Works as described. The "preg_match" line could be moved under ther "length" line, else it works good.

Since we have two successful tests, moved to RTC.

avatar dbhurley dbhurley - change - 27 Jul 2014
Status New Closed
Closed_Date 0000-00-00 00:00:00 2014-07-27 10:29:34
avatar dbhurley dbhurley - close - 27 Jul 2014

Add a Comment

Login with GitHub to post a comment