Skip to content

Commit 2e085f0

Browse files
committed
Merge pull request #157 from martiis/doc_update
Documentation update
2 parents 2903f9e + 009e8c5 commit 2e085f0

File tree

14 files changed

+150
-25
lines changed

14 files changed

+150
-25
lines changed

README.rst

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Elasticsearch Bundle
2-
====================
1+
ONGR Elasticsearch Bundle
2+
=========================
33

44
Elasticsearch Bundle was created in order to serve the need for
55
professional `elasticsearch <http://www.elasticsearch.org>`_ integration with enterprise level Symfony
@@ -41,10 +41,12 @@ Technical goodies:
4141
Documentation
4242
-------------
4343

44-
Documentation for ONGRElasticsearchBundle can be found in
45-
``Resources/doc/index.rst``
44+
The online documentation of the bundle is in `ongr.readthedocs.org <http://ongr.readthedocs.org/en/latest/components/ElasticsearchBundle/Resources/doc/index.html>`_
4645

47-
`Read the documentation (master) <https://github.com/ongr-io/ElasticsearchBundle/blob/master/Resources/doc/index.rst>`_
46+
For contribution to the documentation you can find it on `Resources/doc <https://github.com/ongr-io/ElasticsearchBundle/tree/master/Resources/doc>`_.
47+
48+
**Warning**: documentation files are not rendering correctly in Github (rst format)
49+
and some content might be broken or hidden, make sure to read raw files.
4850

4951
License
5052
-------

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
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Aggregations
2+
------------
3+
4+
Coming soon...
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Filters
2+
-------
3+
4+
Coming soon...
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Highlights
2+
----------
3+
4+
Coming soon...

Resources/doc/searching.rst renamed to Resources/doc/dsl/index.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,16 @@ It will create query:
9696
}
9797
}
9898
}
99+
100+
Available API's
101+
---------------
102+
103+
.. toctree::
104+
:maxdepth: 10
105+
:titlesonly:
106+
107+
queries/index
108+
filters/index
109+
aggregations/index
110+
highlights/index
111+
suggesters/index
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Queries
2+
-------
3+
4+
Coming soon...

Resources/doc/suggesters/usage.rst renamed to Resources/doc/dsl/suggesters/index.rst

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
1-
Suggesters Usage
2-
================
1+
Suggesters
2+
==========
3+
4+
.. toctree::
5+
:maxdepth: 1
6+
:titlesonly:
7+
:hidden:
8+
9+
types
10+
indexed_suggesters
311

412
`Suggesters`_ are used to find a similar looking term using the provided text.
513

614
You can use suggesters (in any query, as you would normally) or `suggester api`_.
715

8-
There are basically four types of suggesters: terms, phrase, completion and context. To find out available parameters for these suggesters check out `<types.rst>`_ section.
16+
There are basically four types of suggesters: terms, phrase, completion and context. To find out available parameters for these suggesters check out `types <types.html>`_ section.
917

10-
.. note:: Completion and context suggesters need indexed data in order to work. To find out how to setup indexing and mapping, check `<indexed_suggesters.rst>`_ section.
18+
.. note:: Completion and context suggesters need indexed data in order to work. To find out how to setup indexing and mapping, check `indexed suggesters <indexed_suggesters.html>`_ section.
1119

1220
Using Suggesters in Any Query
1321
-----------------------------
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)