SearchPointGroups constructor

SearchPointGroups({
  1. String? collectionName,
  2. Iterable<double>? vector,
  3. Filter? filter,
  4. int? limit,
  5. WithPayloadSelector? withPayload,
  6. SearchParams? params,
  7. double? scoreThreshold,
  8. String? vectorName,
  9. WithVectorsSelector? withVectors,
  10. String? groupBy,
  11. int? groupSize,
  12. ReadConsistency? readConsistency,
  13. WithLookup? withLookup,
  14. Int64? timeout,
  15. ShardKeySelector? shardKeySelector,
  16. SparseIndices? sparseIndices,
})

Implementation

factory SearchPointGroups({
  $core.String? collectionName,
  $core.Iterable<$core.double>? vector,
  Filter? filter,
  $core.int? limit,
  WithPayloadSelector? withPayload,
  SearchParams? params,
  $core.double? scoreThreshold,
  $core.String? vectorName,
  WithVectorsSelector? withVectors,
  $core.String? groupBy,
  $core.int? groupSize,
  ReadConsistency? readConsistency,
  WithLookup? withLookup,
  $fixnum.Int64? timeout,
  ShardKeySelector? shardKeySelector,
  SparseIndices? sparseIndices,
}) {
  final $result = create();
  if (collectionName != null) {
    $result.collectionName = collectionName;
  }
  if (vector != null) {
    $result.vector.addAll(vector);
  }
  if (filter != null) {
    $result.filter = filter;
  }
  if (limit != null) {
    $result.limit = limit;
  }
  if (withPayload != null) {
    $result.withPayload = withPayload;
  }
  if (params != null) {
    $result.params = params;
  }
  if (scoreThreshold != null) {
    $result.scoreThreshold = scoreThreshold;
  }
  if (vectorName != null) {
    $result.vectorName = vectorName;
  }
  if (withVectors != null) {
    $result.withVectors = withVectors;
  }
  if (groupBy != null) {
    $result.groupBy = groupBy;
  }
  if (groupSize != null) {
    $result.groupSize = groupSize;
  }
  if (readConsistency != null) {
    $result.readConsistency = readConsistency;
  }
  if (withLookup != null) {
    $result.withLookup = withLookup;
  }
  if (timeout != null) {
    $result.timeout = timeout;
  }
  if (shardKeySelector != null) {
    $result.shardKeySelector = shardKeySelector;
  }
  if (sparseIndices != null) {
    $result.sparseIndices = sparseIndices;
  }
  return $result;
}