Joomla search not working for tagged results after migration

Need help upgrading your Joomla! website or converting to Joomla! 4.x?

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
Jentoo
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Sun Feb 20, 2022 3:06 pm

Joomla search not working for tagged results after migration

Post by Jentoo » Thu Sep 29, 2022 10:42 pm

I have migrated one of my sites to Joomla 4 and in Joomla 3 I was using the Joomla search module.

After migration the search still works fine for any results that are normal articles, but I have a number of pages that display a list of articles by tags and these are not working when appearing in the search results.

The site is located here:

https://www.yorkluxuryholidays.co.uk/devj4/

Search for example 'child friendly' and choose the first result, which should take you to the page:

https://www.yorkluxuryholidays.co.uk/de ... d-friendly

but instead it produces this URL:

https://www.yorkluxuryholidays.co.uk/de ... gory&id=16

with the following message:

Info There are no articles in this category. If subcategories display on this page, they may have articles.


I thought about trying to use the new smart search module, but although I can create a new smart search module, I can't seem to access the indexing feature described in documentation. I am missing the option 'Smart Search' under the components menu. I'd be perfectly happy with the ordinary search if I can get it to work.

Thank you x

User avatar
sozzled
Joomla! Master
Joomla! Master
Posts: 13084
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia

Re: Joomla search not working for tagged results after migration

Post by sozzled » Thu Sep 29, 2022 10:49 pm

Jentoo wrote:
Thu Sep 29, 2022 10:42 pm
I have migrated one of my sites to Joomla 4 and in Joomla 3 I was using the Joomla search module [not the smart search module].
You do know, of course, that the old J! 3.x search component was removed from J! 4.x and the only search facility available in J! 4.x is the smart search one? ???
“If you think I’m wrong then say, ‘I think you’re wrong.’ If you say ‘You’re wrong!’, how do you know?”
Walking the talk: https://j4xdemo.enduring.com.au
:)

Jentoo
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Sun Feb 20, 2022 3:06 pm

Re: Joomla search not working for tagged results after migration

Post by Jentoo » Thu Sep 29, 2022 11:36 pm

sozzled wrote:
Thu Sep 29, 2022 10:49 pm
Jentoo wrote:
Thu Sep 29, 2022 10:42 pm
I have migrated one of my sites to Joomla 4 and in Joomla 3 I was using the Joomla search module [not the smart search module].
You do know, of course, that the old J! 3.x search component was removed from J! 4.x and the only search facility available in J! 4.x is the smart search one? ???
This is what I read in the official instructions, (https://docs.joomla.org/Joomla_3.x_to_4 ... _Migration) which I understood to mean that it is still being maintained in J4:
"Search (com_search) will be decoupled in Joomla 4.x. Search (com_search) will migrate to Joomla 4. After migration, you'll need to update it to the Joomla 4.x version via com_installer. It will continue to be maintained, but more the same way a third-party extension is by receiving updates via com_installer. It is recommended to use Smart Search (com_finder) going forward. Search will still be available at https://extensions.joomla.org/category/ ... xtensions/"

I'm a bit hazy on how all this happens as I can't find any more detail about it.

I was missing the Smart Search in my Joomla Admin but I've now fixed that by editing the database where they were unpublished and also listed under type 'menu' instead of 'main'.

Thanks for your reply x

Jentoo
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Sun Feb 20, 2022 3:06 pm

Re: Joomla search not working for tagged results after migration

Post by Jentoo » Thu Sep 29, 2022 11:54 pm

Got this set up now with the new Joomla smart search x

User avatar
sozzled
Joomla! Master
Joomla! Master
Posts: 13084
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia

Re: Joomla search not working for tagged results after migration

Post by sozzled » Thu Sep 29, 2022 11:58 pm

Jentoo wrote:
Thu Sep 29, 2022 11:36 pm
This is what I read in the official instructions, (https://docs.joomla.org/Joomla_3.x_to_4 ... _Migration) which I understood to mean that it is still being maintained in J4:
Search (com_search) will be decoupled in Joomla 4.x. Search (com_search) will migrate to Joomla 4. After migration, you'll need to update it to the Joomla 4.x version via com_installer. It will continue to be maintained, but more the same way a third-party extension is by receiving updates via com_installer. It is recommended to use Smart Search (com_finder) going forward. Search will still be available at https://extensions.joomla.org/category/ ... xtensions/
Well, I hate to be the bearer of bad news but that section you quoted is rubbish.

Firstly, the J! developers were unable to make the old search facility work with J! 4.x; we've discussed it here: viewtopic.php?f=814&t=996142.

Secondly, if you follow the link to the "official extensions", there's no search extension available, is there?

The old Search component used in J! 1.x → 3.x is dead. While people may still be able to use the Search module on their J! 4.x websites (if they can find it): (a) the results are unpredictable, and (b) it's simply not there with new J! 4.x installations. That's just the way it is.
“If you think I’m wrong then say, ‘I think you’re wrong.’ If you say ‘You’re wrong!’, how do you know?”
Walking the talk: https://j4xdemo.enduring.com.au
:)

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 15241
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: Joomla search not working for tagged results after migration

Post by toivo » Fri Sep 30, 2022 12:49 am

Jentoo wrote:
Thu Sep 29, 2022 11:36 pm
This is what I read in the official instructions, (https://docs.joomla.org/Joomla_3.x_to_4 ... _Migration) which I understood to mean that it is still being maintained in J4: [...] Search will still be available at https://extensions.joomla.org/category/ ... xtensions/"
If someone desperately needs the old 3.x Search in Joomla 4.x, the development version Search 4.0.1-dev can be downloaded from https://github.com/joomla-extensions/se ... /4.0.1-dev. It replaces the Joomla 3.x version of Search in updated websites and works all right in Joomla 4.2.3.

However, styling has not been adjusted for Joomla 4.x in this development version of Search:
Thats only a very minimal version of Search for 4.0. Its based on this PR: https://github.com/joomla/joomla-cms/pull/35095 by @alikon with no styling adjustments.
Toivo Talikka, Global Moderator

User avatar
sozzled
Joomla! Master
Joomla! Master
Posts: 13084
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia

Re: Joomla search not working for tagged results after migration

Post by sozzled » Fri Sep 30, 2022 1:00 am

Thanks, @toivo, but the component you refer to—Search 4.0.1-dev—was abandoned and is not recommended for use on production J! 4.x websites. The developer notes state:
This only allows the frontend not to fully error and should be removed as soon as a propper (sic) 4.0 version has been build (sic).
Those notes were written over a year ago.

As I mentioned in my last post in this topic, we discussed it here: viewtopic.php?f=814&t=996142. :)
“If you think I’m wrong then say, ‘I think you’re wrong.’ If you say ‘You’re wrong!’, how do you know?”
Walking the talk: https://j4xdemo.enduring.com.au
:)

Jentoo
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Sun Feb 20, 2022 3:06 pm

Re: Joomla search not working for tagged results after migration

Post by Jentoo » Tue Oct 04, 2022 1:15 pm

Thank you for your input.

Now that I've got the new Joomla 4 search showing and have been able to use that, my problem is resolved.

After the migration these menu options in the Admin were unpublished in the database and I had to publish them. I also changed the 'menu' setting to 'main'.

x


Post Reply

Return to “Migrating and Upgrading to Joomla! 4.x”