2017 © Pedro Peláez
 

library app-orm-elastic

image

ride/app-orm-elastic

  • Tuesday, April 3, 2018
  • by ride-user
  • Repository
  • 10 Watchers
  • 0 Stars
  • 49 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

Ride: ORM Elastic

This module will integrate Elasticsearch into the ORM., (*1)

To enable Elastic on your model, add the behaviour.elastic property to your model options. Set it to the index/type of your data in the Elasticsearch server eg. geo/locations., (*2)

When this behaviour is enabled, a method getElasticDocument will be generated in your entry class. This method will make the conversion between the ORM and Elastic., (*3)

The mapping to Elastic is based on your model definition. You can skip fields by adding the elastic.omit option to the field., (*4)

You will need the Elastic ORM commands for the CLI to define the mapping and to index existing records. Whenever a manipulation is done (insert, update or delete), the index is automatically updated., (*5)

Note: when you enable the json API, you can add the elastic filter to add search through Elastic., (*6)

<model name="GeoLocation">
    <field name="path" type="string">
        <validation name="required"/>
    </field>
    <field name="parent" model="GeoLocation" relation="belongsTo">
        <option name="elastic.omit" value="true"/>
    </field>
    <field name="name" type="string" localized="true">
        <validation name="required"/>
    </field>

    <option name="behaviour.elastic" value="geo/locations"/>
    <option name="json.api" value="geo-locations"/>
    <option name="json.api.filters" value="query,exact,match,expression,elastic"/>
</model>

Installation

You can use Composer to install this application., (*7)

composer require ride/app-orm-elastic

The Versions

03/04 2018

0.1.0

0.1.0.0

  Sources   Download

08/02 2017

dev-master

9999999-dev

Elastic search integration for the Ride ORM.

  Sources   Download

MIT

The Requires

 

by Joris Vandeweerd

08/02 2017

dev-develop

dev-develop

Elastic search integration for the Ride ORM.

  Sources   Download

MIT

The Requires

 

by Joris Vandeweerd

08/02 2017

1.1.0

1.1.0.0

Elastic search integration for the Ride ORM.

  Sources   Download

MIT

The Requires

 

by Joris Vandeweerd

14/10 2016

1.0.0

1.0.0.0

Elastic search integration for the Ride ORM.

  Sources   Download

MIT

The Requires

 

by Joris Vandeweerd

08/06 2016

0.1.2

0.1.2.0

Elastic search integration for the Ride ORM.

  Sources   Download

The Requires

 

by Joris Vandeweerd

07/06 2016

0.1.1

0.1.1.0

Elastic search integration for the Ride ORM.

  Sources   Download

The Requires

 

by Joris Vandeweerd