Skip to content

nickcanz/elasticsearch-bblfsh

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

elasticsearch-bblfsh

"Code as data" can be a powerful idea, but I don't think there are many concrete examples. To explore this concept, I used bblfshd to analyze the Elasticsearch code base to get a full list of all the configurable settings in Elasticsearch.

Take a look at the generated settings here.

The problem space

Elasticsearch has a lot of configurable settings and they aren't fully listed anywhere. Some are dynamic, some are not. I wanted to explore how to get all of the settings and their properties to see what I could do.

The main tech

This analysis is powered by bblfshd (pronounced babelfish). It's takes code and produces a "universal abstract syntax tree" (uast) of the code and supports a number of languages. Elasticsearch is written in Java which is one of the provided languages.

Getting up and running

Prereqs

Building and running

  • cd into cmd/elasticsearch-bblfsh
  • go build will make the elasticsearch-bblfsh executable
  • ./elasticsearch-bblfsh will create elasticsearchSettings.json with all of the settings found

Caveats

This was a fun experiment for me. I'm very new at writing go code and it's probably all wrong. Use at your own risk.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages