The page is reloaded and the position order is changed according to the selected criterion.
Nothing happens
Labels |
Added:
?
|
Status | New | ⇒ | Confirmed |
Category | ⇒ | com_search UI/UX |
Looks like this is due to the $relevance
variable in the search content plugin.
It is defined in the query as
$relevance[] = ' CASE WHEN ' . $wheres2[0] . ' THEN 5 ELSE 0 END ';
a var_dump($relevance);
gives when searching for "joomla"
array(1) { [0]=> string(67) " CASE WHEN LOWER(a.title) LIKE LOWER('%joomla%') THEN 5 ELSE 0 END " }
Then further, we have.
if (!empty($relevance))
{
$query->select(implode(' + ', $relevance) . ' AS relevance');
$order = ' relevance DESC, ' . $order;
}
If I comment $order = ' relevance DESC, ' . $order;
then ordering works fine.
Any way it does not change order on the fly. One has to click on Search again.
The $relevance
variable was added in #20197
and I (as others) tested it OK at the time...
@alikon ?
If I search for something else than "Joomla", then it works OK
Status | Confirmed | ⇒ | Discussion |
Labels |
Added:
J3 Issue
|
@zwiastunsw i've analyzed the issue posted
this is a 3rd one ? or I'm wrong ?
this is a 3rd one ? or I'm wrong ?
I understand
Wait a minute. Sorry. Sorry.
There's only a UX problem here. The filter works for a new search. Earlier @brian Teeman explained.
Therefore, it should be on the site before the search form. Or there should be information that you can change the way you organize the results of the new search.
are you suggesting that some better explanation should be done in the docs.joomla.org ?
Just a minute. I'll test it again. Because I have strange behavior.
It is not a filter/sort of the results.
It is for new searches. That's why it is positioned next to the search box and not next to the results.
It has always been this way.
I accept your opinion.
I think this issue should be closed and a new one should be opened to define the issue of incorrect filter working.
Again the result order give priority when the searched word is present on the title
Title |
|
AS stated above by the original reporter this should be closed
Status | Discussion | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-01-03 23:16:48 |
Closed_By | ⇒ | Quy |
Issue confirmed. Change Results for Example to "Oldes first" and click again on "Search"-Button didn't show oldest Article first (similaer Alphabetical Order).
No Errors on Console.
System information
CloudAccess.net