No Code Attached Yet bug
avatar crystalenka
crystalenka
26 Jan 2023

Steps to reproduce the issue

This has a lot of steps folks, sorry about that. I promise they're all necessary to reproduce this issue.

  1. On a Joomla site with multiple content languages set up, create a category named "Parent" with language set to "All".
  2. Create one category for each language. Make sure the language is set appropriately, and set the parent category to "Parent". CAUTION: Do not try to bulk move categories from different languages into the parent category. Things break. No good. I will be filing another issue about it, but it's unrelated. (I think.)
  3. Create one article for each language, added to the respective category and with language set appropriately. Make sure there's searchable content in there, even lorem ipsum.
  4. Make sure smart search has properly indexed and mapped all the categories and articles.
  5. Add a menu item for search, and do a test search in the front end to make sure it is working as expected.
  6. In the back end, Create a search filter, and in "Search by Category" select "Parent" from step 1. Save and close
  7. In the front end, go to the search page, refresh, and do the same test search.

Expected result

Search provides results, but filtered by the selected category

Actual result

"No Results Found
No search results in English (en-GB) could be found for query:"

System information (as much as possible)

Joomla 4.2.6, 4.2.7-RC2-dev
PHP 8.1

Additional comments

Possibly related issues: #38957, #38201

Also an interesting observation that I have seen both times I have reproduced this (once with real data, once on a test site). The "Parent" category, which has language set to all, shows up with a language attached in the content map:

Screenshot 2023-01-26 at 13 27 50

vs the real setting in the category list:

Screenshot 2023-01-26 at 13 28 19

I tested whether selecting all content maps, or selecting only maps that are a "type", etc etc did anything—it does not change the behavior. The moment there is a filter applied, the search does not work. If you remove the filter, the search works fine.

I also tried clearing the index and reindexing, and that has no effect—the behavior is consistent.

Tagging @Hackwar since he is the search master and this is a funky bug!

avatar crystalenka crystalenka - open - 26 Jan 2023
avatar joomla-cms-bot joomla-cms-bot - change - 26 Jan 2023
Labels Added: No Code Attached Yet bug
avatar joomla-cms-bot joomla-cms-bot - labeled - 26 Jan 2023
avatar Hackwar
Hackwar - comment - 30 Jan 2023

Please have a look at PR #39751

avatar richard67 richard67 - close - 30 Jan 2023
avatar richard67
richard67 - comment - 30 Jan 2023

Closing as having a pull request. Please test #39751 . Thanks in advance.

avatar richard67 richard67 - change - 30 Jan 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-01-30 15:50:03
Closed_By richard67
avatar Hackwar
Hackwar - comment - 8 Feb 2023

The pull request does not solve the issue. Reopening.

avatar Hackwar Hackwar - change - 8 Feb 2023
Status Closed New
Closed_Date 2023-01-30 15:50:03
Closed_By richard67
avatar Hackwar Hackwar - reopen - 8 Feb 2023
avatar Hackwar Hackwar - close - 27 Feb 2023
avatar Hackwar
Hackwar - comment - 27 Feb 2023

Please have a look at both #39751 and #39961. These two combined should fix this issue. Closing again as we have a PR.

avatar Hackwar Hackwar - change - 27 Feb 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-02-27 23:46:09
Closed_By Hackwar

Add a Comment

Login with GitHub to post a comment