I'm trying to index with Elastic Search and get this error:
Fatal error:
PHP Fatal error: Uncaught InvalidArgumentException: All provided arguments for a related element must be either an ID or a WP_Post object. in /***//wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/interop/commands/related_posts.php:228
Stack trace:
#0 /***//wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/interop/commands/related_posts.php(163): OTGS\Toolset\Common\Interop\Commands\RelatedPosts->set_query_by_elements(Array, 'parent')
#1 /***//wp-content/plugins/types/vendor/toolset/toolset-common/inc/public_api/m2m.php(107): OTGS\Toolset\Common\Interop\Commands\RelatedPosts->__construct(false, 'reviews-company', Array)
#2 /***//wp-content/mu-plugins/life-reviews.php(73): toolset_get_related_posts(false, 'reviews-company', 'parent')
#3 /wp-content/mu-plugins/life-reviews.php(37): lifejobs_get_r in /var/www/eulifejo-taloyen/wordpress/current/wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/interop/commands/related_posts.php on line 228
Fatal error: Uncaught InvalidArgumentException: All provided arguments for a related element must be either an ID or a WP_Post object. in /wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/interop/commands/related_posts.php:228
Stack trace:
#0 /wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/interop/commands/related_posts.php(163): OTGS\Toolset\Common\Interop\Commands\RelatedPosts->set_query_by_elements(Array, 'parent')
#1 /wp-content/plugins/types/vendor/toolset/toolset-common/inc/public_api/m2m.php(107): OTGS\Toolset\Common\Interop\Commands\RelatedPosts->__construct(false, 'reviews-company', Array)
#2 /current/wp-content/mu-plugins/life-reviews.php(73): toolset_get_related_posts(false, 'reviews-company', 'parent')
#3 /wp-content/mu-plugins/life-reviews.php(37): lifejobs_get_r in /var/www/eulifejo-taloyen/wordpress/current/wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/interop/commands/related_posts.php on line 228
That would be helpful to confirm the issue, although we'll eventually need to create a local site for testing, and for that we'll need to set up an account with ElasticPress, so we'll need to contact them.
My colleague points out that there is no integration with ElasticPress, so it can't be used with Views search and filtering, though of course it shouldn't be generating fatal errors.
(WPSolr who also use ElasticSearch do have an integration with Toolset: hidden link and hidden link)
Let me mark your next reply as private to get credentials for the staging site.