Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 729 Bytes

README.md

File metadata and controls

32 lines (23 loc) · 729 Bytes

elasticsearch-integrated -php

Installation

elasticsearch-integrated -php is installed via Composer. To install, simply add it to your composer.json file:

{
    "require": {
        "sinfini/elastic-search-sql-php": "dev-master"
    }
}

And run composer to update your dependencies:

$ curl -s http://getcomposer.org/installer | php
$ php composer.phar update

Basic Usage

It helps to return elastic search result into array format using php

include ('vendor/autoload.php');

use  Elasticsearch\Php;

$map = new \Elasticsearch\Php\ElasticSearchSqlConverter();
$jsonData = <Query output data from elastic search>;
$handler  = $map->create($jsonData, 1, 1, 1);