An open API service indexing awesome lists of open source software.

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

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`