Smart search without indexing? #36280
-
Now that the previous search component is no longer provided with Joomla 4 this poses a big problem for our extensions. We have privacy controls, conditions, and various other access restrictions on content that's outside the scope of Joomlas ACL. These conditions can be based off the viewing users profile data and more. So the indexers limited ACL isn't good enough for searching our extensions content. Is there not a way to have smart searching work with our content without needing to index it? I understand this is slower, but there isn't much of a choice here as we need the more advanced permissions. Is the only way to do this to index the content then use onFinderResult to filter it further? This is a bit of a sloppy way to do it through since removing rows could just end up with an empty result set. Has anyone had any luck with finding a solution? I've been digging through the smart search component and the above event usage was the best I could find. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 15 replies
-
No reason not to keep using the old search |
Beta Was this translation helpful? Give feedback.
-
Finder in general is a very good thing.
Where did you found "onFinderResult" event? I cannot find :) In general, yes, you can add extra data to Indexing result with joomla-cms/components/com_finder/src/Model/SearchModel.php Lines 396 to 398 in bfaf931 However some |
Beta Was this translation helpful? Give feedback.
-
The onFinderResult event is to prepare the content further, for example by adding updated content to it. It isn't really suitable for filtering content further. I would be really interested what access restrictions you need which can't be accomplished by the possibilities of Joomla. Have you looked at the taxonomies to allow further filtering? |
Beta Was this translation helpful? Give feedback.
-
I know this is an older thread, but I was wondering @krileon if you managed to find a good solution. I'm in a similar situation, where I need to filter the search results based on custom user fields values / custom content fields values. So far, my only viable solution is a custom query and completely disregard smart search. |
Beta Was this translation helpful? Give feedback.
No reason not to keep using the old search