SearchApiParameters constructor
SearchApiParameters(})
Implementation
SearchApiParameters(this.query,
{this.documents,
this.file,
this.maxRerank = 200,
this.returnMetadata = false}) {
if (documents == null && file == null) {
throw ArgumentError(
'Either the documents argument or the file argument needs to be provided.');
}
if (documents != null && file != null) {
throw ArgumentError(
'You can only provide the documents or the file argument, but not both.');
}
}