Closed thanasis991 closed 3 years ago
Thanks for the report and detailed explanation. This is a mistake I did while updating to the newest RediSearch version. Working on it and will release the fix in a very short time.
Hi @thanasis991
I fixed the issue and released a new version. If you download 0.3.2, it should resolve this error.
By the way, this plugin is also available on Wordpress plugins directory: https://wordpress.org/plugins/redisearch/
Highly appreciate it if you could confirm the error has been fixed.
Thanks. I will check it in a while and get back to you with the results.
I have also spotted some other problems. Note my DB has ~1.100.000 posts to be indexed
I will report them later today
I will be more than happy if you explain other issues.
But please open new issue(s) if the other problem(s) are not related to this one.
Closing since there is no response.
There is a problem with wp_redisearch_index_post_on_publish (index update) hook function on post save/publish.
After wp_redisearch_index_post_on_publish is fired on save_post, wp_insert_post i get this error:
Indeed, i have mass searched all project and vendor files but function prepare_post does not exist anywhere. The only function that exists is preparePost but this does not exist in \FKRediSearch\Index but in \WpRediSearch\RediSearch\Index
and as i can see the FKRediSearch Class is called
$index = new \FKRediSearch\Index($client);
. .$indexing_options['fields'] = $index->prepare_post( $post_id ); (Line 335:Admin.php)
the same applies for
$index->deletePosts( $index_name, $post_id ); (Line 298: Admin.php)
and for
$index->addPosts( $index_name, $post_id, $indexing_options ); (Line 388: Admin.php)
-- Indexing and Searching are working as expected.
wp-redisearch v.0.3.1
PHP 7.4.9 on nginx/1.18.0