CLI¶
Delete Elastic Indices¶
-
class
DeleteElasticIndex
(func=None)¶ Delete elastic index
It removes all elastic indices.
Example:
$ python -m sams.manage app:delete_elastic_index
Flush Elastic Indices¶
-
class
FlushElasticIndex
(func=None)¶ Flush elastic index.
It removes elastic index, creates a new one and index it from mongo.
–page-size
-p
Size of every list in each iteration
Example:
$ python -m sams.manage app:flush_elastic_index $ python -m sams.manage app:flush_elastic_index --page-size=100
Index From Mongo¶
-
class
IndexFromMongo
(func=None)¶ Index the specified mongo collection in the specified elastic collection/type.
This will use the default APP mongo DB to read the data and the default Elastic APP index.
–from
-f
Re-index specific collection
–all
-a
Re-index all collections
–page-size
-p
Size of every list in each iteration
Example:
$ python -m sams.manage app:index_from_mongo --from=assets $ python -m sams.manage app:index_from_mongo --all $ python -m sams.manage app:index_from_mongo --page-size=100