69
69
---
70
70
71
71
Search is exposed through our API that's proxied from the domain where your docs are being served.
72
- This is ``https://docs.readthedocs.io/_/api/v2/docsearch `` for the ``docs `` project, for example.
72
+ This is ``https://docs.readthedocs.io/_/api/v2/search `` for the ``docs `` project, for example.
73
73
74
74
.. warning ::
75
75
76
76
This API isn't stable yet, some small things may change in the future.
77
77
78
- .. http :get :: /_/api/v2/docsearch /
78
+ .. http :get :: /_/api/v2/search /
79
79
80
80
Return a list of search results for a project,
81
81
including results from its :doc: `/subprojects `.
@@ -112,12 +112,12 @@ This is ``https://docs.readthedocs.io/_/api/v2/docsearch`` for the ``docs`` proj
112
112
113
113
.. code-tab :: bash
114
114
115
- $ curl "https://docs.readthedocs.io/_/api/v2/docsearch /?project=docs&version=latest&q=server%20side%20search"
115
+ $ curl "https://docs.readthedocs.io/_/api/v2/search /?project=docs&version=latest&q=server%20side%20search"
116
116
117
117
.. code-tab :: python
118
118
119
119
import requests
120
- URL = 'https://docs.readthedocs.io/_/api/v2/docsearch /'
120
+ URL = 'https://docs.readthedocs.io/_/api/v2/search /'
121
121
params = {
122
122
'q': 'server side search',
123
123
'project': 'docs',
@@ -132,7 +132,7 @@ This is ``https://docs.readthedocs.io/_/api/v2/docsearch`` for the ``docs`` proj
132
132
133
133
{
134
134
"count": 41,
135
- "next": "https://docs.readthedocs.io/api/v2/docsearch /?page=2&project=read-the-docs&q=server+side+search&version=latest",
135
+ "next": "https://docs.readthedocs.io/api/v2/search /?page=2&project=read-the-docs&q=server+side+search&version=latest",
136
136
"previous": null,
137
137
"results": [
138
138
{
@@ -164,8 +164,8 @@ This is ``https://docs.readthedocs.io/_/api/v2/docsearch`` for the ``docs`` proj
164
164
{
165
165
"type": "domain",
166
166
"role": "http:get",
167
- "name": "/_/api/v2/docsearch /",
168
- "id": "get--_-api-v2-docsearch -",
167
+ "name": "/_/api/v2/search /",
168
+ "id": "get--_-api-v2-search -",
169
169
"content": "Retrieve search results for docs",
170
170
"highlights": {
171
171
"name": [""],
0 commit comments