Skip to content

Instantly share code, notes, and snippets.

@jamster
Created October 6, 2010 14:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamster/613450 to your computer and use it in GitHub Desktop.
Save jamster/613450 to your computer and use it in GitHub Desktop.
curl -s -XGET 'http://localhost:9200/_cluster/state?pretty=true'
{
"cluster_name" : "default",
"master_node" : "539080ef-fc83-49e9-be3a-458a90367386",
"blocks" : {
},
"nodes" : {
"539080ef-fc83-49e9-be3a-458a90367386" : {
"name" : "Werewolf by Night",
"transport_address" : "inet[/192.168.2.15:9300]",
"attributes" : {
}
}
},
"metadata" : {
"indices" : {
"twitter" : {
"settings" : {
"index.number_of_shards" : "1",
"index.number_of_replicas" : "0"
},
"mappings" : {
"tweet" : {
"_boost" : {
"name" : "_boost"
},
"dynamic" : true,
"_type" : {
"store" : "no"
},
"enabled" : true,
"date_formats" : [ "dateOptionalTime", "yyyy/MM/dd HH:mm:ss||yyyy/MM/dd" ],
"_source" : {
"enabled" : true,
"name" : "_source"
},
"_id" : {
"store" : "no"
},
"_index" : {
"enabled" : false,
"store" : "no"
},
"path" : "full",
"properties" : {
"message" : {
"omit_term_freq_and_positions" : false,
"index_name" : "message",
"index" : "analyzed",
"omit_norms" : false,
"store" : "no",
"boost" : 1.0,
"term_vector" : "no",
"type" : "string"
},
"postDate" : {
"omit_term_freq_and_positions" : true,
"index_name" : "postDate",
"index" : "not_analyzed",
"omit_norms" : true,
"store" : "no",
"boost" : 1.0,
"format" : "dateOptionalTime",
"precision_step" : 4,
"term_vector" : "no",
"type" : "date"
},
"user" : {
"omit_term_freq_and_positions" : false,
"index_name" : "user",
"index" : "analyzed",
"omit_norms" : false,
"store" : "no",
"boost" : 1.0,
"term_vector" : "no",
"type" : "string"
}
},
"_all" : {
"enabled" : true,
"store" : "no",
"term_vector" : "no"
},
"type" : "object"
}
},
"aliases" : [ ]
}
}
},
"routing_table" : {
"indices" : {
"twitter" : {
"shards" : {
"0" : [ {
"state" : "STARTED",
"primary" : true,
"node" : "539080ef-fc83-49e9-be3a-458a90367386",
"relocating_node" : null,
"shard" : 0,
"index" : "twitter"
} ]
}
}
}
},
"routing_nodes" : {
"unassigned" : [ ],
"nodes" : {
"539080ef-fc83-49e9-be3a-458a90367386" : [ {
"state" : "STARTED",
"primary" : true,
"node" : "539080ef-fc83-49e9-be3a-458a90367386",
"relocating_node" : null,
"shard" : 0,
"index" : "twitter"
} ]
}
},
"allocations" : [ ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment