Skip to content

Commit 009e8c5

Browse files
author
Martynas Sudintas
committed
Documented warmer and cache:clear commands
1 parent 9af112f commit 009e8c5

File tree

2 files changed

+90
-1
lines changed

2 files changed

+90
-1
lines changed

Resources/doc/commands.rst

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,4 +156,93 @@ Type update
156156
| ``es:type:update --manager shop --type article --force`` | Updates mapping for ``shop`` *manager* type ``article``. |
157157
+------------------------------------------------------------+---------------------------------------------------------------+
158158

159+
Cache clear
160+
-----------
161+
162+
- Command name: ``es:cache:clear``.
163+
- Description: Clears elasticsearch client cache.
164+
- Options:
165+
166+
+-----------------+---------------+------------------+-----------------------------------------------------------------------------------------------+
167+
| Full name | Short name | Value | What it does |
168+
+=================+===============+==================+===============================================================================================+
169+
| ``--manager`` | *undefined* | Manager name. | Used to select *manager* to update types for. If not specified, default manager is used. |
170+
+-----------------+---------------+------------------+-----------------------------------------------------------------------------------------------+
171+
172+
- Examples:
173+
174+
+------------------------------------------------------------+---------------------------------------------------------------+
175+
| Input | What it does |
176+
+============================================================+===============================================================+
177+
| ``es:cache:clear`` | Clears client which *manager* is using cache. |
178+
+------------------------------------------------------------+---------------------------------------------------------------+
179+
| ``es:type:update --manager shop`` | Clears client which ``shop`` *manager* is using cache. |
180+
+------------------------------------------------------------+---------------------------------------------------------------+
181+
182+
Warmer put
183+
----------
184+
185+
- Command name: ``es:warmer:put``.
186+
- Description: Puts warmers into elasticsearch.
187+
- Arguments:
188+
189+
+--------------+-----------------------------------------------------------------------------------------------------+
190+
| Value | What it specifies |
191+
+==============+=====================================================================================================+
192+
| Warmer name | Array of tagged warmer names. |
193+
+--------------+-----------------------------------------------------------------------------------------------------+
194+
195+
- Options:
196+
197+
+-----------------+---------------+------------------+-----------------------------------------------------------------------------------------------+
198+
| Full name | Short name | Value | What it does |
199+
+=================+===============+==================+===============================================================================================+
200+
| ``--manager`` | *undefined* | Manager name. | Used to select *manager* to update types for. If not specified, default manager is used. |
201+
+-----------------+---------------+------------------+-----------------------------------------------------------------------------------------------+
202+
203+
- Examples:
204+
205+
+------------------------------------------------------------+------------------------------------------------------------------------------------+
206+
| Input | What it does |
207+
+============================================================+====================================================================================+
208+
| ``es:warmer:put`` | Puts all warmers into client which *default* manager is using. |
209+
+------------------------------------------------------------+------------------------------------------------------------------------------------+
210+
| ``es:warmer:put --manager shop`` | Puts all warmers into client which ``shop`` manager is using. |
211+
+------------------------------------------------------------+------------------------------------------------------------------------------------+
212+
| ``es:warmer:put foo baz --manager tuna`` | Puts ``foo`` and ``baz`` named warmers into client which ``tuna`` manager is using |
213+
+------------------------------------------------------------+------------------------------------------------------------------------------------+
214+
215+
Warmer delete
216+
-------------
217+
218+
- Command name: ``es:warmer:delete``.
219+
- Description: Removes warmers from elasticsearch.
220+
- Arguments:
221+
222+
+--------------+-----------------------------------------------------------------------------------------------------+
223+
| Value | What it specifies |
224+
+==============+=====================================================================================================+
225+
| Warmer name | Array of tagged warmer names. |
226+
+--------------+-----------------------------------------------------------------------------------------------------+
227+
228+
- Options:
229+
230+
+-----------------+---------------+------------------+-----------------------------------------------------------------------------------------------+
231+
| Full name | Short name | Value | What it does |
232+
+=================+===============+==================+===============================================================================================+
233+
| ``--manager`` | *undefined* | Manager name. | Used to select *manager* to update types for. If not specified, default manager is used. |
234+
+-----------------+---------------+------------------+-----------------------------------------------------------------------------------------------+
235+
236+
- Examples:
237+
238+
+------------------------------------------------------------+----------------------------------------------------------------------------------------+
239+
| Input | What it does |
240+
+============================================================+========================================================================================+
241+
| ``es:warmer:delete`` | Deletes all warmers from client which *default* manager is using. |
242+
+------------------------------------------------------------+----------------------------------------------------------------------------------------+
243+
| ``es:warmer:delete --manager shop`` | Deletes all warmers from client which ``shop`` manager is using. |
244+
+------------------------------------------------------------+----------------------------------------------------------------------------------------+
245+
| ``es:warmer:delete foo baz --manager tuna`` | Deletes ``foo`` and ``baz`` named warmers from client which ``tuna`` manager is using. |
246+
+------------------------------------------------------------+----------------------------------------------------------------------------------------+
247+
159248
.. _manager: setup.html

Resources/doc/warmers.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ quotations marks.
5050
Putting warmers into index.
5151
---------------------------
5252

53-
The easiet way to load warmers are through `commands <commands.html>`_.
53+
The easiet way to load warmers are through `commands <commands.html#warmer-put>`_.
5454

5555
Also we can load them manually. f.e.
5656

0 commit comments

Comments
 (0)