Lines Matching refs:options
46 options = parser.parse_args()
51 result = autotest_es.execute_query(index=options.old, host=options.host,
52 port=options.port, query)
53 print 'Total number of records in index %s: %d' % (options.old,
57 (options.old, options.new, options.host, options.port))
59 client = Elasticsearch(hosts=[{'host': options.host, 'port': options.port}])
60 helpers.reindex(client, options.old, options.new)
64 result = es.execute_query(index=options.new, host=options.host,
65 port=options.port, query)
66 print 'Total number of records in index %s: %d' % (options.new,
77 body = {'actions': [{'remove': {'alias': options.alias,
78 'index': options.old}},
79 {'add': {'alias': options.alias,
80 'index': options.new}}
87 (options.host, options.port, options.old))