Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

get elasticsearch data magento 2

 <?php
 //Make sure you have elasticsearch-php package installed before proceeding
 
    use ElasticsearchClientBuilder;
    require 'vendor/autoload.php';
    $client = ClientBuilder::create()->build();
    $params = [
    'index' => 'my_index',
    'id'    => 'my_id'
	];
	$response = $client->get($params);
	print_r($response);
Source by github.com #
 
PREVIOUS NEXT
Tagged: #elasticsearch #data #magento
ADD COMMENT
Topic
Name
6+3 =