-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Indexing error #11
Comments
Hello @web4exposure-org, Thank you for the report. To better understand the issue, could you please provide:
Thanks in advance! |
Hi, The version of Magento you're using.
Your Typesense configuration details (please omit any sensitive information).
This is a local environment with typesense running within a docker, settings:
If available, any additional stack trace details. You might find these in var/logs.
Also, does this error appear when you execute bin/magento index:reindex?
|
I've been unable to replicate this. Can you please confirm you have nodes set to your Docker host?
It's important to note that you must save this either in the command line or the backend of Magento, IE not directly in the database, as the indexes get created on save. |
Hi, The product indexing error is in file Adapter/Client.php:deleteData |
Hi @web4exposure-org - did you find a resolution to this one? |
Hi, no, I still have the same problem on our staging environment. |
The Typesense module extends the Algolia functionality, it adds an adapter to direct the indexing and search to your Typesense host, so you will need to configure Algolia to how you would like the autocomplete and instant search to display. For Algolia to be set, you will need credentials in the Algolia configuration too. If you set Typesense index method to "Typesense Only", then it won't add any data to Algolia so you can just use a free demo account. |
Pretty important step which I didn't know! Right now I have some updates after investigating the issues. However, the issue with And a quick question; what's the difference between the Admin API key and Search only key, and how do I make sure this is set properly and securely? Right now I'm using the Typesense API key from my docker setup for both of these. |
Hi @web4exposure-org - The admin api key will have write access where as the search only should only have read access. I am not very familiar with the docker setup, I recommend running cloud https://cloud.typesense.org/ |
Hi, I want to come back at the following issue:
The function deleteData() is getting an array with the following data as The Because of this data, I guessed these variables should be switched. If I switch these variables, I get the following error: If I put the filter_by key to the searchParameters, indexing works as expected, although I do not know for sure if this is the right solution. public function deleteData($indexName, $data)
{
$searchParameters = [
'q' => implode(",", $indexName),
'query_by' => 'objectID',
'filter_by' => ''
];
return $this->getTypesenseClient()->collections[$data]->documents->delete($searchParameters);
} |
When reindexing the algolia search products index, I get the following error:
Algolia Search Products index process error during indexation process:
implode(): Argument #2 ($array) must be of type ?array, string given
#0 /vendor/develodesign/magento2-module-typesense/Adapter/Client.php(109): implode()
The input in the implode is
string(16) "default_products"
The search categories index gives me another error:
Algolia Search Categories index process error during indexation process:
No such entity with id = 20844
The text was updated successfully, but these errors were encountered: