Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

6ber6ou's avatar

Elasticsearch

Hi all. I try to understand how elasticsearch works and implement it in my Laravel project.

I install Elasticsearch on Homestead with the help of this tutorial : https://bosnadev.com/2014/09/12/install-elasticsearch-on-laravel-homestead/ And on Forge I used this recipe : http://forgerecipes.com/recipes/36

In the terminal when I enter : curl -X GET localhost:92000 I have the answer of the Elasticsearch server. But when I access to this url : http://localhost:9200 I receve an error (page not accessible)

How can I do to interact with Elasticsearch within Laravel, and make some tests in the url ?

0 likes
5 replies
tgif's avatar

I would love to know this also. Will you be using Elasticsearch to visualize big data? What made you choose Elasticsearch?

sanjay1688's avatar

@6ber6ou u can interact with Elasticsearch within Laravel using curl

@6ber6ou your Elasticsearch server might not be running u can check the status by

sudo /etc/init.d/elasticsearch status .

you need to start ur server by sudo /etc/init.d/elasticsearch restart

now if u type curl -X GET localhost:9200 on terminal or browser it should response some what similar to below

{ "status" : 200, "name" : "Desmond Pitt", "cluster_name" : "elasticsearch", "version" : { "number" : "1.4.2", "build_hash" : "927caff6f05403e936c20bf4529f144f0c89fd8c", "build_timestamp" : "2014-12-16T14:11:12Z", "build_snapshot" : false, "lucene_version" : "4.10.2" }, "tagline" : "You Know, for Search" }

@csuarez you can used Elasticsearch to visualize big data by using elk stack

Please or to participate in this conversation.