Interact with ElasticSearch database from your terminal.
ElasticSearch is a schema free, RESTful, NoSQL database that store and indexes JSON documents over HTTP. The ESLU program allows you to perform advanced query commands and other useful actions like importing documents in bulk right from your terminal.
We take advantage of NodeJS core streams and piping functionalities to communicate with remote services over HTTP.
The following must be installed in your computer:
- Java
- Java Development Kit (JDK)
Check using:
java --version
-
The Elastic Search Server must be runinng in another tab or terminal.
- Commander
- Request
- Fork repo to contribuate or clone it.
- In the root directory 'ESCLU' run:
npm install
- ESCLU has an executable file, run the command below from the root directory:
The Elastic Search Server must be runinng in another tab or terminal.
./esclu
For HELP use:
./esclu -h
-h, --help output usage information
-V, --version output the version number
-o --host <hostname> hostname[localhost]
-p, --port <number> port number [9200]
-j , --json format outputas JSON
-i, --index <name> which index to use
-t, --type <type> default type for bulk operations
-f, --filter <filter> source filter for query results
url [path] generates the URL for the options and path (default is /).
list-indices|li get a list of indices in current cluster.
get [path] perform an HTTP GET request for path (default is /).
create-index perform an HTTP PUT to Create a new Index.
bulk <file> read and perform bulk options from the specified file.
put <file> read and perform options for single document from the specified file.
delete-index [path] perform an HTTP DELETE request for path.
query | q [queries...] perform a query.
- If you encounter any problems or issues, please submit an issue ticket or pull request.
Abraham Tavarez
@AbrahamETavarez
- Fork repo to start contribuating.
- 0.1
- Development/Initial Release
This project is licensed under the MIT License - see the LICENSE.md file for details