Skip to content

amanjain1992/elastic-search-sql-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);

About

Converting Elastic Search Sql Result into readable format using php

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages