Show More
@@ -3,7 +3,15 b'' | |||
|
3 | 3 | Full-text Search |
|
4 | 4 | ---------------- |
|
5 | 5 | |
|
6 |
By default |RC |
|
|
6 | By default |RC| is configured to use `Whoosh`_ to index |repos| and | |
|
7 | provide full-text search. | |
|
8 | ||
|
9 | |RCE| also provides support for `Elasticsearch`_ as a backend for scalable | |
|
10 | search. See :ref:`enable-elasticsearch` for details. | |
|
11 | ||
|
12 | Indexing | |
|
13 | ^^^^^^^^ | |
|
14 | ||
|
7 | 15 | To run the indexer you need to use an |authtoken| with admin rights to all |
|
8 | 16 | |repos|. |
|
9 | 17 | |
@@ -232,4 +240,33 b' use the following example :file:`mapping' | |||
|
232 | 240 | max_filesize = 800MB |
|
233 | 241 | commit_parse_limit = 20000 |
|
234 | 242 | |
|
243 | .. _enable-elasticsearch: | |
|
244 | ||
|
245 | Enabling Elasticsearch | |
|
246 | ^^^^^^^^^^^^^^^^^^^^^^ | |
|
247 | ||
|
248 | 1. Open the :file:`rhodecode.ini` file for the instance you wish to edit. The | |
|
249 | default location is | |
|
250 | :file:`home/{user}/.rccontrol/{instance-id}/rhodecode.ini` | |
|
251 | 2. Find the search configuration section: | |
|
252 | ||
|
253 | .. code-block:: ini | |
|
254 | ||
|
255 | ################################### | |
|
256 | ## SEARCH INDEXING CONFIGURATION ## | |
|
257 | ################################### | |
|
258 | ||
|
259 | search.module = rhodecode.lib.index.whoosh | |
|
260 | search.location = %(here)s/data/index | |
|
261 | ||
|
262 | and change it to: | |
|
263 | ||
|
264 | .. code-block:: ini | |
|
265 | ||
|
266 | search.module = rc_elasticsearch | |
|
267 | search.location = http://localhost:9200/ | |
|
268 | ||
|
269 | where ``search.location`` points to the elasticsearch server. | |
|
270 | ||
|
235 | 271 | .. _Whoosh: https://pypi.python.org/pypi/Whoosh/ |
|
272 | .. _Elasticsearch: https://www.elastic.co/ No newline at end of file |
General Comments 0
You need to be logged in to leave comments.
Login now