News:

Support for jDownloads 3 has been ended
Since 17 August 2023 Joomla.org has discontinued support for Joomla 3.x. Therefore, we will no longer offer official support for our Joomla 3 jDownloads version 3.9.x from January 2024.
Please update your website to the latest Joomla version (Joomla 4 or Joomla 5) as soon as possible. Afterwards, please update jDownloads to the latest published version. The longer you delay, the more difficult the upgrade process for your website is likely to be.

Main Menu
Support-Forum

jDownloads references in smart search article results displayed as raw format {jd_file file==123}

Started by Tom68, 03.04.2025 11:15:13

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Tom68

Hi Colin and Arno,

I am running
- Joomla 4.4.12
- jDownloads 4.0.46
- PHP 8.3

I am currently preparing my website to switch from the legacy search to smart search. While checking the results of smart search I noticed that when found articles with jDownloads references were reported, they were shown as "raw" references, e.g. {jd_file file==123}.

The behavior of the legacy search is different. Instead of displaying the "raw" reference, it shows (as expected) the title of the document the jDownloads reference is pointing to.

I have not enabled the jDownload plugins for smart search, since I do not want the jDownloads database to be searched. I have given it a try, but it did not solve the problem.

I am not even sure, if this is a jDownloads problem or maybe a smart search problem (it would not be the first).

Do you maybe have an idea, what causes the problem and how to fix it?

Thanks & Regards
Tom
  •  

ColinM

Tom,
Could you please check with article 'Using Smart Search'
https://www.jdownloads.net/documentation?view=article&id=307&catid=28
 You need to remove the the old Joomla 3 Search Component and its plugins
Colin
Colin M
  •  

Tom68

Hi Colin,

Thanks for your quick reply. I had a look on the article you noted.

  • I made sure that the plugins "Content - Smart Search", "Smart Search - Content", "Smart Search - jDownloads Categories" and "Smart Search - jDownloads" are enabled
  • I don't want to search Categories, Contacts, News Feeds and Tags, so I left the corresponding Smart Search plugins disabled.
  • As you probably would have guessed clicking on the Statistics button does not make a difference.
  • Under Components > Smart Search I first cleared the old index per Maintenance > Clear Index before I started the indexer.
  • I have created a menu as described and hided it because I want to use the smart search module on all pages.
  • I have installed a new Smart Search module and assigned it on all pages.
  • I have disabled (but not yet deleted) the old Search module, all 5 Search plugins (Categories, Contacts, Content, News Feeds, Tags).

Having this done, I ran a search. I used a keyword that I know is placed next to a jDownload reference (the {jd_file file==123} syntax) in an article. The article was found, but in the results list the preview of that article shows the "code" {jd_file file==123} rather than the name of the file it is referring to. I can even search for the string "jd_file" and smart search reports all articles that use the {jd_file file==123} syntax. And this is my problem. The smart search results preview should not show the jd_file code but the name of the file it is pointing to. With the legacy search, I did not have this problem.

Did I miss anything important? Please don't ask me to delete the old search plugins and modules, because currently this is the only search that displays the results correctly and I am afraid I will not be able to go back without a complete website recovery, if I delete them.

Am I maybe reporting the same problem that was already reported in the post https://www.jdownloads.com/forum/index.php?topic=14090.msg50262#msg50262?

Regards
Tom
  •  

ColinM

Tom
I will check out Smart Search on one of my test sites - I have not used it myself for some time!!
Colin
Colin M
  •