https://github.com/fadilxcoder/elasticsearch
Elasticsearch with PHP
https://github.com/fadilxcoder/elasticsearch
database esx notes php poc
Last synced: about 1 year ago
JSON representation
Elasticsearch with PHP
- Host: GitHub
- URL: https://github.com/fadilxcoder/elasticsearch
- Owner: fadilxcoder
- Created: 2020-11-17T17:16:51.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-07-11T17:36:32.000Z (almost 5 years ago)
- Last Synced: 2025-01-04T19:23:46.891Z (over 1 year ago)
- Topics: database, esx, notes, php, poc
- Language: PHP
- Homepage:
- Size: 268 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Resources
- https://www.elastic.co/downloads/elasticsearch (Download Elasticsearch)
- https://github.com/elastic/elasticsearch-php (elasticsearch-php)
- https://packagist.org/packages/elasticsearch/elasticsearch
- https://www.elastic.co/guide/en/elasticsearch/client/php-api/current/index.html (Full documentation)
# Notes
- GOTO URL : `localhost:9200`
- CMD : `curl -X GET "localhost:9200/?pretty"` : show details of elastic search
- CMD : `curl -X GET "localhost:9200/_search?pretty"` : show data saved
- GOTO URL : `http://localhost:9200/faker_data/faker_type_1/_search?pretty=true&q=*:*&size=1000`
- - **index** : *faker_data*
- - **type** : *faker_type_1*
- - **need to be added** : *pretty=true*
- - **need to be added** : *q=*:**
- - **get number of result** : *size=1000*
- http://localhost:9200/faker_data/_search?pretty=true&q=*:*&size=100
- http://localhost:9200/faker_data/faker_type_1/_search?pretty=true&q=*:*&size=1000
- http://localhost:9200/faker_data/faker_type_1/dIiH4XUBdBy2cmH743CC : (Specific)
# Run
- Download source Elasticsearch to *C:/ESX/* and run batch file : `run.bat`