# Cakephp example

**URL:** https://discuss.elastic.co/t/cakephp-example/129138
**Category:** Elasticsearch
**Created:** [April 23, 2018, 3:05pm UTC](https://discuss.elastic.co/t/cakephp-example/129138 "2018-04-23T15:05:50Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Gwen\_P](https://avatars.discourse-cdn.com/v4/letter/g/c0e974/32.png) [@Gwen\_P](https://discuss.elastic.co/u/Gwen_P)
#### Post date: [April 23, 2018, 3:05pm UTC](https://discuss.elastic.co/t/cakephp-example/129138/1 "2018-04-23T15:05:50Z")

</div>

Hello everyone,

I'm working on Cakephp and Elasticsearch and I'm trying to find some example of how to display index information using cakephp.

I know that there is an official Cakephp plugin called Elasticsearch but the documentation ([https://book.cakephp.org/3.0/en/elasticsearch.html](https://book.cakephp.org/3.0/en/elasticsearch.html)) is difficul for a newbie about how to use it.

If someone have already done it before I would be very grateful if he could give me some tips.

Thanks

---

<div class="post-metadata">

### Author: ![Islam\_Elshobokshy](https://avatars.discourse-cdn.com/v4/letter/i/77aa72/32.png) [@Islam\_Elshobokshy](https://discuss.elastic.co/u/Islam_Elshobokshy)
#### Post date: [April 23, 2018, 3:07pm UTC](https://discuss.elastic.co/t/cakephp-example/129138/2 "2018-04-23T15:07:11Z")

</div>

Have you tried using [Elastica PHP](http://elastica.io) ?

---

<div class="post-metadata">

### Author: ![Gwen\_P](https://avatars.discourse-cdn.com/v4/letter/g/c0e974/32.png) [@Gwen\_P](https://discuss.elastic.co/u/Gwen_P)
#### Post date: [April 23, 2018, 3:22pm UTC](https://discuss.elastic.co/t/cakephp-example/129138/3 "2018-04-23T15:22:32Z")

</div>

I didn't know this php client, I will take a look on this client.

Thanks Islam\_Elshobokshy.

However I'm always interested about simple tutorial/example of how to use the Cakephp elasticsearch plugin

---

<div class="post-metadata">

### Author: ![JKhondhu](https://avatars.discourse-cdn.com/v4/letter/j/ed655f/32.png) [@JKhondhu](https://discuss.elastic.co/u/JKhondhu)
#### Post date: [April 23, 2018, 4:42pm UTC](https://discuss.elastic.co/t/cakephp-example/129138/4 "2018-04-23T16:42:04Z")

</div>

Looking at [https://book.cakephp.org/3.0/en/elasticsearch.html#searching-indexed-documents](https://book.cakephp.org/3.0/en/elasticsearch.html#searching-indexed-documents)  
This section of the page has provided good examples on how to index data but this above link shows how to search the data.

I would recommend that once you have a grasp of Elasticsearch then it may aid in the understanding of the above: [https://www.elastic.co/guide/en/elasticsearch/reference/current/\_index\_and\_query\_a\_document.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/_index_and_query_a_document.html)

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [May 21, 2018, 4:42pm UTC](https://discuss.elastic.co/t/cakephp-example/129138/5 "2018-05-21T16:42:16Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
