2017 © Pedro Peláez
 

library cloud-search-query

An ORM-like wrapper for building AWS CloudSearch structured queries

image

thelhc/cloud-search-query

An ORM-like wrapper for building AWS CloudSearch structured queries

  • Thursday, January 25, 2018
  • by thelhc
  • Repository
  • 3 Watchers
  • 2 Stars
  • 6,239 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 25 Versions
  • 22 % Grown

The README.md

cloud-search-query

An ORM-like wrapper for building AWS CloudSearch structured queries, (*1)

Installation

CloudSearchQuery is currently a repository package only. In composer.json add:, (*2)

"repositories": [
  {
    "type": "vcs",
    "url": "https://github.com/aaronkaz/cloud-search-query.git"
  }
],
"require": {
    "aaron-kaz/cloud-search-query": "dev-master"
},

Basic Usage

Initialize a query object with a valid CloudSearch full URI endpoint, (*3)

$query = new CloudSearchQuery([
    'endpoint' => 'http://search-yourdomain.us-east-1.cloudsearch.amazonaws.com'
]);

You can chain query methods like so, (*4)

$query->phrase('ford')
      ->term('National Equipment', 'seller')
      ->range('year', '1987');

use the get() method to submit query and retrieve results from AWS. Use property accessors on the returned results object., (*5)

$results = $query->get();
$matchedDocuments = $results->hits;

Search Query Operators and Nested Queries

You can use the and, or, and not operators to build compound and nested queries.
The corresponding and(), or(), and not() methods expect a closure as their argument. You can chain all available methods as well nest more subqueries inside of closures., (*6)

$query->or(function($builder) {
          $builder->phrase('ford')
                  ->phrase('truck');
        })

The Versions

25/01 2018

dev-master

9999999-dev

An ORM-like wrapper for building AWS CloudSearch structured queries

  Sources   Download

The Requires

 

The Development Requires

by Aaron Michael Music

25/01 2018

v2.2.4

2.2.4.0

An ORM-like wrapper for building AWS CloudSearch structured queries

  Sources   Download

The Requires

 

The Development Requires

by Aaron Michael Music

25/01 2018

v2.2.3

2.2.3.0

An ORM-like wrapper for building AWS CloudSearch structured queries

  Sources   Download

The Requires

 

The Development Requires

by Aaron Michael Music

29/05 2017

v2.2.2

2.2.2.0

An ORM-like wrapper for building AWS CloudSearch structured queries

  Sources   Download

The Requires

 

The Development Requires

by Aaron Michael Music

29/05 2017

v2.2.1

2.2.1.0

An ORM-like wrapper for building AWS CloudSearch structured queries

  Sources   Download

The Requires

 

The Development Requires

by Aaron Michael Music

08/03 2017

v2.2.0

2.2.0.0

An ORM-like wrapper for building AWS CloudSearch structured queries

  Sources   Download

The Requires

 

The Development Requires

by Aaron Michael Music

27/02 2017

v2.1.2

2.1.2.0

An ORM-like wrapper for building AWS CloudSearch structured queries

  Sources   Download

The Requires

 

The Development Requires

by Aaron Michael Music

19/01 2017

v2.1.1

2.1.1.0

An ORM-like wrapper for building AWS CloudSearch structured queries

  Sources   Download

The Requires

 

The Development Requires

by Aaron Michael Music

14/12 2016

v2.1.0

2.1.0.0

An ORM-like wrapper for building AWS CloudSearch structured queries

  Sources   Download

The Requires

 

The Development Requires

by Aaron Michael Music

02/12 2016

v2.0.3

2.0.3.0

An ORM-like wrapper for building AWS CloudSearch structured queries

  Sources   Download

The Requires

 

The Development Requires

by Aaron Michael Music

29/11 2016

v2.0.2

2.0.2.0

An ORM-like wrapper for building AWS CloudSearch structured queries

  Sources   Download

The Requires

 

The Development Requires

by Aaron Michael Music

29/11 2016

v2.0.1

2.0.1.0

An ORM-like wrapper for building AWS CloudSearch structured queries

  Sources   Download

The Requires

 

The Development Requires

by Aaron Michael Music

29/11 2016

v2.0.0

2.0.0.0

An ORM-like wrapper for building AWS CloudSearch structured queries

  Sources   Download

The Requires

 

The Development Requires

by Aaron Michael Music

08/11 2016

v1.2.1

1.2.1.0

An ORM-like wrapper for building AWS CloudSearch structured queries

  Sources   Download

The Requires

 

The Development Requires

by Aaron Michael Music

08/11 2016

v1.2.0

1.2.0.0

An ORM-like wrapper for building AWS CloudSearch structured queries

  Sources   Download

The Requires

 

The Development Requires

by Aaron Michael Music

07/11 2016

v1.1.9

1.1.9.0

An ORM-like wrapper for building AWS CloudSearch structured queries

  Sources   Download

The Requires

 

The Development Requires

by Aaron Michael Music

14/10 2016

v1.1.8

1.1.8.0

An ORM-like wrapper for building AWS CloudSearch structured queries

  Sources   Download

The Requires

 

The Development Requires

by Aaron Michael Music

14/10 2016

v1.1.7

1.1.7.0

An ORM-like wrapper for building AWS CloudSearch structured queries

  Sources   Download

The Requires

 

The Development Requires

by Aaron Michael Music

11/10 2016

v1.1.6

1.1.6.0

An ORM-like wrapper for building AWS CloudSearch structured queries

  Sources   Download

The Requires

 

The Development Requires

by Aaron Michael Music

06/10 2016

v1.1.5

1.1.5.0

An ORM-like wrapper for building AWS CloudSearch structured queries

  Sources   Download

The Requires

 

The Development Requires

by Aaron Michael Music

05/10 2016

v1.1.4

1.1.4.0

An ORM-like wrapper for building AWS CloudSearch structured queries

  Sources   Download

The Requires

 

The Development Requires

by Aaron Michael Music

04/10 2016

v1.1.3

1.1.3.0

An ORM-like wrapper for building AWS CloudSearch structured queries

  Sources   Download

The Requires

 

The Development Requires

by Aaron Michael Music

04/10 2016

v1.1.2

1.1.2.0

An ORM-like wrapper for building AWS CloudSearch structured queries

  Sources   Download

The Requires

 

The Development Requires

by Aaron Michael Music

04/10 2016

v1.1.1

1.1.1.0

An ORM-like wrapper for building AWS CloudSearch structured queries

  Sources   Download

The Requires

 

The Development Requires

by Aaron Michael Music

25/09 2016

v1.1.0

1.1.0.0

An ORM-like wrapper for building AWS CloudSearch structured queries

  Sources   Download

The Requires

 

The Development Requires

by Aaron Michael Music