Skip to content

qqqqb/cakephp-elasticsearch

 
 

Repository files navigation

What am I donig?

Elasticsearch moving forward on removing types and stay with single type for the index as it shows on schedule of removal of mapping types

Mapping types will be completely removed in Elasticsearch 7.0.0. https://www.elastic.co/guide/en/elasticsearch/reference/current/removal-of-types.html#_schedule_for_removal_of_mapping_types

Noticing the parent/child relations will be mapped using Join Field

Points that will be changed

  • Always set Content-Type with Http Transport
  • Stability on one Type without extra configuration
  • Mandatory fields for creating Entities in single Type
  • Supporting behaviors such as Timestamp
  • Add relationships hasOne, hasMany and belongsTo using join field and parent/child relationship
  • Merge joins of relationships to be like contain nested entities

Composer Changes

ElasticSearch 6.* only allow content type json, so I change it to not stable branch as required for now https://github.com/ruflin/Elastica/tree/5.x according to Always set Content-Type with Http Transport

Before you pull

This version is for development purpose and not stable for deploying use.

How Can Get It

This is fork of CakePHP repository, for more details you can find the documentation for the plugin in the Cake Book.

About

Elastic search datasource for CakePHP 3.0

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%