Giter Site home page Giter Site logo

elasticshell's People

Contributors

javanna avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

elasticshell's Issues

Add missing help indices api

Only some of the methods exposed by the different clients are currently documented.
Therefore when typing the name of the method without brackets some code is shown.
This issue is about adding the help for the indices api.

Load a configurable external script at startup

Would be nice to be able to load at startup an external script that can contain any command that's valid within the shell: json object, java or javascript code for instance.

For example: it might contain common queries that are often used.

Add missing help cluster api

Only some of the methods exposed by the different clients are currently documented.
Therefore when typing the name of the method without brackets some code is shown.
This issue is about adding the help for the cluster api.

NullPointerException creating a node client

Creating a node client there's quite a bug:

line 1: Wrapped java.lang.NullPointerException: null value in entry: name=null

There's a problem when reading the name of the node from the settings.

Autocomplete path and file names

JLine has a nice FileNameCompleter which should make it easy to autocomplete path and file names, useful since we can load external files, or save to external files.

On the other hand some custom code is required to make the existing completer work together with the one for file names and paths.

Put template gives a validation error

The following put template request
es.indicesApi().templatePut('0_replicas',{"template" : "te*","settings":{"number_of_replicas":0}});

gives the following error, despite the name '0_replicas' is in the request:

line 1: Wrapped org.elasticsearch.action.ActionRequestValidationException: Validation Failed: 1: name is missing;

add toJson command

add a command that allows to convert ToXContent objects to json, native within the shell.
This way the json produced through all the different builders (FacetBuilders etc.) can easily be converted to native json and be combined with existing json objects.

Add missing help for request builders

Only some of the methods exposed by the different clients are currently documented.
Therefore when typing the name of the method without brackets some code is shown.
This issue is about adding the help for request builders.

Compiler plugin uses target for Java 7 - can't run on Java 6

The Maven POM sets the compiler plugin source to 1.6, but then targets the binary for Java 7, which then prevents this from running on Java 6 (sadly what I have to deal with).

Any reason the compiler target couldn't be set to 6? It'll still run on 7.

History is per line instead of per command

The history stores every single line as a different command. After typing a multiline command, or a json object for example, every line is a different entry in the history. Would be nice to be able to run that same command in a single call; that would be possible if all lines were merged to the same entry within the history.

Seems to be a JLine limitation; there are possible work arounds and examples in other projects, here is one: https://github.com/apache/karaf/blob/karaf-2.3.x/shell/console/src/main/java/org/apache/karaf/shell/console/jline/Console.java#L227

Missing commands in generic help

All the commands should be mentioned in the generic help message, obtained using the help command.

Some of them are currently missing, add them and make sure this won't happen again.

Add history command

Add history command that allows to see all the previously executed commands. Use the line number as a prefix for each command.

Add help for elasticsearch builders

Given how help messages are looked up, via reflection. It's possible to provide help for classes that are not part of the elasticshell directly.

Would be nice to add help for elaticsearch builders that are supposed to be used within the shell: FacetBuilders etc.

Create homebrew formula

Would be great to be able to easily install this via brew. Will work on this as soon as I find some time.

PS: Love this tool!

add save command

Add a command that allows to save to file any string. It can be json or any string representation obtained unwrapping objects from the shell and calling their toString.

The main usecase is to save to file big json objects that don't fit in a single screen and are not handy to copy paste.

Customize auto-suggestions output

It would be nice to customize the way the auto suggestions are shown, for instance grouping them.

Indexes would then be in their own group, separated from methods and functions.

Unfortunately it looks like this is not easy to achieve due to the JLine api.

Syntax highlighting

Would be nice to have some kind of syntax highlighting, from a simple bracket matching to something more advanced with different colors etc.

Add command to send http requests

Add a command that allows to send http requests.
Useful to communicate with other systems, or even with elasticsearch itself when not possible to use the Java API (different version).
Would be nice to have a command per request method.

Live demo

Make possible to try out the shell without actually downloading it.
Embed it in the browser would be great but probably hard to achieve.
On the other hand java web start would be an option too, even though it should download the zip file which is not that small.

Add missing help core api

Only some of the methods exposed by the different clients are currently documented.
Therefore when typing the name of the method without brackets some code is shown.
This issue is about adding the help for the core api.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.