Skip to content
Browse files

more commands for running over all indexes

  • Loading branch information...
1 parent 5f816d8 commit bc7e15175f7dad15712ee243a9697c913eede6ca Missy committed May 7, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 squirrel/helpful_commands
View
4 squirrel/helpful_commands
@@ -58,6 +58,10 @@ curl -XGET 'localhost:9200/flight_count_20130408/flight_count/_search?pretty=tru
curl -s 'localhost:9200/flight_count_20130408/flight_count/_search?cache=true&preference=_primary_first' -d '{"query":{"match_all":{}},"facets":{"igna":{"date_histogram":{"field":"tb_h","interval":"day"}},"ignb":{"terms":{"fields":["_state","base_feature","cnt","feature","flight_id","metric","metric_feature","seconds","tb_h"]}},"ign__state":{"terms_stats":{"key_field":"_state","value_field":"cnt"}},"ign_base_feature":{"terms_stats":{"key_field":"base_feature","value_field":"cnt"}},"ign_cnt":{"terms_stats":{"key_field":"cnt","value_field":"cnt"}},"ign_feature":{"terms_stats":{"key_field":"feature","value_field":"cnt"}},"ign_flight_id":{"terms_stats":{"key_field":"flight_id","value_field":"cnt"}},"ign_metric":{"terms_stats":{"key_field":"metric","value_field":"cnt"}},"ign_metric_feature":{"terms_stats":{"key_field":"metric_feature","value_field":"cnt"}},"ign_seconds":{"terms_stats":{"key_field":"seconds","value_field":"cnt"}},"ign_tb_h":{"terms_stats":{"key_field":"tb_h","value_field":"cnt"}},"ignc":{"terms_stats":{"key_field":"metric_feature","value_field":"cnt"}}}}'
# get mapping
curl -XGET 'http://localhost:9200/placement_count/_mapping'
+# close all indexes
+for foo in ad_tag_count_20130405 ad_tag_count_20130408 browser_count_20130405 browser_count_20130408 cache creative_count_20130405 creative_count_20130408 double_node_flight_count_20130405 eight_flight_count_20130405 flight_count_20130405 flight_count_20130408 flight_count_with_routing four_flight_count_20130405 interaction_count_20130405 interaction_count_20130408 item_count_20130405 item_count_20130408 mountweasel_20130408 parse_exception_20130405 parse_exception_20130405 parse_exception_20130408 placement_count_20130405 placement_count_20130408 placement_count_routing_20130420 signal_value_count_20130405 signal_value_count_20130408 site_count_20130405 site_count_20130408 ten_flight_count_20130405 test test_flight_count three_flight_count_20130405 triple_flight_count_20130405 ; do echo -n -e "$foo\t" ; curl -XPOST 'localhost:9200/'$foo'/_close' ; done
+# get all warmer names
+for foo in ad_tag_count_20130405 ad_tag_count_20130408 browser_count_20130405 browser_count_20130408 cache creative_count_20130405 creative_count_20130408 double_node_flight_count_20130405 eight_flight_count_20130405 flight_count_20130405 flight_count_20130408 flight_count_with_routing four_flight_count_20130405 interaction_count_20130405 interaction_count_20130408 item_count_20130405 item_count_20130408 mountweasel_20130408 parse_exception_20130405 parse_exception_20130405 parse_exception_20130408 placement_count_20130405 placement_count_20130408 placement_count_routing_20130420 signal_value_count_20130405 signal_value_count_20130408 site_count_20130405 site_count_20130408 ten_flight_count_20130405 test test_flight_count three_flight_count_20130405 triple_flight_count_20130405 ; do echo -n -e "$foo\t" ; curl -XPOST 'curl -XGET localhost:9200/'$foo'/_warmer/' ; done
#proxy to storm spongecell

0 comments on commit bc7e151

Please sign in to comment.
Something went wrong with that request. Please try again.