SwiftenumHybridSearch
enum HybridSearch.SearchType
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- protocolSwift.Equatable
- protocolSwift.Hashable
Members 3
Header
enum SearchType { struct QueryTerm { let term: Swift.String let alternatives: [Swift.String] init(term: Swift.String, alternatives: [Swift.String]) } struct Keyword { let queryFragments: [HybridSearch.SearchType.QueryTerm] let queryPhrases: [Swift.String] let negatedPhrases: [Swift.String] let doPrefixSearch: Swift.Bool let doSearchVariants: Swift.Bool let matchMode: HybridSearch.KeywordMatchMode let limit: Swift.Int? let ordering: HybridSearch.FTSOrdering init(bm25Threshold: Swift.Double?, matchMode: HybridSearch.KeywordMatchMode) init(queryFragments: [HybridSearch.SearchType.QueryTerm], queryPhrases: [Swift.String], negatedPhrases: [Swift.String], doPrefixSearch: Swift.Bool, doSearchVariants: Swift.Bool, matchMode: HybridSearch.KeywordMatchMode, bm25Threshold: Swift.Double?, limit: Swift.Int?) init(queryFragments: [Swift.String], queryPhrases: [Swift.String], negatedPhrases: [Swift.String], doPrefixSearch: Swift.Bool, doSearchVariants: Swift.Bool, matchMode: HybridSearch.KeywordMatchMode, bm25Threshold: Swift.Double?, limit: Swift.Int?) init(queryFragments: [HybridSearch.SearchType.QueryTerm], queryPhrases: [Swift.String], negatedPhrases: [Swift.String], doPrefixSearch: Swift.Bool, doSearchVariants: Swift.Bool, matchMode: HybridSearch.KeywordMatchMode, limit: Swift.Int?, ordering: HybridSearch.FTSOrdering) init(queryFragments: [HybridSearch.SearchType.QueryTerm], queryPhrases: [Swift.String], negatedPhrases: [Swift.String], doPrefixSearch: Swift.Bool, doSearchVariants: Swift.Bool, matchMode: HybridSearch.KeywordMatchMode, limit: Swift.Int?) var description: Swift.String { get } var redactedDescription: Swift.String { get } } struct Semantic { enum ContextLength { case short case extended } let query: Swift.String let cosineDistanceThreshold: Swift.Double? let limit: Swift.Int? let checkSafety: Swift.Bool let contextLength: HybridSearch.SearchType.Semantic.ContextLength init(cosineDistanceThreshold: Swift.Double?) init(query: Swift.String, cosineDistanceThreshold: Swift.Double?, limit: Swift.Int?, checkSafety: Swift.Bool, contextLength: HybridSearch.SearchType.Semantic.ContextLength) init(query: Swift.String, cosineDistanceThreshold: Swift.Double?, limit: Swift.Int?, checkSafety: Swift.Bool) init(query: Swift.String, cosineDistanceThreshold: Swift.Double?, limit: Swift.Int?) var description: Swift.String { get } var redactedDescription: Swift.String { get } } struct Hybrid { let keyword: HybridSearch.SearchType.Keyword let semantic: HybridSearch.SearchType.Semantic init(keyword: HybridSearch.SearchType.Keyword, semantic: HybridSearch.SearchType.Semantic) } case hybrid(HybridSearch.SearchType.Hybrid) case keyword(HybridSearch.SearchType.Keyword) case semantic(HybridSearch.SearchType.Semantic) }