@@ -62,8 +62,8 @@ public struct Documents {
6262 searchQueryParams. append ( URLQueryItem ( name: " query_by_weights " , value: queryByWeights) )
6363 }
6464
65- if let maxHits = searchParameters. maxHits {
66- searchQueryParams. append ( URLQueryItem ( name: " max_hits " , value: maxHits ) )
65+ if let textMatchType = searchParameters. textMatchType {
66+ searchQueryParams. append ( URLQueryItem ( name: " text_match_type " , value: textMatchType ) )
6767 }
6868
6969 if let _prefix = searchParameters. _prefix {
@@ -72,10 +72,21 @@ public struct Documents {
7272 fullString. append ( String ( item) )
7373 fullString. append ( " , " )
7474 }
75-
7675 searchQueryParams. append ( URLQueryItem ( name: " prefix " , value: String ( fullString. dropLast ( ) ) ) )
7776 }
7877
78+ if let _infix = searchParameters. _infix {
79+ searchQueryParams. append ( URLQueryItem ( name: " infix " , value: _infix) )
80+ }
81+
82+ if let maxExtraPrefix = searchParameters. maxExtraPrefix {
83+ searchQueryParams. append ( URLQueryItem ( name: " max_extra_prefix " , value: String ( maxExtraPrefix) ) )
84+ }
85+
86+ if let maxExtraSuffix = searchParameters. maxExtraSuffix {
87+ searchQueryParams. append ( URLQueryItem ( name: " max_extra_suffix " , value: String ( maxExtraSuffix) ) )
88+ }
89+
7990 if let filterBy = searchParameters. filterBy {
8091 searchQueryParams. append ( URLQueryItem ( name: " filter_by " , value: filterBy) )
8192 }
@@ -108,6 +119,14 @@ public struct Documents {
108119 searchQueryParams. append ( URLQueryItem ( name: " per_page " , value: String ( perPage) ) )
109120 }
110121
122+ if let limit = searchParameters. limit {
123+ searchQueryParams. append ( URLQueryItem ( name: " limit " , value: String ( limit) ) )
124+ }
125+
126+ if let offset = searchParameters. offset {
127+ searchQueryParams. append ( URLQueryItem ( name: " offset " , value: String ( offset) ) )
128+ }
129+
111130 if let groupBy = searchParameters. groupBy {
112131 searchQueryParams. append ( URLQueryItem ( name: " group_by " , value: groupBy) )
113132 }
@@ -140,6 +159,10 @@ public struct Documents {
140159 searchQueryParams. append ( URLQueryItem ( name: " highlight_end_tag " , value: highlightEndTag) )
141160 }
142161
162+ if let enableHighlightV1 = searchParameters. enableHighlightV1 {
163+ searchQueryParams. append ( URLQueryItem ( name: " enable_highlight_v1 " , value: String ( enableHighlightV1) ) )
164+ }
165+
143166 if let snippetThreshold = searchParameters. snippetThreshold {
144167 searchQueryParams. append ( URLQueryItem ( name: " snippet_threshold " , value: String ( snippetThreshold) ) )
145168 }
@@ -164,10 +187,18 @@ public struct Documents {
164187 searchQueryParams. append ( URLQueryItem ( name: " highlight_fields " , value: highlightFields) )
165188 }
166189
190+ if let splitJoinTokens = searchParameters. splitJoinTokens {
191+ searchQueryParams. append ( URLQueryItem ( name: " split_join_tokens " , value: splitJoinTokens) )
192+ }
193+
167194 if let preSegmentedQuery = searchParameters. preSegmentedQuery {
168195 searchQueryParams. append ( URLQueryItem ( name: " pre_segmented_query " , value: String ( preSegmentedQuery) ) )
169196 }
170197
198+ if let preset = searchParameters. preset {
199+ searchQueryParams. append ( URLQueryItem ( name: " preset " , value: preset) )
200+ }
201+
171202 if let enableOverrides = searchParameters. enableOverrides {
172203 searchQueryParams. append ( URLQueryItem ( name: " enable_overrides " , value: String ( enableOverrides) ) )
173204 }
@@ -176,6 +207,14 @@ public struct Documents {
176207 searchQueryParams. append ( URLQueryItem ( name: " prioritize_exact_match " , value: String ( prioritizeExactMatch) ) )
177208 }
178209
210+ if let maxCandidates = searchParameters. maxCandidates {
211+ searchQueryParams. append ( URLQueryItem ( name: " max_candidates " , value: String ( maxCandidates) ) )
212+ }
213+
214+ if let prioritizeTokenPosition = searchParameters. prioritizeTokenPosition {
215+ searchQueryParams. append ( URLQueryItem ( name: " prioritize_token_position " , value: String ( prioritizeTokenPosition) ) )
216+ }
217+
179218 if let exhaustiveSearch = searchParameters. exhaustiveSearch {
180219 searchQueryParams. append ( URLQueryItem ( name: " exhaustive_search " , value: String ( exhaustiveSearch) ) )
181220 }
@@ -200,6 +239,17 @@ public struct Documents {
200239 searchQueryParams. append ( URLQueryItem ( name: " min_len2type " , value: String ( minLen2typo) ) )
201240 }
202241
242+ if let vectorQuery = searchParameters. vectorQuery {
243+ searchQueryParams. append ( URLQueryItem ( name: " vector_query " , value: vectorQuery) )
244+ }
245+
246+ if let remoteEmbeddingTimeoutMS = searchParameters. remoteEmbeddingTimeoutMs {
247+ searchQueryParams. append ( URLQueryItem ( name: " remote_embedding_timeout_ms " , value: String ( remoteEmbeddingTimeoutMS) ) )
248+ }
249+
250+ if let remoteEmbeddingNumTries = searchParameters. remoteEmbeddingNumTries {
251+ searchQueryParams. append ( URLQueryItem ( name: " remote_embedding_num_tries " , value: String ( remoteEmbeddingNumTries) ) )
252+ }
203253
204254 let ( data, response) = try await apiCall. get ( endPoint: " \( RESOURCEPATH) /search " , queryParameters: searchQueryParams)
205255
0 commit comments