2017 © Pedro Peláez
 

library elastics

PHPinnacle ElasticSearch Query Builder

image

phpinnacle/elastics

PHPinnacle ElasticSearch Query Builder

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

PHPinnacle Elastics

Latest Version on Packagist ![Software License][ico-license] Coverage Status ![Quality Score][ico-code-quality] Total Downloads, (*1)

This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what PSRs you support to avoid any confusion with users and contributors., (*2)

Install

Via Composer, (*3)

``` bash $ composer require phpinnacle/elastics, (*4)


## Basic Usage ```php <?php use PHPinnacle\Elastics\Search; use PHPinnacle\Elastics\Query; require __DIR__ . '/vendor/autoload.php'; $query = new Query\Boolean(); $query ->must(new Query\Match('name', 'Alex')) ->mustNot( new Query\Term('gender', 'male'), new Query\Terms('eye_color', ['blue', 'green']) ) ->filter(new Query\Range('age', 21)) ; $search = Search::match($query); $search ->order('name', 'asc') ->limit(50) ; $client = curl_init('127.0.0.1:9200/users/_search?pretty'); curl_setopt_array($client, [ CURLOPT_RETURNTRANSFER => true, CURLOPT_POSTFIELDS => (string) $search, CURLOPT_HTTPHEADER => ['Content-Type: application/json'], ]); $result = curl_exec($client); echo $result;

Change log

Please see CHANGELOG for more information on what has changed recently., (*5)

Testing

bash $ composer test, (*6)

Contributing

Please see CONTRIBUTING and CONDUCT for details., (*7)

Security

If you discover any security related issues, please email dev@phpinnacle.com instead of using the issue tracker., (*8)

Credits

License

The MIT License (MIT). Please see License File for more information., (*9)

The Versions

27/03 2018

dev-master

9999999-dev https://github.com/phpinnacle/elastics

PHPinnacle ElasticSearch Query Builder

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

elasticsearch query builder phpinnacle query dsl

12/03 2018

dev-http-client

dev-http-client https://github.com/phpinnacle/elastics

PHPinnacle ElasticSearch Query Builder

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

elasticsearch query builder phpinnacle query dsl