Skip to content

Commit f8784ec

Browse files
committed
update variant rule
1 parent dda5822 commit f8784ec

File tree

33 files changed

+64
-50
lines changed

33 files changed

+64
-50
lines changed

specification/_global/search/SearchRequest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ export interface Request extends RequestBase {
463463
* @availability serverless
464464
* @ext_doc_id knn-approximate
465465
*/
466-
// eslint-disable-next-line es-spec-validator/prefer-tagged-variants -- TODO: use tagged variant
466+
467467
knn?: KnnSearch | KnnSearch[]
468468
/**
469469
* The Reciprocal Rank Fusion (RRF) to use.
@@ -495,7 +495,7 @@ export interface Request extends RequestBase {
495495
/**
496496
* Can be used to improve precision by reordering just the top (for example 100 - 500) documents returned by the `query` and `post_filter` phases.
497497
*/
498-
// eslint-disable-next-line es-spec-validator/prefer-tagged-variants -- TODO: use tagged variant
498+
499499
rescore?: Rescore | Rescore[]
500500
/**
501501
* A retriever is a specification to describe top documents returned from a search.

specification/_global/search/_types/FieldCollapse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export class FieldCollapse {
3232
/**
3333
* The number of inner hits and their sort order
3434
*/
35-
// eslint-disable-next-line es-spec-validator/prefer-tagged-variants -- TODO: use tagged variant
35+
3636
inner_hits?: InnerHits | InnerHits[]
3737
/**
3838
* The number of concurrent requests allowed to retrieve the inner_hits per group

specification/_global/search/_types/SearchRequestBody.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export class SearchRequestBody {
9898
* @availability serverless
9999
* @ext_doc_id knn-approximate
100100
*/
101-
// eslint-disable-next-line es-spec-validator/prefer-tagged-variants -- TODO: use tagged variant
101+
102102
knn?: KnnSearch | KnnSearch[]
103103
/**
104104
* The Reciprocal Rank Fusion (RRF) to use.
@@ -130,7 +130,7 @@ export class SearchRequestBody {
130130
/**
131131
* Can be used to improve precision by reordering just the top (for example 100 - 500) documents returned by the `query` and `post_filter` phases.
132132
*/
133-
// eslint-disable-next-line es-spec-validator/prefer-tagged-variants -- TODO: use tagged variant
133+
134134
rescore?: Rescore | Rescore[]
135135
/**
136136
* A retriever is a specification to describe top documents returned from a search.

specification/_global/search/_types/suggester.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,23 +50,22 @@ export class SuggestBase {
5050
* @variant name=completion
5151
*/
5252
export class CompletionSuggest<TDocument> extends SuggestBase {
53-
options: // eslint-disable-next-line es-spec-validator/prefer-tagged-variants -- TODO: use tagged variant
54-
CompletionSuggestOption<TDocument> | CompletionSuggestOption<TDocument>[]
53+
options:
54+
| CompletionSuggestOption<TDocument>
55+
| CompletionSuggestOption<TDocument>[]
5556
}
5657

5758
/**
5859
* @variant name=phrase
5960
*/
6061
export class PhraseSuggest extends SuggestBase {
61-
// eslint-disable-next-line es-spec-validator/prefer-tagged-variants -- TODO: use tagged variant
6262
options: PhraseSuggestOption | PhraseSuggestOption[]
6363
}
6464

6565
/**
6666
* @variant name=term
6767
*/
6868
export class TermSuggest extends SuggestBase {
69-
// eslint-disable-next-line es-spec-validator/prefer-tagged-variants -- TODO: use tagged variant
7069
options: TermSuggestOption | TermSuggestOption[]
7170
}
7271

specification/_types/Knn.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export interface KnnSearch {
5151
/** Boost value to apply to kNN scores */
5252
boost?: float
5353
/** Filters for the kNN search query */
54-
// eslint-disable-next-line es-spec-validator/prefer-tagged-variants -- TODO: use tagged variant
54+
5555
filter?: QueryContainer | QueryContainer[]
5656
/** The minimum similarity for a vector to be considered a match */
5757
similarity?: float
@@ -87,7 +87,7 @@ export interface KnnQuery extends QueryBase {
8787
/** The final number of nearest neighbors to return as top hits */
8888
k?: integer
8989
/** Filters for the kNN search query */
90-
// eslint-disable-next-line es-spec-validator/prefer-tagged-variants -- TODO: use tagged variant
90+
9191
filter?: QueryContainer | QueryContainer[]
9292
/** The minimum similarity for a vector to be considered a match */
9393
similarity?: float

specification/_types/Retriever.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export class RetrieverContainer {
5353

5454
export class RetrieverBase {
5555
/** Query to filter the documents that can match. */
56-
// eslint-disable-next-line es-spec-validator/prefer-tagged-variants -- TODO: use tagged variant
56+
5757
filter?: QueryContainer | QueryContainer[]
5858
/** Minimum _score for matching documents. Documents with a lower _score are not included in the top documents. */
5959
min_score?: float
@@ -64,7 +64,7 @@ export class RetrieverBase {
6464
export class RescorerRetriever extends RetrieverBase {
6565
/** Inner retriever. */
6666
retriever: RetrieverContainer
67-
// eslint-disable-next-line es-spec-validator/prefer-tagged-variants -- TODO: use tagged variant
67+
6868
rescore: Rescore | Rescore[]
6969
}
7070

specification/_types/aggregations/metric.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ export class TopMetricsAggregation extends MetricAggregationBase {
439439
/**
440440
* The fields of the top document to return.
441441
*/
442-
// eslint-disable-next-line es-spec-validator/prefer-tagged-variants -- TODO: use tagged variant
442+
443443
metrics?: TopMetricsValue | TopMetricsValue[]
444444
/**
445445
* The number of top documents from which to return metrics.

specification/_types/analysis/phonetic-plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export enum PhoneticRuleType {
6464
export class PhoneticTokenFilter extends TokenFilterBase {
6565
type: 'phonetic'
6666
encoder: PhoneticEncoder
67-
// eslint-disable-next-line es-spec-validator/prefer-tagged-variants -- TODO: use tagged variant
67+
6868
languageset?: PhoneticLanguage | PhoneticLanguage[]
6969
max_code_len?: integer
7070
name_type?: PhoneticNameType

specification/_types/query_dsl/compound.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export class BoolQuery extends QueryBase {
3434
* The clause (query) must appear in matching documents.
3535
* However, unlike `must`, the score of the query will be ignored.
3636
*/
37-
// eslint-disable-next-line es-spec-validator/prefer-tagged-variants -- TODO: use tagged variant
37+
3838
filter?: QueryContainer | QueryContainer[]
3939
/**
4040
* Specifies the number or percentage of `should` clauses returned documents must match.
@@ -44,18 +44,18 @@ export class BoolQuery extends QueryBase {
4444
/**
4545
* The clause (query) must appear in matching documents and will contribute to the score.
4646
*/
47-
// eslint-disable-next-line es-spec-validator/prefer-tagged-variants -- TODO: use tagged variant
47+
4848
must?: QueryContainer | QueryContainer[]
4949
/**
5050
* The clause (query) must not appear in the matching documents.
5151
* Because scoring is ignored, a score of `0` is returned for all documents.
5252
*/
53-
// eslint-disable-next-line es-spec-validator/prefer-tagged-variants -- TODO: use tagged variant
53+
5454
must_not?: QueryContainer | QueryContainer[]
5555
/**
5656
* The clause (query) should appear in the matching document.
5757
*/
58-
// eslint-disable-next-line es-spec-validator/prefer-tagged-variants -- TODO: use tagged variant
58+
5959
should?: QueryContainer | QueryContainer[]
6060
}
6161

specification/_types/query_dsl/specialized.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export class MoreLikeThisQuery extends QueryBase {
119119
/**
120120
* Specifies free form text and/or a single or multiple documents for which you want to find similar documents.
121121
*/
122-
// eslint-disable-next-line es-spec-validator/prefer-tagged-variants -- TODO: use tagged variant
122+
123123
like: Like | Like[]
124124
/**
125125
* The maximum document frequency above which the terms are ignored from the input document.
@@ -166,7 +166,7 @@ export class MoreLikeThisQuery extends QueryBase {
166166
/**
167167
* Used in combination with `like` to exclude documents that match a set of terms.
168168
*/
169-
// eslint-disable-next-line es-spec-validator/prefer-tagged-variants -- TODO: use tagged variant
169+
170170
unlike?: Like | Like[]
171171
version?: VersionNumber
172172
/** @server_default 'internal' */

0 commit comments

Comments
 (0)