Skip to content

Commit 062a0d0

Browse files
Auto-generated API code
1 parent 6a2dbcd commit 062a0d0

File tree

5 files changed

+164
-96
lines changed

5 files changed

+164
-96
lines changed

elasticsearch/_async/client/indices.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3861,8 +3861,34 @@ async def put_settings(
38613861
Changes dynamic index settings in real time.
38623862
For data streams, index setting changes are applied to all backing indices by default.</p>
38633863
<p>To revert a setting to the default value, use a null value.
3864-
The list of per-index settings that can be updated dynamically on live indices can be found in index module documentation.
3864+
The list of per-index settings that can be updated dynamically on live indices can be found in index settings documentation.
38653865
To preserve existing settings from being updated, set the <code>preserve_existing</code> parameter to <code>true</code>.</p>
3866+
<p>There are multiple valid ways to represent index settings in the request body. You can specify only the setting, for example:</p>
3867+
<pre><code>{
3868+
&quot;number_of_replicas&quot;: 1
3869+
}
3870+
</code></pre>
3871+
<p>Or you can use an <code>index</code> setting object:</p>
3872+
<pre><code>{
3873+
&quot;index&quot;: {
3874+
&quot;number_of_replicas&quot;: 1
3875+
}
3876+
}
3877+
</code></pre>
3878+
<p>Or you can use dot annotation:</p>
3879+
<pre><code>{
3880+
&quot;index.number_of_replicas&quot;: 1
3881+
}
3882+
</code></pre>
3883+
<p>Or you can embed any of the aforementioned options in a <code>settings</code> object. For example:</p>
3884+
<pre><code>{
3885+
&quot;settings&quot;: {
3886+
&quot;index&quot;: {
3887+
&quot;number_of_replicas&quot;: 1
3888+
}
3889+
}
3890+
}
3891+
</code></pre>
38663892
<p>NOTE: You can only define new analyzers on closed indices.
38673893
To add an analyzer, you must close the index, define the analyzer, and reopen the index.
38683894
You cannot close the write index of a data stream.

elasticsearch/_sync/client/indices.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3861,8 +3861,34 @@ def put_settings(
38613861
Changes dynamic index settings in real time.
38623862
For data streams, index setting changes are applied to all backing indices by default.</p>
38633863
<p>To revert a setting to the default value, use a null value.
3864-
The list of per-index settings that can be updated dynamically on live indices can be found in index module documentation.
3864+
The list of per-index settings that can be updated dynamically on live indices can be found in index settings documentation.
38653865
To preserve existing settings from being updated, set the <code>preserve_existing</code> parameter to <code>true</code>.</p>
3866+
<p>There are multiple valid ways to represent index settings in the request body. You can specify only the setting, for example:</p>
3867+
<pre><code>{
3868+
&quot;number_of_replicas&quot;: 1
3869+
}
3870+
</code></pre>
3871+
<p>Or you can use an <code>index</code> setting object:</p>
3872+
<pre><code>{
3873+
&quot;index&quot;: {
3874+
&quot;number_of_replicas&quot;: 1
3875+
}
3876+
}
3877+
</code></pre>
3878+
<p>Or you can use dot annotation:</p>
3879+
<pre><code>{
3880+
&quot;index.number_of_replicas&quot;: 1
3881+
}
3882+
</code></pre>
3883+
<p>Or you can embed any of the aforementioned options in a <code>settings</code> object. For example:</p>
3884+
<pre><code>{
3885+
&quot;settings&quot;: {
3886+
&quot;index&quot;: {
3887+
&quot;number_of_replicas&quot;: 1
3888+
}
3889+
}
3890+
}
3891+
</code></pre>
38663892
<p>NOTE: You can only define new analyzers on closed indices.
38673893
To add an analyzer, you must close the index, define the analyzer, and reopen the index.
38683894
You cannot close the write index of a data stream.

elasticsearch/dsl/field.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3689,11 +3689,6 @@ class SemanticText(Field):
36893689
by using the Update mapping API. Use the Create inference API to
36903690
create the endpoint. If not specified, the inference endpoint
36913691
defined by inference_id will be used at both index and query time.
3692-
:arg chunking_settings: Settings for chunking text into smaller
3693-
passages. If specified, these will override the chunking settings
3694-
sent in the inference endpoint associated with inference_id. If
3695-
chunking settings are updated, they will not be applied to
3696-
existing documents until they are reindexed.
36973692
"""
36983693

36993694
name = "semantic_text"
@@ -3704,9 +3699,6 @@ def __init__(
37043699
meta: Union[Mapping[str, str], "DefaultType"] = DEFAULT,
37053700
inference_id: Union[str, "DefaultType"] = DEFAULT,
37063701
search_inference_id: Union[str, "DefaultType"] = DEFAULT,
3707-
chunking_settings: Union[
3708-
"types.ChunkingSettings", Dict[str, Any], "DefaultType"
3709-
] = DEFAULT,
37103702
**kwargs: Any,
37113703
):
37123704
if meta is not DEFAULT:
@@ -3715,8 +3707,6 @@ def __init__(
37153707
kwargs["inference_id"] = inference_id
37163708
if search_inference_id is not DEFAULT:
37173709
kwargs["search_inference_id"] = search_inference_id
3718-
if chunking_settings is not DEFAULT:
3719-
kwargs["chunking_settings"] = chunking_settings
37203710
super().__init__(*args, **kwargs)
37213711

37223712

elasticsearch/dsl/query.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,7 +1084,7 @@ class Knn(Query):
10841084
:arg similarity: The minimum similarity for a vector to be considered
10851085
a match
10861086
:arg rescore_vector: Apply oversampling and rescoring to quantized
1087-
vectors
1087+
vectors *
10881088
:arg boost: Floating point number used to decrease or increase the
10891089
relevance scores of the query. Boost values are relative to the
10901090
default value of 1.0. A boost value between 0 and 1.0 decreases
@@ -2034,8 +2034,9 @@ def __init__(
20342034
class Rule(Query):
20352035
"""
20362036
:arg organic: (required)
2037-
:arg ruleset_ids: (required)
20382037
:arg match_criteria: (required)
2038+
:arg ruleset_ids:
2039+
:arg ruleset_id:
20392040
:arg boost: Floating point number used to decrease or increase the
20402041
relevance scores of the query. Boost values are relative to the
20412042
default value of 1.0. A boost value between 0 and 1.0 decreases
@@ -2053,16 +2054,18 @@ def __init__(
20532054
self,
20542055
*,
20552056
organic: Union[Query, "DefaultType"] = DEFAULT,
2056-
ruleset_ids: Union[Sequence[str], "DefaultType"] = DEFAULT,
20572057
match_criteria: Any = DEFAULT,
2058+
ruleset_ids: Union[str, Sequence[str], "DefaultType"] = DEFAULT,
2059+
ruleset_id: Union[str, "DefaultType"] = DEFAULT,
20582060
boost: Union[float, "DefaultType"] = DEFAULT,
20592061
_name: Union[str, "DefaultType"] = DEFAULT,
20602062
**kwargs: Any,
20612063
):
20622064
super().__init__(
20632065
organic=organic,
2064-
ruleset_ids=ruleset_ids,
20652066
match_criteria=match_criteria,
2067+
ruleset_ids=ruleset_ids,
2068+
ruleset_id=ruleset_id,
20662069
boost=boost,
20672070
_name=_name,
20682071
**kwargs,

0 commit comments

Comments
 (0)