Update APIs for 8.8.1
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@elastic/elasticsearch",
|
||||
"version": "8.8.0",
|
||||
"versionCanary": "8.8.0-canary.2",
|
||||
"version": "8.8.1",
|
||||
"versionCanary": "8.8.1-canary.1",
|
||||
"description": "The official Elasticsearch client for Node.js",
|
||||
"main": "index.js",
|
||||
"types": "index.d.ts",
|
||||
|
||||
@ -42,7 +42,7 @@ export default async function SearchApi<TDocument = unknown, TAggregations = Rec
|
||||
export default async function SearchApi<TDocument = unknown, TAggregations = Record<T.AggregateName, T.AggregationsAggregate>> (this: That, params?: T.SearchRequest | TB.SearchRequest, options?: TransportRequestOptions): Promise<T.SearchResponse<TDocument, TAggregations>>
|
||||
export default async function SearchApi<TDocument = unknown, TAggregations = Record<T.AggregateName, T.AggregationsAggregate>> (this: That, params?: T.SearchRequest | TB.SearchRequest, options?: TransportRequestOptions): Promise<any> {
|
||||
const acceptedPath: string[] = ['index']
|
||||
const acceptedBody: string[] = ['aggregations', 'aggs', 'collapse', 'explain', 'ext', 'from', 'highlight', 'track_total_hits', 'indices_boost', 'docvalue_fields', 'knn', 'min_score', 'post_filter', 'profile', 'query', 'rescore', 'script_fields', 'search_after', 'size', 'slice', 'sort', '_source', 'fields', 'suggest', 'terminate_after', 'timeout', 'track_scores', 'version', 'seq_no_primary_term', 'stored_fields', 'pit', 'runtime_mappings', 'stats']
|
||||
const acceptedBody: string[] = ['aggregations', 'aggs', 'collapse', 'explain', 'ext', 'from', 'highlight', 'track_total_hits', 'indices_boost', 'docvalue_fields', 'knn', 'rank', 'min_score', 'post_filter', 'profile', 'query', 'rescore', 'script_fields', 'search_after', 'size', 'slice', 'sort', '_source', 'fields', 'suggest', 'terminate_after', 'timeout', 'track_scores', 'version', 'seq_no_primary_term', 'stored_fields', 'pit', 'runtime_mappings', 'stats']
|
||||
const querystring: Record<string, any> = {}
|
||||
// @ts-expect-error
|
||||
const userBody: any = params?.body
|
||||
|
||||
@ -1140,6 +1140,7 @@ export interface SearchRequest extends RequestBase {
|
||||
indices_boost?: Record<IndexName, double>[]
|
||||
docvalue_fields?: (QueryDslFieldAndFormat | Field)[]
|
||||
knn?: KnnQuery | KnnQuery[]
|
||||
rank?: RankContainer
|
||||
min_score?: double
|
||||
post_filter?: QueryDslQueryContainer
|
||||
profile?: boolean
|
||||
@ -2368,6 +2369,13 @@ export interface QueryVectorBuilder {
|
||||
text_embedding?: TextEmbedding
|
||||
}
|
||||
|
||||
export interface RankBase {
|
||||
}
|
||||
|
||||
export interface RankContainer {
|
||||
rrf?: RrfRank
|
||||
}
|
||||
|
||||
export interface RecoveryStats {
|
||||
current_as_source: long
|
||||
current_as_target: long
|
||||
@ -2412,6 +2420,11 @@ export interface Retries {
|
||||
|
||||
export type Routing = string
|
||||
|
||||
export interface RrfRank {
|
||||
rank_constant?: long
|
||||
window_size?: long
|
||||
}
|
||||
|
||||
export interface ScoreSort {
|
||||
order?: SortOrder
|
||||
}
|
||||
|
||||
@ -1194,6 +1194,7 @@ export interface SearchRequest extends RequestBase {
|
||||
indices_boost?: Record<IndexName, double>[]
|
||||
docvalue_fields?: (QueryDslFieldAndFormat | Field)[]
|
||||
knn?: KnnQuery | KnnQuery[]
|
||||
rank?: RankContainer
|
||||
min_score?: double
|
||||
post_filter?: QueryDslQueryContainer
|
||||
profile?: boolean
|
||||
@ -2441,6 +2442,13 @@ export interface QueryVectorBuilder {
|
||||
text_embedding?: TextEmbedding
|
||||
}
|
||||
|
||||
export interface RankBase {
|
||||
}
|
||||
|
||||
export interface RankContainer {
|
||||
rrf?: RrfRank
|
||||
}
|
||||
|
||||
export interface RecoveryStats {
|
||||
current_as_source: long
|
||||
current_as_target: long
|
||||
@ -2485,6 +2493,11 @@ export interface Retries {
|
||||
|
||||
export type Routing = string
|
||||
|
||||
export interface RrfRank {
|
||||
rank_constant?: long
|
||||
window_size?: long
|
||||
}
|
||||
|
||||
export interface ScoreSort {
|
||||
order?: SortOrder
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user