- Posts: 431
- Thank you received: 19
Smart Search
Please Log in or Create an account to join the conversation.
I've looked into it for a few hours but I couldn't find why that is the case. I compared what is done in our smart search plugin and other plugins and I don't see what could explain this.
I've posted the question groups.google.com/g/joomla-dev-general
Hopefully, someone more knowledgeable on this can help.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Thanks for your feedback on this.
Actually what you do is basically a simplified version of what we do in the plugin, without all the extra bells and whistles to handle different things.
One such thing is the multilingual indexing.
And thinking about this while writing this message made me think: what if the problem was actually because we make a copy of the item to be indexed for each language so that we can index the products in different languages ? Maybe the taxonomy is lost during the copy process ?
And so, I've added the line:
I'll be adding the patch for this on our end.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
What do you mean by "I went back to Joomla 4" ? It is the same website ? Another website ? Did you apply the patch in the hikashop.php file as I mentioned in my previous message ? Did you clear the index and reindex everything after adding the patch ?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
In the handleOtherLanguages(&$item) function, instead of true or false, I added under different conditions what to execute
Instead
I changed it to
Now it works properly, test it and give your opinion.
After a long analysis, I realized that this bug occurs when there is no language - All. This language is the default and must be included when indexing.
Please Log in or Create an account to join the conversation.
In hikashop.php, you forgot to add
I changed the protected function handleOtherLanguages(&$item) and added an additional function to clean language - all, so it doesn't bug anymore. The code looks like this.
In the file hikashop j4.php in the protected function index(Joomla\Component\Finder\Administrator\Indexer\Result $item) at the top should be added
At the bottom, the code will remain
this is the end result
Please Log in or Create an account to join the conversation.