2017 © Pedro Peláez
 

cakephp-plugin elasticsearch-source

Elasticsearch source for CakePHP (HttpSource)

image

imsamurai/elasticsearch-source

Elasticsearch source for CakePHP (HttpSource)

  • Tuesday, December 23, 2014
  • by imsamurai
  • Repository
  • 2 Watchers
  • 2 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 22 Versions
  • 0 % Grown

The README.md

ElasticsearchSource Plugin

Build Status Coverage Status Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

CakePHP ElasticsearchSource is DataSource Plugin for Elasticsearch, (*2)

Installation

Step 1: Clone or download HttpSource

Step 2: Clone or download to Plugin/ElasticsearchSource

cd my_cake_app/app git://github.com/imsamurai/CakePHP-ElasticsearchSource-Datasource.git Plugin/ElasticsearchSource, (*3)

or if you use git add as submodule:, (*4)

cd my_cake_app
git submodule add "git://github.com/imsamurai/CakePHP-ElasticsearchSource-Datasource.git" "app/Plugin/ElasticsearchSource"

then update submodules:, (*5)

git submodule init
git submodule update

Step 3: Add your configuration to database.php and set it to the model

:: database.php ::

```php public $elasticsearch = array( 'datasource' => 'ElasticsearchSource.Http/ElasticsearchSource', 'host' => 'example.com', 'port' => 'some port' ); public $elasticsearchTest = array( 'datasource' => 'ElasticsearchSource.Http/ElasticsearchSource', 'host' => 'localhost', 'prefix' => '', 'port' => 9200, 'timeout' => 5 );, (*6)

Then make model

:: Elasticsearch.php ::, (*7)

```php
public $useDbConfig = 'elasticsearch';
public $useTable = '<desired endpoint, for ex: "_search">';

Step 4: Load plugin

:: bootstrap.php ::

```php CakePlugin::load('HttpSource', array('bootstrap' => true, 'routes' => true)); CakePlugin::load('ElasticsearchSource', array('bootstrap' => false, 'routes' => true));, (*8)

#Tests

To run tests add and fill $elasticsearchTest in `database.php`

#Usage

You can use elasticsearch almost as db tables:
```php
$this->Elasticsearch->setSource('search');
    $params = array(
        'conditions' => array(
            'query' => array(
                "term" => array("title" => "apple")
            )
        ),
        'fields' => array('title', 'rank'),
        'order' => array('rank' => 'desc'),
        'offset' => 2
    );

$result = $this->Elasticsearch->find('first', $params);

Documentation

Please read HttpSource Plugin README, (*9)

The Versions

23/12 2014

dev-master

9999999-dev http://github.com/imsamurai/CakePHP-ElasticsearchSource-Datasource

Elasticsearch source for CakePHP (HttpSource)

  Sources   Download

MIT

The Requires

 

plugin database cakephp datasource

23/12 2014

1.3.1

1.3.1.0 http://github.com/imsamurai/CakePHP-ElasticsearchSource-Datasource

Elasticsearch source for CakePHP (HttpSource)

  Sources   Download

MIT

The Requires

 

plugin database cakephp datasource

17/12 2014

1.3.0

1.3.0.0 http://github.com/imsamurai/CakePHP-ElasticsearchSource-Datasource

Elasticsearch source for CakePHP (HttpSource)

  Sources   Download

MIT

The Requires

 

plugin database cakephp datasource

12/12 2014

dev-es1.2

dev-es1.2 http://github.com/imsamurai/CakePHP-ElasticsearchSource-Datasource

Elasticsearch source for CakePHP (HttpSource)

  Sources   Download

MIT

The Requires

 

plugin database cakephp datasource

12/12 2014

1.2.5

1.2.5.0 http://github.com/imsamurai/CakePHP-ElasticsearchSource-Datasource

Elasticsearch source for CakePHP (HttpSource)

  Sources   Download

MIT

The Requires

 

plugin database cakephp datasource

09/12 2014

1.2.4

1.2.4.0 http://github.com/imsamurai/CakePHP-ElasticsearchSource-Datasource

Elasticsearch source for CakePHP (HttpSource)

  Sources   Download

MIT

The Requires

 

plugin database cakephp datasource

14/10 2014

1.2.3

1.2.3.0 http://github.com/imsamurai/CakePHP-ElasticsearchSource-Datasource

Elasticsearch source for CakePHP (HttpSource)

  Sources   Download

MIT

The Requires

 

plugin database cakephp datasource

13/10 2014

1.2.2

1.2.2.0 http://github.com/imsamurai/CakePHP-ElasticsearchSource-Datasource

Elasticsearch source for CakePHP (HttpSource)

  Sources   Download

MIT

The Requires

 

plugin database cakephp datasource

05/09 2014

1.2.1

1.2.1.0 http://github.com/imsamurai/CakePHP-ElasticsearchSource-Datasource

Elasticsearch source for CakePHP (HttpSource)

  Sources   Download

MIT

The Requires

 

plugin database cakephp datasource

03/09 2014

1.2.0

1.2.0.0 http://github.com/imsamurai/CakePHP-ElasticsearchSource-Datasource

Elasticsearch source for CakePHP (HttpSource)

  Sources   Download

MIT

The Requires

 

plugin database cakephp datasource

16/07 2014

1.1.4

1.1.4.0 http://github.com/imsamurai/CakePHP-ElasticsearchSource-Datasource

Elasticsearch source for CakePHP (HttpSource)

  Sources   Download

MIT

The Requires

 

plugin database cakephp datasource

10/07 2014

1.1.3

1.1.3.0 http://github.com/imsamurai/CakePHP-ElasticsearchSource-Datasource

Elasticsearch source for CakePHP (HttpSource)

  Sources   Download

MIT

The Requires

 

plugin database cakephp datasource

01/07 2014

1.1.2

1.1.2.0 http://github.com/imsamurai/CakePHP-ElasticsearchSource-Datasource

Elasticsearch source for CakePHP (HttpSource)

  Sources   Download

MIT

The Requires

 

plugin database cakephp datasource

05/06 2014

1.1.1

1.1.1.0 http://github.com/imsamurai/CakePHP-ElasticsearchSource-Datasource

Elasticsearch source for CakePHP (HttpSource)

  Sources   Download

MIT

The Requires

 

plugin database cakephp datasource

05/06 2014

1.1.0

1.1.0.0 http://github.com/imsamurai/CakePHP-ElasticsearchSource-Datasource

Elasticsearch source for CakePHP (HttpSource)

  Sources   Download

MIT

The Requires

 

plugin database cakephp datasource

28/05 2014

1.0.7

1.0.7.0 http://github.com/imsamurai/CakePHP-ElasticsearchSource-Datasource

Elasticsearch source for CakePHP (HttpSource)

  Sources   Download

MIT

The Requires

 

plugin database cakephp datasource

22/04 2014

1.0.6

1.0.6.0 http://github.com/imsamurai/CakePHP-ElasticsearchSource-Datasource

Elasticsearch source for CakePHP (HttpSource)

  Sources   Download

MIT

The Requires

 

plugin database cakephp datasource

21/04 2014

1.0.5

1.0.5.0 http://github.com/imsamurai/CakePHP-ElasticsearchSource-Datasource

Elasticsearch source for CakePHP (HttpSource)

  Sources   Download

MIT

The Requires

 

plugin database cakephp datasource

04/04 2014

1.0.4

1.0.4.0 http://github.com/imsamurai/CakePHP-ElasticsearchSource-Datasource

Elasticsearch source for CakePHP (HttpSource)

  Sources   Download

MIT

The Requires

 

plugin database cakephp datasource

03/04 2014

1.0.3

1.0.3.0 http://github.com/imsamurai/CakePHP-ElasticsearchSource-Datasource

Elasticsearch source for CakePHP (HttpSource)

  Sources   Download

MIT

The Requires

 

plugin database cakephp datasource

27/03 2014

1.0.1

1.0.1.0 http://github.com/imsamurai/CakePHP-ElasticsearchSource-Datasource

Elasticsearch source for CakePHP (HttpSource)

  Sources   Download

MIT

The Requires

 

plugin database cakephp datasource

06/02 2014

1.0.0

1.0.0.0 http://github.com/imsamurai/CakePHP-ElasticsearchSource-Datasource

Elasticsearch source for CakePHP (HttpSource)

  Sources   Download

MIT

The Requires

 

plugin database cakephp datasource