View
flush(view, config)
¶
Flushes the given view's queue.
For non-published views this should always be safe to do (but maybe think about it first, just to make sure) but for published views you should make sure you know what you're doing.
Source code in dataimporter/cli/view.py
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | |
ingest(view, config, everything=False)
¶
On the given view, updates MongoDB with any queued EMu changes and flushes its queue.
Source code in dataimporter/cli/view.py
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | |
list_views(config)
¶
List the name of all the views in current use.
Source code in dataimporter/cli/view.py
13 14 15 16 17 18 19 20 | |
purge(view, config)
¶
Purge non-member and non-publishable records from a view.
Non-publishable records should be handled by the ingest process, but the occurrence of records that stop being members of a view should be much rarer so this needs to be run on a semi-regular basis to account for those.
Source code in dataimporter/cli/view.py
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | |
sync(view, config, resync=False)
¶
Updates Elasticsearch with the changes in MongoDB for the given view.
Source code in dataimporter/cli/view.py
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | |