You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Configure UpdateForV10 tag with eslint-plugin-jsdoc
We sometimes want to make breaking changes but have to wait until the next
major version. To not forget about those, this commit introduces an
UpdateForV10 JSDoc tag that can be used in any commment. There are a few
benefits of using JSDoc instead of a simple TODO comment:
* With the allowlist of tags in our eslint config, we can't make typos
* We enforce a proper description to explain why the breaking change needs to
be made
Note that this tag has the same name as the Elasticsearch UpdateForV10 annotation, as
we'll migrate to Elasticsearch in the future.
Copy file name to clipboardExpand all lines: specification/_global/index/IndexRequest.ts
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -146,12 +146,14 @@ import { Duration } from '@_types/Time'
146
146
* "id": "elkbee"
147
147
* }
148
148
* }
149
-
*
149
+
* ```
150
+
*
150
151
* In this example, the operation will succeed since the supplied version of 2 is higher than the current document version of 1.
151
152
* If the document was already updated and its version was set to 2 or higher, the indexing command will fail and result in a conflict (409 HTTP status code).
152
153
*
153
154
* A nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used.
154
155
* Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order.
Copy file name to clipboardExpand all lines: specification/_global/update_by_query/UpdateByQueryResponse.ts
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,8 @@ export class Response {
32
32
* If this is non-empty then the request ended because of those failures.
33
33
* Update by query is implemented using batches.
34
34
* Any failure causes the entire process to end, but all failures in the current batch are collected into the array.
35
-
* You can use the `conflicts` option to prevent reindex from ending when version conflicts occur. */
35
+
* You can use the `conflicts` option to prevent reindex from ending when version conflicts occur.
36
+
*/
36
37
failures?: BulkIndexByScrollFailure[]
37
38
/** The number of documents that were ignored because the script used for the update by query returned a noop value for `ctx.op`. */
38
39
noops?: long
@@ -43,7 +44,8 @@ export class Response {
43
44
/**
44
45
* The number of retries attempted by update by query.
45
46
* `bulk` is the number of bulk actions retried.
46
-
* `search` is the number of search actions retried. */
47
+
* `search` is the number of search actions retried.
48
+
*/
47
49
retries?: Retries
48
50
task?: TaskId
49
51
/** If true, some requests timed out during the update by query. */
@@ -60,8 +62,10 @@ export class Response {
60
62
/** The number of milliseconds the request slept to conform to `requests_per_second`. */
61
63
throttled_millis?: DurationValue<UnitMillis>
62
64
throttled_until?: Duration
63
-
/** This field should always be equal to zero in an _update_by_query response.
64
-
* It only has meaning when using the task API, where it indicates the next time (in milliseconds since epoch) a throttled request will be run again in order to conform to `requests_per_second`. */
65
+
/**
66
+
* This field should always be equal to zero in an _update_by_query response.
67
+
* It only has meaning when using the task API, where it indicates the next time (in milliseconds since epoch) a throttled request will be run again in order to conform to `requests_per_second`.
Copy file name to clipboardExpand all lines: specification/_types/Retriever.ts
+10-4Lines changed: 10 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -124,14 +124,16 @@ export class KnnRetriever extends RetrieverBase {
124
124
k: integer
125
125
/** Number of nearest neighbor candidates to consider per shard. */
126
126
num_candidates: integer
127
-
/** The percentage of vectors to explore per shard while doing knn search with bbq_disk
127
+
/**
128
+
* The percentage of vectors to explore per shard while doing knn search with bbq_disk
128
129
* @availability stack since=9.2.0
129
130
* @availability serverless
130
131
*/
131
132
visit_percentage?: float
132
133
/** The minimum similarity required for a document to be considered a match. */
133
134
similarity?: float
134
-
/** Apply oversampling and rescoring to quantized vectors
135
+
/**
136
+
* Apply oversampling and rescoring to quantized vectors
135
137
* @availability stack since=8.18.0
136
138
* @availability serverless
137
139
*/
@@ -144,7 +146,10 @@ export class KnnRetriever extends RetrieverBase {
144
146
exportclassRRFRetrieverComponent{
145
147
/** The nested retriever configuration. */
146
148
retriever: RetrieverContainer
147
-
/** Weight multiplier for this retriever's contribution to the RRF score. Higher values increase influence. Defaults to 1.0 if not specified. Must be non-negative. @server_default 1.0 */
149
+
/**
150
+
* Weight multiplier for this retriever's contribution to the RRF score. Higher values increase influence. Defaults to 1.0 if not specified. Must be non-negative.
151
+
* @server_default 1.0
152
+
*/
148
153
weight?: float
149
154
}
150
155
@@ -176,7 +181,8 @@ export class TextSimilarityReranker extends RetrieverBase {
176
181
inference_text: string
177
182
/** The document field to be used for text similarity comparisons. This field should contain the text that will be evaluated against the inference_text. */
178
183
field: string
179
-
/** Whether to rescore on only the best matching chunks.
184
+
/**
185
+
* Whether to rescore on only the best matching chunks.
Copy file name to clipboardExpand all lines: specification/_types/TokenPruningConfig.ts
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -20,15 +20,18 @@
20
20
import{float,integer}from'@_types/Numeric'
21
21
22
22
exportclassTokenPruningConfig{
23
-
/** Tokens whose frequency is more than this threshold times the average frequency of all tokens in the specified field are considered outliers and pruned.
23
+
/**
24
+
* Tokens whose frequency is more than this threshold times the average frequency of all tokens in the specified field are considered outliers and pruned.
24
25
* @server_default 5
25
26
*/
26
27
tokens_freq_ratio_threshold?: integer
27
-
/** Tokens whose weight is less than this threshold are considered nonsignificant and pruned.
28
+
/**
29
+
* Tokens whose weight is less than this threshold are considered nonsignificant and pruned.
28
30
* @server_default 0.4
29
31
*/
30
32
tokens_weight_threshold?: float
31
-
/** Whether to only score pruned tokens, vs only scoring kept tokens.
33
+
/**
34
+
* Whether to only score pruned tokens, vs only scoring kept tokens.
0 commit comments