Skip to content

amulcse/elasticsearch-docker-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Installation Part(With Docker)

Step1: Install elasticsearch with docker image( https://hub.docker.com/_/elasticsearch)

Step2: Load Sample Data(https://www.elastic.co/guide/en/kibana/6.8/tutorial-load-dataset.html)

curl -s -H "Content-Type: application/json" -XPOST localhost:9200/product/default/_bulk?pretty --data-binary @/var/www/html/elasticsearch/namedirectory.json 

Note: json file end with new line 

Step3: Defining your index pattern (https://www.elastic.co/guide/en/kibana/6.8/tutorial-define-index.html#tutorial-define-index)  

We use: namedirectory

Step4: Discover your data(https://www.elastic.co/guide/en/kibana/current/tutorial-discovering.html#tutorial-discovering)

Step5: Search will work at http://YOUR_IP/elasticsearch/searchapi/search.php?q=Amul

About

Elasticsearch with docker and php

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages