浏览代码

add possible values of time_range param

Noemi Vanyi 8 年前
父节点
当前提交
b7fda2702b
共有 1 个文件被更改,包括 15 次插入15 次删除
  1. 15
    15
      docs/dev/search_api.rst

+ 15
- 15
docs/dev/search_api.rst 查看文件

@@ -16,18 +16,18 @@ Furthermore, two enpoints ``/`` and ``/search`` are available for querying.
16 16
 Parameters
17 17
 ``````````
18 18
 
19
-+------------------+----------------------------------------------------------------------------------------------------+-----------------------------+
20
-| Name             | Description                                                                                        |                             |
21
-+==================+====================================================================================================+=============================+
22
-| ``q``            | The search query, see :doc:`/user/search_syntax`                                                   | required                    |
23
-+------------------+----------------------------------------------------------------------------------------------------+-----------------------------+
24
-| ``categories``   | Comma separated list, specifies the active search categories                                       | optional                    |
25
-+------------------+----------------------------------------------------------------------------------------------------+-----------------------------+
26
-| ``engines``      | Comma separated list, specifies the active search engines                                          | optional                    |
27
-+------------------+----------------------------------------------------------------------------------------------------+-----------------------------+
28
-| ``lang``         | Code of the language                                                                               | optional (default: ``all``) |
29
-+------------------+----------------------------------------------------------------------------------------------------+-----------------------------+
30
-| ``pageno``       | Search page number                                                                                 | optional (default: ``1``)   |
31
-+------------------+----------------------------------------------------------------------------------------------------+-----------------------------+
32
-| ``time_range``   | Time range of search                                                                               | optional                    |
33
-+------------------+----------------------------------------------------------------------------------------------------+-----------------------------+
19
++------------------+----------------------------------------------------------------------------------------------------+--------------------------------------------------+
20
+| Name             | Description                                                                                        |                                                  |
21
++==================+====================================================================================================+==================================================+
22
+| ``q``            | The search query, see :doc:`/user/search_syntax`                                                   | required                                         |
23
++------------------+----------------------------------------------------------------------------------------------------+--------------------------------------------------+
24
+| ``categories``   | Comma separated list, specifies the active search categories                                       | optional                                         |
25
++------------------+----------------------------------------------------------------------------------------------------+--------------------------------------------------+
26
+| ``engines``      | Comma separated list, specifies the active search engines                                          | optional                                         |
27
++------------------+----------------------------------------------------------------------------------------------------+--------------------------------------------------+
28
+| ``lang``         | Code of the language                                                                               | optional (default: ``all``)                      |
29
++------------------+----------------------------------------------------------------------------------------------------+--------------------------------------------------+
30
+| ``pageno``       | Search page number                                                                                 | optional (default: ``1``)                        |
31
++------------------+----------------------------------------------------------------------------------------------------+--------------------------------------------------+
32
+| ``time_range``   | Time range of search                                                                               | optional (possible: ``day``, ``month``, ``year``)|
33
++------------------+----------------------------------------------------------------------------------------------------+--------------------------------------------------+