-
Notifications
You must be signed in to change notification settings - Fork 123
/
search.d.ts
116 lines (109 loc) · 3.61 KB
/
search.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*/
/*
* This file was generated from OpenSearch API Spec. Do not edit it
* manually. If you want to make changes, either update the spec or
* the API generator.
*/
import { ApiResponse } from '../../lib/Transport'
import * as Global from '../_types/_global'
import * as Core_Search from '../_types/_core.search'
import * as Common from '../_types/_common'
import * as Common_QueryDsl from '../_types/_common.query_dsl'
import * as Common_Aggregations from '../_types/_common.aggregations'
import * as Common_Mapping from '../_types/_common.mapping'
export interface Search_Request extends Global.Params {
_source?: Core_Search.SourceConfigParam;
_source_excludes?: Common.Fields;
_source_includes?: Common.Fields;
allow_no_indices?: boolean;
allow_partial_search_results?: boolean;
analyze_wildcard?: boolean;
analyzer?: string;
batched_reduce_size?: number;
body?: Search_RequestBody;
cancel_after_time_interval?: Common.Duration;
ccs_minimize_roundtrips?: boolean;
default_operator?: Common_QueryDsl.Operator;
df?: string;
docvalue_fields?: Common.Fields;
expand_wildcards?: Common.ExpandWildcards;
explain?: boolean;
from?: number;
ignore_throttled?: boolean;
ignore_unavailable?: boolean;
include_named_queries_score?: boolean;
index?: Common.Indices;
lenient?: boolean;
max_concurrent_shard_requests?: number;
phase_took?: boolean;
pre_filter_shard_size?: number;
preference?: string;
q?: string;
request_cache?: boolean;
rest_total_hits_as_int?: boolean;
routing?: Common.Routing;
scroll?: Common.Duration;
search_pipeline?: string;
search_type?: Common.SearchType;
seq_no_primary_term?: boolean;
size?: number;
sort?: string | string[];
stats?: string[];
stored_fields?: Common.Fields;
suggest_field?: Common.Field;
suggest_mode?: Common.SuggestMode;
suggest_size?: number;
suggest_text?: string;
terminate_after?: number;
timeout?: Common.Duration;
track_scores?: boolean;
track_total_hits?: Core_Search.TrackHits;
typed_keys?: boolean;
version?: boolean;
}
export interface Search_RequestBody {
_source?: Core_Search.SourceConfig;
aggregations?: Record<string, Common_Aggregations.AggregationContainer>;
collapse?: Core_Search.FieldCollapse;
docvalue_fields?: Common_QueryDsl.FieldAndFormat[];
explain?: boolean;
ext?: Record<string, Record<string, any>>;
fields?: Common_QueryDsl.FieldAndFormat[];
from?: number;
highlight?: Core_Search.Highlight;
indices_boost?: Record<string, number>[];
knn?: Common.KnnQuery | Common.KnnQuery[];
min_score?: number;
pit?: Core_Search.PointInTimeReference;
post_filter?: Common_QueryDsl.QueryContainer;
profile?: boolean;
query?: Common_QueryDsl.QueryContainer;
rank?: Common.RankContainer;
rescore?: Core_Search.Rescore | Core_Search.Rescore[];
runtime_mappings?: Common_Mapping.RuntimeFields;
script_fields?: Record<string, Common.ScriptField>;
search_after?: Common.SortResults;
seq_no_primary_term?: boolean;
size?: number;
slice?: Common.SlicedScroll;
sort?: Common.Sort;
stats?: string[];
stored_fields?: Common.Fields;
suggest?: Core_Search.Suggester;
terminate_after?: number;
timeout?: string;
track_scores?: boolean;
track_total_hits?: Core_Search.TrackHits;
version?: boolean;
}
export interface Search_Response extends ApiResponse {
body: Search_ResponseBody;
}
export type Search_ResponseBody = Core_Search.ResponseBody