2017 © Pedro Peláez
 

library elastic-query-builder

A fluent query builder for Elastic Search.

image

phpfluent/elastic-query-builder

A fluent query builder for Elastic Search.

  • Friday, September 4, 2015
  • by henriquemoody
  • Repository
  • 2 Watchers
  • 23 Stars
  • 13,192 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 3 Open issues
  • 2 Versions
  • 4 % Grown

The README.md

ElasticQueryBuilder

Build Status Scrutinizer Code Quality Code Coverage Latest Stable Version Total Downloads License, (*1)

A fluent query builder for Elastic Search., (*2)

Installation

Package is available on Packagist, you can install it using Composer., (*3)

composer require phpfluent/elastic-query-builder

PHP 5.5+ or HHVM 3.5+ are required., (*4)

Usage

$builder = new Query();
$builder->query()->filtered()->query()->matchAll(new stdClass());
$builder->query()->filtered()->filter()->and(
    [
        new Term('my.nested.label', 'my_value'),
        new Term('my_label', 'other_value'),
    ]
);

echo $builder.PHP_EOL;

The result of the code above is:, (*5)

{"query":{"filtered":{"query":{"match_all":{}},"filter":{"and":[{"term":{"my.nested.label":"my_value"}},{"term":{"my_label":"other_value"}}]}}}}

The Versions

04/09 2015

dev-master

9999999-dev http://github.com/PHPFluent/ElasticQueryBuilder

A fluent query builder for Elastic Search.

  Sources   Download

New BSD

The Requires

  • php >=5.5

 

The Development Requires

24/02 2013

1.0

1.0.0.0 http://github.com/PHPFluent/ElasticQueryBuilder

A fluent query builder for Elastic Search.

  Sources   Download

New BSD

The Development Requires