Skip to content

Commit 775836d

Browse files
author
khanhkhanhlele
committed
Fix typos in some files
1 parent 9a9c592 commit 775836d

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

elasticsearch/_sync/client/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ def bulk(
601601
Note that Elasticsearch limits the maximum size of a HTTP request to 100mb by default so clients must ensure that no request exceeds this size.
602602
It is not possible to index a single document that exceeds the size limit, so you must pre-process any such documents into smaller pieces before sending them to Elasticsearch.
603603
For instance, split documents into pages or chapters before indexing them, or store raw binary data in a system outside Elasticsearch and replace the raw data with a link to the external system in the documents that you send to Elasticsearch.</p>
604-
<p><strong>Client suppport for bulk requests</strong></p>
604+
<p><strong>Client support for bulk requests</strong></p>
605605
<p>Some of the officially supported clients provide helpers to assist with bulk requests and reindexing:</p>
606606
<ul>
607607
<li>Go: Check out <code>esutil.BulkIndexer</code></li>
@@ -2868,7 +2868,7 @@ def index(
28682868
:param op_type: Set to `create` to only index the document if it does not already
28692869
exist (put if absent). If a document with the specified `_id` already exists,
28702870
the indexing operation will fail. The behavior is the same as using the `<index>/_create`
2871-
endpoint. If a document ID is specified, this paramater defaults to `index`.
2871+
endpoint. If a document ID is specified, this parameter defaults to `index`.
28722872
Otherwise, it defaults to `create`. If the request targets a data stream,
28732873
an `op_type` of `create` is required.
28742874
:param pipeline: The ID of the pipeline to use to preprocess incoming documents.

elasticsearch/_sync/client/indices.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ def create(
657657
`"`, `<`, `>`, `|`, ` ` (space character), `,`, or `#` * Indices prior to
658658
7.0 could contain a colon (`:`), but that has been deprecated and will not
659659
be supported in later versions * Cannot start with `-`, `_`, or `+` * Cannot
660-
be `.` or `..` * Cannot be longer than 255 bytes (note thtat it is bytes,
660+
be `.` or `..` * Cannot be longer than 255 bytes (note that it is bytes,
661661
so multi-byte characters will reach the limit faster) * Names starting with
662662
`.` are deprecated, except for hidden indices and internal indices managed
663663
by plugins
@@ -5295,7 +5295,7 @@ def rollover(
52955295
to signal that it needs to be rolled over at the next write. Only allowed
52965296
on data streams.
52975297
:param mappings: Mapping for fields in the index. If specified, this mapping
5298-
can include field names, field data types, and mapping paramaters.
5298+
can include field names, field data types, and mapping parameters.
52995299
:param master_timeout: Period to wait for a connection to the master node. If
53005300
no response is received before the timeout expires, the request fails and
53015301
returns an error.

elasticsearch/_sync/client/inference.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1536,7 +1536,7 @@ def put_elasticsearch(
15361536
<p>Create an inference endpoint to perform an inference task with the <code>elasticsearch</code> service.</p>
15371537
<blockquote>
15381538
<p>info
1539-
Your Elasticsearch deployment contains preconfigured ELSER and E5 inference endpoints, you only need to create the enpoints using the API if you want to customize the settings.</p>
1539+
Your Elasticsearch deployment contains preconfigured ELSER and E5 inference endpoints, you only need to create the endpoints using the API if you want to customize the settings.</p>
15401540
</blockquote>
15411541
<p>If you use the ELSER or the E5 model through the <code>elasticsearch</code> service, the API request will automatically download and deploy the model if it isn't downloaded yet.</p>
15421542
<blockquote>
@@ -1639,7 +1639,7 @@ def put_elser(
16391639
You can also deploy ELSER by using the Elasticsearch inference integration.</p>
16401640
<blockquote>
16411641
<p>info
1642-
Your Elasticsearch deployment contains a preconfigured ELSER inference endpoint, you only need to create the enpoint using the API if you want to customize the settings.</p>
1642+
Your Elasticsearch deployment contains a preconfigured ELSER inference endpoint, you only need to create the endpoint using the API if you want to customize the settings.</p>
16431643
</blockquote>
16441644
<p>The API request will automatically download and deploy the ELSER model if it isn't already downloaded.</p>
16451645
<blockquote>

elasticsearch/_sync/client/ml.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def close_job(
109109
or by specifying `*` as the job identifier.
110110
:param allow_no_match: Refer to the description for the `allow_no_match` query
111111
parameter.
112-
:param force: Refer to the descriptiion for the `force` query parameter.
112+
:param force: Refer to the description for the `force` query parameter.
113113
:param timeout: Refer to the description for the `timeout` query parameter.
114114
"""
115115
if job_id in SKIP_IN_PATH:
@@ -1183,7 +1183,7 @@ def forecast(
11831183
<p>Predict future behavior of a time series.</p>
11841184
<p>Forecasts are not supported for jobs that perform population analysis; an
11851185
error occurs if you try to create a forecast for a job that has an
1186-
<code>over_field_name</code> in its configuration. Forcasts predict future behavior
1186+
<code>over_field_name</code> in its configuration. Forecasts predict future behavior
11871187
based on historical data.</p>
11881188
11891189
@@ -1288,7 +1288,7 @@ def get_buckets(
12881288
:param from_: Skips the specified number of buckets.
12891289
:param page:
12901290
:param size: Specifies the maximum number of buckets to obtain.
1291-
:param sort: Refer to the desription for the `sort` query parameter.
1291+
:param sort: Refer to the description for the `sort` query parameter.
12921292
:param start: Refer to the description for the `start` query parameter.
12931293
"""
12941294
if job_id in SKIP_IN_PATH:

0 commit comments

Comments
 (0)