laravel-elasticsearch-demo
laravel-elasticsearch-demo copied to clipboard
No alive nodes found in your cluster
how to solve this error?? please help me thank you
Your should be run php artisan search:reindex to index existing articles to Elasticsearch.
Thanks for reply, when i ran 'php artisan search:reindex' command it show " [Symfony\Component\Console\Exception\CommandNotFoundException] Command "search:reindex" is not defined. Did you mean this? search:articles:rebuild" like this error.
and when i ran 'php artisan search:articles:rebuild' it again show ' [Elasticsearch\Common\Exceptions\NoNodesAvailableException] No alive nodes found in your cluster' error
The command should be php artisan search:articles:rebuild
, yes. This error looks like you don't have Elasticsearch running or something is missing in your .env
configuration. Did you follow the article or did a checkout of this repo?