Skip to content

Commit

Permalink
json result syntax. & refactoring. etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kunihiko Kido committed Mar 24, 2015
1 parent 47dee54 commit b2ebcc1
Show file tree
Hide file tree
Showing 11 changed files with 748 additions and 1,016 deletions.
195 changes: 40 additions & 155 deletions Default.sublime-commands
Original file line number Diff line number Diff line change
@@ -1,156 +1,41 @@
[
{
"caption": "Elasticsearch: Search",
"command": "es_search_request",
},
{
"caption": "Elasticsearch: Benchmark",
"command": "es_benchmark",
},
{
"caption": "Elasticsearch: Analyze",
"command": "es_analyze",
},
{
"caption": "Elasticsearch: Cat Health",
"command": "es_cat_health",
},
{
"caption": "Elasticsearch: Cat Indexes",
"command": "es_cat_indexes",
},
{
"caption": "Elasticsearch: Get Index Settings",
"command": "es_get_index_settings",
},
{
"caption": "Elasticsearch: Get Mapping",
"command": "es_get_mapping",
},
{
"caption": "Elasticsearch: Create Index",
"command": "es_create_index",
},
{
"caption": "Elasticsearch: Put Mapping",
"command": "es_put_mapping",
},
{
"caption": "Elasticsearch: Index Document",
"command": "es_index_document",
},
{
"caption": "Elasticsearch: Get Document",
"command": "es_get_document",
},
{
"caption": "Elasticsearch: Delete Index",
"command": "es_delete_index",
},
{
"caption": "Elasticsearch: Delete Mapping",
"command": "es_delete_mapping",
},
{
"caption": "Elasticsearch: Delete Document",
"command": "es_delete_document",
},
{
"caption": "Elasticsearch: Register Query (Percolator)",
"command": "es_register_percolator",
},
{
"caption": "Elasticsearch: Show Registered Query (Percolator)",
"command": "es_show_percolator",
},
{
"caption": "Elasticsearch: Match Document (Percolator)",
"command": "es_match_percolator",
},
{
"caption": "Elasticsearch: UN-Register Query (Percolator)",
"command": "es_delete_percolator",
},
{
"caption": "Elasticsearch: Cat Shards",
"command": "es_cat_shards",
},
{
"caption": "Elasticsearch: Cat Aliases",
"command": "es_cat_aliases",
},
{
"caption": "Elasticsearch: Cat Allocation",
"command": "es_cat_allocation",
},
{
"caption": "Elasticsearch: Cat Master",
"command": "es_cat_master",
},
{
"caption": "Elasticsearch: Cat Nodes",
"command": "es_cat_nodes",
},
{
"caption": "Elasticsearch: Cat Pending Tasks",
"command": "es_cat_pending_tasks",
},
{
"caption": "Elasticsearch: Cat Plugins",
"command": "es_cat_plugins",
},
{
"caption": "Elasticsearch: Cat Recovery",
"command": "es_cat_recovery",
},
{
"caption": "Elasticsearch: Cat Thread Pool",
"command": "es_cat_thread_pool",
},
{
"caption": "Elasticsearch: Cat Segments",
"command": "es_cat_segments",
},
{
"caption": "Elasticsearch: Explain Document",
"command": "es_explain_document",
},
{
"caption": "Elasticsearch: Switch Servers",
"command": "switch_servers",
},
{
"caption": "Elasticsearch: Show Active Server",
"command": "show_active_server",
},
{
"caption": "Elasticsearch: Change Index",
"command": "change_index_setting",
},
{
"caption": "Elasticsearch: Change Doc Type",
"command": "change_doc_type_setting",
},
{
"caption": "Elasticsearch: Apache Bench",
"command": "apache_bench",
},
{
"caption": "Elasticsearch: User File Settings",
"command": "open_file",
"args": {
"file": "${packages}/User/Elasticsearch.sublime-settings"
}
},
{
"caption": "Elasticsearch: Open Elasticsearch Reference",
"command": "open_url",
"args": {
"url": "http://www.elastic.co/guide/en/elasticsearch/reference/current/index.html"
}
},
{
"caption": "Elasticsearch: Search in Docs",
"command": "elasticsearch_search_docs"
},
[
{"command": "elasticsearch_cat_aliases", "caption": "Elasticsearch: Cat Aliases"},
{"command": "elasticsearch_cat_allocation", "caption": "Elasticsearch: Cat Allocation"},
{"command": "elasticsearch_cat_health", "caption": "Elasticsearch: Cat Health"},
{"command": "elasticsearch_cat_indices", "caption": "Elasticsearch: Cat Indices"},
{"command": "elasticsearch_cat_master", "caption": "Elasticsearch: Cat Master"},
{"command": "elasticsearch_cat_nodes", "caption": "Elasticsearch: Cat Nodes"},
{"command": "elasticsearch_cat_pending_tasks", "caption": "Elasticsearch: Cat Pending Tasks"},
{"command": "elasticsearch_cat_plugins", "caption": "Elasticsearch: Cat Plugins"},
{"command": "elasticsearch_cat_recovery", "caption": "Elasticsearch: Cat Recovery"},
{"command": "elasticsearch_cat_segments", "caption": "Elasticsearch: Cat Segments"},
{"command": "elasticsearch_cat_shards", "caption": "Elasticsearch: Cat Shards"},
{"command": "elasticsearch_cat_thread_pool", "caption": "Elasticsearch: Cat Thread Pool"},

{"command": "elasticsearch_delete_document", "caption": "Elasticsearch: Delete Document"},
{"command": "elasticsearch_get_document", "caption": "Elasticsearch: Get Document"},
{"command": "elasticsearch_index_document", "caption": "Elasticsearch: Index Document"},

{"command": "elasticsearch_analyze", "caption": "Elasticsearch: Analyze"},
{"command": "elasticsearch_create_index", "caption": "Elasticsearch: Create Index"},
{"command": "elasticsearch_delete_index", "caption": "Elasticsearch: Delete Index"},
{"command": "elasticsearch_delete_mapping", "caption": "Elasticsearch: Delete Mapping"},
{"command": "elasticsearch_get_settings", "caption": "Elasticsearch: Get Index Settings"},
{"command": "elasticsearch_get_mapping", "caption": "Elasticsearch: Get Mapping"},
{"command": "elasticsearch_put_mapping", "caption": "Elasticsearch: Put Mapping"},

{"command": "elasticsearch_search", "caption": "Elasticsearch: Search"},
{"command": "elasticsearch_benchmark", "caption": "Elasticsearch: Benchmark"},
{"command": "elasticsearch_delete_percolator", "caption": "Elasticsearch: UN-Register Query (Percolator)"},
{"command": "elasticsearch_explain_document", "caption": "Elasticsearch: Explain Document"},
{"command": "elasticsearch_match_percolator", "caption": "Elasticsearch: Match Document (Percolator)"},
{"command": "elasticsearch_register_percolator", "caption": "Elasticsearch: Register Query (Percolator)"},
{"command": "elasticsearch_show_percolator", "caption": "Elasticsearch: Show Registered Query (Percolator)"},

{"command": "switch_servers", "caption": "Elasticsearch: Switch Servers"},
{"command": "show_active_server", "caption": "Elasticsearch: Show Active Server"},
{"command": "apache_bench", "caption": "Elasticsearch: Apache Bench"},
{"command": "open_file", "caption": "Elasticsearch: User File Settings", "args": {"file": "${packages}/User/Elasticsearch.sublime-settings"}},
{"command": "open_url", "caption": "Elasticsearch: Open Elasticsearch Reference", "args": {"url": "http://www.elastic.co/guide/en/elasticsearch/reference/current/index.html"}},
{"command": "search_docs", "caption": "Elasticsearch: Search in Docs"},
]
2 changes: 1 addition & 1 deletion Default.sublime-keymap
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
{
"keys": ["ctrl+alt+s"],
"command": "es_search_request"
"command": "elasticsearch_search"
}
]
6 changes: 2 additions & 4 deletions Elasticsearch.sublime-settings
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,10 @@
// Path to the Apache Bench (ab) command. If ab is on you path, you should not need to
// change this. Windows users will need to use forward slashes in the path.
"ab_command": "ab",

"enabled_pretty": true,
"pretty_command": "pretty_json",
"pretty_syntax": "Elasticsearch",

"show_panel_on_build": true,
"auto_complete": true,
"word_wrap": false,
"rulers": [],
"ask_to_search_types": false,
}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ Setting | Description
``enabled_pretty`` | enabled pretty json. required: [PrettyJson](https://github.com/dzhibas/SublimePrettyJson)
``pretty_command`` | pretty format command. default: ``pretty_json``
``pretty_syntax`` | pretty json target syntax. default: ``Elasticsearch``
``ask_to_search_types`` | if ``true`` you can choice search_types.


#### servers.\*

Expand Down Expand Up @@ -186,8 +188,6 @@ Elasticsearch: Cat Segments | GET | ``/_cat/segments``
Command | Descrption
-------------------------------------- | -------------------------
Elasticsearch: Apach Bench | Run Benchmark.
Elasticsearch: Change Doc Type Setting | Change the doc type for active server.
Elasticsearch: Change Index Setting | Change the index for active server.
Elasticsearch: Open Reference | Open Elasticsearch Reference Webpage
Elasticsearch: Show Active Server | Show active server settings in a panel.
Elasticsearch: Switch Servers | Change the active server.
Expand Down
148 changes: 0 additions & 148 deletions base.py

This file was deleted.

Loading

0 comments on commit b2ebcc1

Please sign in to comment.