I am learning ElasticSearch in conjunction with Laravel and Docker. Faced the same problem
504 Gateway Time-out nginx/1.19.6
My code
public function esSearch() {
$client = ClientBuilder::create()->setHosts(['172.20.0.1:9200'])->build();
$params = [
'index' => 'my_index',
'id' => 'my_id',
'body' => ['testField' => 'abc']
];
$result = $client->index($params);
var_dump($result);
}
What could be the problem?
Read more here: https://stackoverflow.com/questions/66259779/elasticsearch-504-gateway-time-out
Content Attribution
This content was originally published by Sergey Karp at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.