DefaultQueryParamsPassages
public struct DefaultQueryParamsPassages : Codable, Equatable
Default settings configuration for passage search options.
-
When
true, a passage search is performed by default.Declaration
Swift
public var enabled: Bool? -
The number of passages to return.
Declaration
Swift
public var count: Int? -
An array of field names to perform the passage search on.
Declaration
Swift
public var fields: [String]? -
The approximate number of characters that each returned passage will contain.
Declaration
Swift
public var characters: Int? -
When
truethe number of passages that can be returned from a single document is restricted to the max_per_document value.Declaration
Swift
public var perDocument: Bool? -
The default maximum number of passages that can be taken from a single document as the result of a passage query.
Declaration
Swift
public var maxPerDocument: Int? -
Initialize a
DefaultQueryParamsPassageswith member variables.Declaration
Swift
public init( enabled: Bool? = nil, count: Int? = nil, fields: [String]? = nil, characters: Int? = nil, perDocument: Bool? = nil, maxPerDocument: Int? = nil )Parameters
enabledWhen
true, a passage search is performed by default.countThe number of passages to return.
fieldsAn array of field names to perform the passage search on.
charactersThe approximate number of characters that each returned passage will contain.
perDocumentWhen
truethe number of passages that can be returned from a single document is restricted to the max_per_document value.maxPerDocumentThe default maximum number of passages that can be taken from a single document as the result of a passage query.
Return Value
An initialized
DefaultQueryParamsPassages.
View on GitHub
DefaultQueryParamsPassages Structure Reference