@@ -126,8 +126,12 @@ public struct MultiSearchParameters: Codable {
126126 public var conversationModelId : String ?
127127 /** The Id of a previous conversation to continue, this tells Typesense to include prior context when communicating with the LLM. */
128128 public var conversationId : String ?
129+ /** Whether to rerank hybrid matches. */
130+ public var rerankHybridMatches : Bool ?
131+ /** API key for the request. */
132+ public var xTypesenseApiKey : String ?
129133
130- public init ( q: String ? = nil , queryBy: String ? = nil , queryByWeights: String ? = nil , textMatchType: String ? = nil , _prefix: String ? = nil , _infix: String ? = nil , maxExtraPrefix: Int ? = nil , maxExtraSuffix: Int ? = nil , filterBy: String ? = nil , sortBy: String ? = nil , facetBy: String ? = nil , maxFacetValues: Int ? = nil , facetQuery: String ? = nil , numTypos: String ? = nil , page: Int ? = nil , perPage: Int ? = nil , limit: Int ? = nil , offset: Int ? = nil , groupBy: String ? = nil , groupLimit: Int ? = nil , groupMissingValues: Bool ? = nil , includeFields: String ? = nil , excludeFields: String ? = nil , highlightFullFields: String ? = nil , highlightAffixNumTokens: Int ? = nil , highlightStartTag: String ? = nil , highlightEndTag: String ? = nil , snippetThreshold: Int ? = nil , dropTokensThreshold: Int ? = nil , typoTokensThreshold: Int ? = nil , pinnedHits: String ? = nil , hiddenHits: String ? = nil , overrideTags: String ? = nil , highlightFields: String ? = nil , preSegmentedQuery: Bool ? = nil , preset: String ? = nil , enableOverrides: Bool ? = nil , prioritizeExactMatch: Bool ? = nil , prioritizeTokenPosition: Bool ? = nil , prioritizeNumMatchingFields: Bool ? = nil , enableTyposForNumericalTokens: Bool ? = nil , exhaustiveSearch: Bool ? = nil , searchCutoffMs: Int ? = nil , useCache: Bool ? = nil , cacheTtl: Int ? = nil , minLen1typo: Int ? = nil , minLen2typo: Int ? = nil , vectorQuery: String ? = nil , remoteEmbeddingTimeoutMs: Int ? = nil , remoteEmbeddingNumTries: Int ? = nil , facetStrategy: String ? = nil , stopwords: String ? = nil , facetReturnParent: String ? = nil , voiceQuery: String ? = nil , conversation: Bool ? = nil , conversationModelId: String ? = nil , conversationId: String ? = nil ) {
134+ public init ( q: String ? = nil , queryBy: String ? = nil , queryByWeights: String ? = nil , textMatchType: String ? = nil , _prefix: String ? = nil , _infix: String ? = nil , maxExtraPrefix: Int ? = nil , maxExtraSuffix: Int ? = nil , filterBy: String ? = nil , sortBy: String ? = nil , facetBy: String ? = nil , maxFacetValues: Int ? = nil , facetQuery: String ? = nil , numTypos: String ? = nil , page: Int ? = nil , perPage: Int ? = nil , limit: Int ? = nil , offset: Int ? = nil , groupBy: String ? = nil , groupLimit: Int ? = nil , groupMissingValues: Bool ? = nil , includeFields: String ? = nil , excludeFields: String ? = nil , highlightFullFields: String ? = nil , highlightAffixNumTokens: Int ? = nil , highlightStartTag: String ? = nil , highlightEndTag: String ? = nil , snippetThreshold: Int ? = nil , dropTokensThreshold: Int ? = nil , typoTokensThreshold: Int ? = nil , pinnedHits: String ? = nil , hiddenHits: String ? = nil , overrideTags: String ? = nil , highlightFields: String ? = nil , preSegmentedQuery: Bool ? = nil , preset: String ? = nil , enableOverrides: Bool ? = nil , prioritizeExactMatch: Bool ? = nil , prioritizeTokenPosition: Bool ? = nil , prioritizeNumMatchingFields: Bool ? = nil , enableTyposForNumericalTokens: Bool ? = nil , exhaustiveSearch: Bool ? = nil , searchCutoffMs: Int ? = nil , useCache: Bool ? = nil , cacheTtl: Int ? = nil , minLen1typo: Int ? = nil , minLen2typo: Int ? = nil , vectorQuery: String ? = nil , remoteEmbeddingTimeoutMs: Int ? = nil , remoteEmbeddingNumTries: Int ? = nil , facetStrategy: String ? = nil , stopwords: String ? = nil , facetReturnParent: String ? = nil , voiceQuery: String ? = nil , conversation: Bool ? = nil , conversationModelId: String ? = nil , conversationId: String ? = nil , rerankHybridMatches: Bool ? = nil , xTypesenseApiKey: String ? = nil ) {
131135 self . q = q
132136 self . queryBy = queryBy
133137 self . queryByWeights = queryByWeights
@@ -185,6 +189,8 @@ public struct MultiSearchParameters: Codable {
185189 self . conversation = conversation
186190 self . conversationModelId = conversationModelId
187191 self . conversationId = conversationId
192+ self . rerankHybridMatches = rerankHybridMatches
193+ self . xTypesenseApiKey = xTypesenseApiKey
188194 }
189195
190196 public enum CodingKeys : String , CodingKey {
@@ -245,6 +251,8 @@ public struct MultiSearchParameters: Codable {
245251 case conversation
246252 case conversationModelId = " conversation_model_id "
247253 case conversationId = " conversation_id "
254+ case rerankHybridMatches = " rerank_hybrid_matches "
255+ case xTypesenseApiKey = " x-typesense-api-key "
248256 }
249257
250258}
0 commit comments