TrainingQuery
public struct TrainingQuery : Codable, Equatable
Object that contains training query details.
-
The query ID associated with the training query.
Declaration
Swift
public var queryID: String? -
The natural text query for the training query.
Declaration
Swift
public var naturalLanguageQuery: String -
The filter used on the collection before the natural_language_query is applied.
Declaration
Swift
public var filter: String? -
The date and time the query was created.
Declaration
Swift
public var created: Date? -
The date and time the query was updated.
Declaration
Swift
public var updated: Date? -
Array of training examples.
Declaration
Swift
public var examples: [TrainingExample] -
Initialize a
TrainingQuerywith member variables.Declaration
Swift
public init( naturalLanguageQuery: String, examples: [TrainingExample], filter: String? = nil )Parameters
naturalLanguageQueryThe natural text query for the training query.
examplesArray of training examples.
filterThe filter used on the collection before the natural_language_query is applied.
Return Value
An initialized
TrainingQuery.
View on GitHub
TrainingQuery Structure Reference