Skip to content

Commit 98854b3

Browse files
committed
Strip excess '/' at the end of doc urls
1 parent 68b19eb commit 98854b3

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

elasticsearch/client/indices.py

+30-30
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class IndicesClient(NamespacedClient):
77
def analyze(self, index=None, body=None, params=None):
88
"""
99
Perform the analysis process on a text and return the tokens breakdown of the text.
10-
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-analyze.html/>`_
10+
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-analyze.html>`_
1111
1212
:arg index: The name of the index to scope the operation
1313
:arg body: The text on which the analysis should be performed
@@ -32,7 +32,7 @@ def refresh(self, index=None, params=None):
3232
"""
3333
Explicitly refresh one or more index, making all operations performed
3434
since the last refresh available for search.
35-
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-refresh.html/>`_
35+
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-refresh.html>`_
3636
3737
:arg index: A comma-separated list of index names; use `_all` or empty
3838
string to perform the operation on all indices
@@ -47,7 +47,7 @@ def refresh(self, index=None, params=None):
4747
def flush(self, index=None, params=None):
4848
"""
4949
Explicitly flush one or more indices.
50-
`<http://http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-flush.html/>`_
50+
`<http://http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-flush.html>`_
5151
5252
:arg index: A comma-separated list of index names; use `_all` or empty
5353
string for all indices
@@ -65,7 +65,7 @@ def flush(self, index=None, params=None):
6565
def create(self, index, body=None, params=None):
6666
"""
6767
Create an index in Elasticsearch.
68-
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-create-index.html/>`_
68+
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-create-index.html>`_
6969
7070
:arg index: The name of the index
7171
:arg body: The configuration for the index (`settings` and `mappings`)
@@ -80,7 +80,7 @@ def create(self, index, body=None, params=None):
8080
def open(self, index, params=None):
8181
"""
8282
Open a closed index to make it available for search.
83-
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-open-close.html/>`_
83+
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-open-close.html>`_
8484
8585
:arg index: The name of the index
8686
:arg master_timeout: Specify timeout for connection to master
@@ -95,7 +95,7 @@ def close(self, index, params=None):
9595
"""
9696
Close an index to remove it's overhead from the cluster. Closed index
9797
is blocked for read/write operations.
98-
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-open-close.html/>`_
98+
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-open-close.html>`_
9999
100100
:arg index: The name of the index
101101
:arg master_timeout: Specify timeout for connection to master
@@ -109,7 +109,7 @@ def close(self, index, params=None):
109109
def delete(self, index=None, params=None):
110110
"""
111111
Delete an index in Elasticsearch
112-
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-delete-index.html/>`_
112+
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-delete-index.html>`_
113113
114114
:arg index: A comma-separated list of indices to delete; use `_all` or
115115
empty string to delete all indices
@@ -124,7 +124,7 @@ def delete(self, index=None, params=None):
124124
def exists(self, index, params=None):
125125
"""
126126
Return a boolean indicating whether given index exists.
127-
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-indices-exists.html/>`_
127+
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-indices-exists.html>`_
128128
129129
:arg index: A list of indices to check
130130
"""
@@ -138,7 +138,7 @@ def exists(self, index, params=None):
138138
def exists_type(self, index, doc_type, params=None):
139139
"""
140140
Check if a type/types exists in an index/indices.
141-
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-types-exists.html/>`_
141+
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-types-exists.html>`_
142142
143143
:arg index: A comma-separated list of index names; use `_all` to check
144144
the types across all indices
@@ -156,7 +156,7 @@ def exists_type(self, index, doc_type, params=None):
156156
def snapshot_index(self, index=None, params=None):
157157
"""
158158
Explicitly perform a snapshot through the gateway of one or more indices (backup them).
159-
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-gateway-snapshot.html/>`_
159+
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-gateway-snapshot.html>`_
160160
161161
:arg index: A comma-separated list of index names; use `_all` or empty
162162
string for all indices
@@ -171,7 +171,7 @@ def snapshot_index(self, index=None, params=None):
171171
def put_mapping(self, index, doc_type, body, params=None):
172172
"""
173173
Register specific mapping definition for a specific type.
174-
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-put-mapping.html/>`_
174+
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-put-mapping.html>`_
175175
176176
:arg index: A comma-separated list of index names; use `_all` to
177177
perform the operation on all indices
@@ -190,7 +190,7 @@ def put_mapping(self, index, doc_type, body, params=None):
190190
def get_mapping(self, index=None, doc_type=None, params=None):
191191
"""
192192
Retrieve mapping definition of index or index/type.
193-
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-get-mapping.html/>`_
193+
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-get-mapping.html>`_
194194
195195
:arg index: A comma-separated list of index names; use `_all` or empty
196196
string for all indices
@@ -204,7 +204,7 @@ def get_mapping(self, index=None, doc_type=None, params=None):
204204
def get_field_mapping(self, index=None, doc_type=None, field=None, params=None):
205205
"""
206206
Retrieve mapping definition of a specific field.
207-
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-get-field-mapping.html/>`_
207+
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-get-field-mapping.html>`_
208208
209209
:arg index: A comma-separated list of index names; use `_all` or empty
210210
string for all indices
@@ -220,7 +220,7 @@ def get_field_mapping(self, index=None, doc_type=None, field=None, params=None):
220220
def delete_mapping(self, index, doc_type, params=None):
221221
"""
222222
Delete a mapping (type) along with its data.
223-
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-delete-mapping.html/>`_
223+
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-delete-mapping.html>`_
224224
225225
:arg index: A comma-separated list of index names; use `_all` for all indices
226226
:arg doc_type: The name of the document type to delete
@@ -234,7 +234,7 @@ def delete_mapping(self, index, doc_type, params=None):
234234
def put_alias(self, index, name, body=None, params=None):
235235
"""
236236
Create an alias for a specific index/indices.
237-
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-aliases.html/>`_
237+
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-aliases.html>`_
238238
239239
:arg index: The name of the index with an alias
240240
:arg name: The name of the alias to be created or updated
@@ -250,7 +250,7 @@ def put_alias(self, index, name, body=None, params=None):
250250
def exists_alias(self, name, index=None, params=None):
251251
"""
252252
Return a boolean indicating whether given alias exists.
253-
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-aliases.html/>`_
253+
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-aliases.html>`_
254254
255255
:arg name: A comma-separated list of alias names to return
256256
:arg index: A comma-separated list of index names to filter aliases
@@ -268,7 +268,7 @@ def exists_alias(self, name, index=None, params=None):
268268
def get_alias(self, name, index=None, params=None):
269269
"""
270270
Retrieve a specified alias.
271-
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-aliases.html/>`_
271+
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-aliases.html>`_
272272
273273
:arg name: A comma-separated list of alias names to return
274274
:arg index: A comma-separated list of index names to filter aliases
@@ -283,7 +283,7 @@ def get_alias(self, name, index=None, params=None):
283283
def get_aliases(self, index=None, params=None):
284284
"""
285285
Retrieve specified aliases
286-
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-aliases.html/>`_
286+
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-aliases.html>`_
287287
288288
:arg index: A comma-separated list of index names to filter aliases
289289
:arg timeout: Explicit operation timeout
@@ -296,7 +296,7 @@ def get_aliases(self, index=None, params=None):
296296
def update_aliases(self, body, params=None):
297297
"""
298298
Update specified aliases.
299-
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-aliases.html/>`_
299+
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-aliases.html>`_
300300
301301
:arg body: The definition of `actions` to perform
302302
:arg master_timeout: Specify timeout for connection to master
@@ -310,7 +310,7 @@ def update_aliases(self, body, params=None):
310310
def delete_alias(self, index, name, params=None):
311311
"""
312312
Delete specific alias.
313-
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-aliases.html/>`_
313+
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-aliases.html>`_
314314
315315
:arg index: The name of the index with an alias
316316
:arg name: The name of the alias to be deleted
@@ -326,7 +326,7 @@ def put_template(self, name, body, params=None):
326326
"""
327327
Create an index template that will automatically be applied to new
328328
indices created.
329-
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-templates.html/>`_
329+
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-templates.html>`_
330330
331331
:arg name: The name of the template
332332
:arg body: The template definition
@@ -343,7 +343,7 @@ def put_template(self, name, body, params=None):
343343
def get_template(self, name=None, params=None):
344344
"""
345345
Retrieve an index template by its name.
346-
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-templates.html/>`_
346+
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-templates.html>`_
347347
348348
:arg name: The name of the template
349349
"""
@@ -355,7 +355,7 @@ def get_template(self, name=None, params=None):
355355
def delete_template(self, name, params=None):
356356
"""
357357
Delete an index template by its name.
358-
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-templates.html/>`_
358+
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-templates.html>`_
359359
360360
:arg name: The name of the template
361361
:arg master_timeout: Specify timeout for connection to master
@@ -369,7 +369,7 @@ def delete_template(self, name, params=None):
369369
def get_settings(self, index=None, params=None):
370370
"""
371371
Retrieve settings for one or more (or all) indices.
372-
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-get-settings.html/>`_
372+
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-get-settings.html>`_
373373
374374
:arg index: A comma-separated list of index names; use `_all` or empty
375375
string to perform the operation on all indices
@@ -382,7 +382,7 @@ def get_settings(self, index=None, params=None):
382382
def put_settings(self, body, index=None, params=None):
383383
"""
384384
Change specific index level settings in real time.
385-
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-update-settings.html/>`_
385+
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-update-settings.html>`_
386386
387387
:arg index: A comma-separated list of index names; use `_all` or empty
388388
string to perform the operation on all indices
@@ -398,7 +398,7 @@ def put_warmer(self, index, name, body, doc_type=None, params=None):
398398
"""
399399
Create an index warmer to run registered search requests to warm up the
400400
index before it is available for search.
401-
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-warmers.html/>`_
401+
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-warmers.html>`_
402402
403403
:arg index: A comma-separated list of index names to register the warmer for;
404404
use `_all` or empty string to perform the operation on all indices
@@ -416,7 +416,7 @@ def put_warmer(self, index, name, body, doc_type=None, params=None):
416416
def get_warmer(self, index, doc_type=None, name=None, params=None):
417417
"""
418418
Retreieve an index warmer.
419-
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-warmers.html/>`_
419+
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-warmers.html>`_
420420
421421
:arg index: A comma-separated list of index names to restrict the
422422
operation; use `_all` to perform the operation on all indices
@@ -431,7 +431,7 @@ def get_warmer(self, index, doc_type=None, name=None, params=None):
431431
def delete_warmer(self, index, doc_type=None, name=None, params=None):
432432
"""
433433
Delete an index warmer.
434-
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-warmers.html/>`_
434+
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-warmers.html>`_
435435
436436
:arg index: A comma-separated list of index names to register warmer
437437
for; use `_all` or empty string to perform the operation on all indices
@@ -524,7 +524,7 @@ def segments(self, index=None, params=None):
524524
def optimize(self, index=None, params=None):
525525
"""
526526
Explicitly optimize one or more indices through an API.
527-
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-optimize.html/>`_
527+
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-optimize.html>`_
528528
529529
:arg index: A comma-separated list of index names; use `_all` or empty
530530
string to perform the operation on all indices
@@ -574,7 +574,7 @@ def validate_query(self, index=None, doc_type=None, body=None, params=None):
574574
def clear_cache(self, index=None, params=None):
575575
"""
576576
Clear either all caches or specific cached associated with one ore more indices.
577-
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-clearcache.html/>`_
577+
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-clearcache.html>`_
578578
579579
:arg index: A comma-separated list of index name to limit the operation
580580
:arg field_data: Clear field data

0 commit comments

Comments
 (0)