Search in frontend should only give results of articles (if plugin "smart search - content" is activated as an example) in which the name of the author is in the title or text of the article.
Search in frontend shows all articles which are written by this user/author.
Deselecting the Authors in Content Maps of Smart Search (in backend) does not help.
Joomla! 4.3.0
(but it is an old issue)
PHP 8.1
A few years old but seems not to be solved yet, see:
Core hack (not advisable of course) is to comment out some rows in this file
plugins\finder\content\src\Extension\Content.php
(earlier than J 4.3.0 it was in the file plugins\finder\content\content.php):
=> function index(Result $item)
$item->metaauthor = $item->metadata->get('author');
$item->addInstruction(Indexer::META_CONTEXT, 'metaauthor');
$item->addInstruction(Indexer::META_CONTEXT, 'author');
$item->addInstruction(Indexer::META_CONTEXT, 'created_by_alias');
// Add the author taxonomy data.
if (!empty($item->author) || !empty($item->created_by_alias)) {
$item->addTaxonomy('Author', !empty($item->created_by_alias) ? $item->created_by_alias : $item->author, $item->state);
}
Then start the indexer and you are good => search in frontend will give the expected results, without searching for the name of the person who had written the article.
Probably it would be similar in the other smart search plugins, not only in content search.
An additional option in search menu item would be very helpful: exclude "created by"/"created by alias" from search results.
Labels |
Added:
No Code Attached Yet
|
Labels |
Added:
?
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2023-05-08 07:14:10 |
Closed_By | ⇒ | Hackwar | |
Labels |
Added:
Feature
Removed: ? |
Here is a PR for that, waiting to be tested for 1.5 years.
#36867
Related as well: #39961
Related as well: #39751
Since we have a PR, I'm closing this issue.