jDownloads Support Forum

jDownloads for Joomla 4.x and 5.x => jDownloads 4.0 => Bugs! => Topic started by: Tom68 on 03.04.2025 11:15:13

Title: jDownloads references in smart search article results displayed as raw format {jd_file file==123}
Post by: Tom68 on 03.04.2025 11:15:13
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
Title: Re: jDownloads references in smart search article results displayed as raw format {jd_file file==123}
Post by: ColinM on 03.04.2025 20:54:16
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
Title: Re: jDownloads references in smart search article results displayed as raw format {jd_file file==123
Post by: Tom68 on 03.04.2025 22:23:28
Hi Colin,

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


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
Title: Re: jDownloads references in smart search article results displayed as raw format {jd_file file==123}
Post by: ColinM on 04.04.2025 11:59:52
Tom
I will check out Smart Search on one of my test sites - I have not used it myself for some time!!
Colin