appbaseio / mirage
- пятница, 7 октября 2016 г. в 03:17:02
TypeScript
An interactive query explorer for Elasticsearch
The Elasticsearch query DSL supports 100+ query APIs ranging from full-text search, numeric range filters, geolocation queries to nested and span queries.
Mirage is a modern, open-source web based query explorer for Elasticsearch.
It offers a blocks based GUI for composing Elasticsearch queries and comes with an on-the-fly transformer to show the corresponding JSON query API of Elasticsearch.
Add Conditions allows adding additional clauses within the same query andNested Query allows adding a nested query clause. Mirage works with an Elasticsearch 2.x index currently. Below is the roadmap for query support.
✓ indicates queries already supported.
| Full-text Queries | Term Level Queries | Joining Queries | Geo Queries | Specialized Queries | Span Queries |
|---|---|---|---|---|---|
| ✓ Match | ✓ Term | ||||
| ✓ Multi-match | ✓ Terms | ||||
| ✓ Query String | ✓ Range | ||||
| ✓ Simple Query String | ✓ Exists | ||||
| ✓ Common Terms | ✓ Missing | ||||
| ✓ Prefix | |||||
| ✓ Wildcard | |||||
| ✓ Regexp | |||||
| ✓ Fuzzy | |||||
| ✓ Ids | |||||
Besides broadening the query support, we would like to see Mirage support Elasticsearch v5.0.
$ npm install
$ bower install
$ npm startThis will start a local webserver running on port 3030 serving mirage locally.
$ npm testwill fire up the jasmine tests.
master branch: Elasticsearch Plugin$ npm run build_es_pluginchrome-extension branch: Chrome extension$ npm run build_chrome_extensionnpm test.Mirage is available as a hosted app and as a chrome extension.
or
or
plugin install appbaseio/mirageNote: To make sure you enable CORS settings for your ElasticSearch instance, add the following lines in the ES configuration file.
http.port: 9200
http.cors.allow-origin: "http://127.0.0.1:9200"
http.cors.enabled: true
http.cors.allow-headers : X-Requested-With,X-Auth-Token,Content-Type, Content-Length, Authorization
http.cors.allow-credentials: true
After installing the plugin, start the elasticsearch service and visit the following URL to access it.
http://127.0.0.1:9200/_plugin/mirage
Note: If you use Elasticsearch from a different port, the URL to access and the http.cors.allow-origin value in the configuration file would change accordingly.