1
- Search
2
- ======
1
+ Server Side Search
2
+ ==================
3
3
4
4
Read The Docs uses Elasticsearch _ instead of the built in Sphinx search for providing better search
5
5
results. Documents are indexed in the Elasticsearch index and the search is made through the API.
6
6
All the Search Code is open source and lives in the `GitHub Repository `_.
7
7
Currently we are using `Elasticsearch 6.3 `_.
8
8
9
- Local Development Configuration
9
+ Local development configuration
10
10
-------------------------------
11
11
12
12
Elasticsearch is installed and run as part of the :doc: `development installation guide </install >`.
@@ -24,7 +24,7 @@ management command:
24
24
For performance optimization, we implemented our own version of management command rather than
25
25
the built in management command provided by the `django-elasticsearch-dsl `_ package.
26
26
27
- Auto Indexing
27
+ Auto indexing
28
28
^^^^^^^^^^^^^
29
29
30
30
By default, Auto Indexing is turned off in development mode. To turn it on, change the
@@ -57,16 +57,12 @@ If you get an error like::
57
57
58
58
RequestError(400, 'search_phase_execution_exception', 'failed to create query: ...
59
59
60
- You can fix this by deleting the page index:
60
+ You can fix this by deleting the page index and :ref: ` re-indexing < server-side-search:indexing into elasticsearch >` :
61
61
62
62
.. prompt :: bash
63
63
64
64
inv docker.manage 'search_index --delete'
65
-
66
- .. note ::
67
-
68
- You'll need to :ref: `reindex the projects <search:indexing into elasticsearch >` after this.
69
-
65
+ inv docker.manage reindex_elasticsearch
70
66
71
67
How we index documentations
72
68
~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -93,7 +89,7 @@ from the main site. We listen to the `post_create` and `post_delete` signals of
93
89
`Project ` model and index/delete into Elasticsearch accordingly.
94
90
95
91
96
- Elasticsearch Document
92
+ Elasticsearch document
97
93
~~~~~~~~~~~~~~~~~~~~~~
98
94
99
95
`elasticsearch-dsl `_ provides a model-like wrapper for `the Elasticsearch document `_.
0 commit comments