api

package module
v0.0.35 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2024 License: Apache-2.0 Imports: 4 Imported by: 4

README

HookDeck Go Library

The HookDeck Go library provides convenient access to the HookDeck API from Go.

fern shield go shield

Requirements

This module requires Go version >= 1.19.

Installation

Run the following command to use the HookDeck Go library in your Go module:

go get github.com/hookdeck/hookdeck-go-sdk

This module requires Go version >= 1.19.

Instantiation

import (
  hookdeck "github.com/hookdeck/hookdeck-go-sdk"
  hookdeckclient "github.com/hookdeck/hookdeck-go-sdk/client"
)

client := hookdeckclient.NewClient(
  hookdeckclient.ClientWithAuthToken("<YOUR_AUTH_TOKEN>"),
)

Usage

package main

import (
  "context"
  "fmt"

  hookdeck "github.com/hookdeck/hookdeck-go-sdk"
  hookdeckclient "github.com/hookdeck/hookdeck-go-sdk/client"
)

client := hookdeckclient.NewClient(
  hookdeckclient.ClientWithAuthToken("<YOUR_API_KEY>"),
)
attempts, err := client.Attempts().GetAttempts(
  context.TODO(),
  &hookdeck.GetAttemptsRequest{
    EventId: hookdeck.String("<EVENT_ID>"),
  },
)
if err != nil {
  return err
}
fmt.Printf("Got %d attempts\n", *attempts.Count)

Timeouts

Setting a timeout for each individual request is as simple as using the standard context library. Setting a one second timeout for an individual API call looks like the following:

ctx, cancel := context.WithTimeout(context.TODO(), time.Second)
defer cancel()
attempts, err := client.Attempts().GetAttempts(
  context.TODO(),
  &hookdeck.GetAttemptsRequest{
    EventId: hookdeck.String("<EVENT_ID>"),
  },
)
if err != nil {
  return err
}

Client Options

A variety of client options are included to adapt the behavior of the library, which includes configuring authorization tokens to be sent on every request, or providing your own instrumented *http.Client. Both of these options are shown below:

client := hookdeckclient.NewClient(
  hookdeckclient.ClientWithAuthToken("<YOUR_AUTH_TOKEN>"),
  hookdeckclient.ClientWithHTTPClient(
    &http.Client{
      Timeout: 5 * time.Second,
    },
  ),
)

Providing your own *http.Client is recommended. Otherwise, the http.DefaultClient will be used, and your client will wait indefinitely for a response (unless the per-request, context-based timeout is used).

Errors

Structured error types are returned from API calls that return non-success status codes. For example, you can check if the error was due to a bad request (i.e. status code 400) with the following:

attempts, err := client.Attempts().GetAttempts(
  context.TODO(),
  &hookdeck.GetAttemptsRequest{
    EventId: hookdeck.String("<EVENT_ID>"),
  },
)
if err != nil {
  if badRequestErr, ok := err.(*hookdeck.BadRequestError);
    // Do something with the bad request ...
  }
  return err
}

These errors are also compatible with the errors.Is and errors.As APIs, so you can access the error like so:

attempts, err := client.Attempts().GetAttempts(
  context.TODO(),
  &hookdeck.GetAttemptsRequest{
    EventId: hookdeck.String("<EVENT_ID>"),
  },
)
if err != nil {
  var badRequestErr *hookdeck.BadRequestError
  if errors.As(err, badRequestErr); ok {
    // Do something with the bad request ...
  }
  return err
}

If you'd like to wrap the errors with additional information and still retain the ability to access the type with errors.Is and errors.As, you can use the %w directive:

attempts, err := client.Attempts().GetAttempts(
  context.TODO(),
  &hookdeck.GetAttemptsRequest{
    EventId: hookdeck.String("<EVENT_ID>"),
  },
)
if err != nil {
  return fmt.Errorf("failed to get attempts: %w", err)
}

Beta status

This SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning the package version to a specific version in your go.mod file. This way, you can install the same version each time without breaking changes unless you are intentionally looking for the latest version.

Contributing

While we value open-source contributions to this SDK, this library is generated programmatically. Additions made directly to this library would have to be moved over to our generation code, otherwise they would be overwritten upon the next generated release. Feel free to open a PR as a proof of concept, but know that we will not be able to merge it as-is. We suggest opening an issue first to discuss with us!

On the other hand, contributions to the README are always very welcome!

Documentation

Overview

Float-point vectors with payload.

Index

Constants

This section is empty.

Variables

View Source
var Environments = struct {
	Default string
}{
	Default: "http://localhost:6333",
}

Environments defines all of the API environments. These values can be used with the WithBaseURL ClientOption to override the client's default environment, if any.

Functions

func Bool

func Bool(b bool) *bool

Bool returns a pointer to the given bool value.

func Byte

func Byte(b byte) *byte

Byte returns a pointer to the given byte value.

func Complex128

func Complex128(c complex128) *complex128

Complex128 returns a pointer to the given complex128 value.

func Complex64

func Complex64(c complex64) *complex64

Complex64 returns a pointer to the given complex64 value.

func Float32

func Float32(f float32) *float32

Float32 returns a pointer to the given float32 value.

func Float64

func Float64(f float64) *float64

Float64 returns a pointer to the given float64 value.

func Int

func Int(i int) *int

Int returns a pointer to the given int value.

func Int16

func Int16(i int16) *int16

Int16 returns a pointer to the given int16 value.

func Int32

func Int32(i int32) *int32

Int32 returns a pointer to the given int32 value.

func Int64

func Int64(i int64) *int64

Int64 returns a pointer to the given int64 value.

func Int8

func Int8(i int8) *int8

Int8 returns a pointer to the given int8 value.

func Null added in v0.0.28

func Null[T any]() *core.Optional[T]

Null initializes an optional field that will be sent as an explicit null value.

func Optional added in v0.0.28

func Optional[T any](value T) *core.Optional[T]

Optional initializes an optional field.

func OptionalOrNull added in v0.0.30

func OptionalOrNull[T any](value *T) *core.Optional[T]

OptionalOrNull initializes an optional field, setting the value to an explicit null if the value is nil.

func Rune

func Rune(r rune) *rune

Rune returns a pointer to the given rune value.

func String

func String(s string) *string

String returns a pointer to the given string value.

func Time

func Time(t time.Time) *time.Time

Time returns a pointer to the given time.Time value.

func Uint

func Uint(u uint) *uint

Uint returns a pointer to the given uint value.

func Uint16

func Uint16(u uint16) *uint16

Uint16 returns a pointer to the given uint16 value.

func Uint32

func Uint32(u uint32) *uint32

Uint32 returns a pointer to the given uint32 value.

func Uint64

func Uint64(u uint64) *uint64

Uint64 returns a pointer to the given uint64 value.

func Uint8

func Uint8(u uint8) *uint8

Uint8 returns a pointer to the given uint8 value.

func Uintptr

func Uintptr(u uintptr) *uintptr

Uintptr returns a pointer to the given uintptr value.

Types

type AbortTransferOperation added in v0.0.35

type AbortTransferOperation struct {
	AbortTransfer *MoveShard `json:"abort_transfer,omitempty"`
	// contains filtered or unexported fields
}

func (*AbortTransferOperation) String added in v0.0.35

func (a *AbortTransferOperation) String() string

func (*AbortTransferOperation) UnmarshalJSON added in v0.0.35

func (a *AbortTransferOperation) UnmarshalJSON(data []byte) error

type AliasDescription added in v0.0.35

type AliasDescription struct {
	AliasName      string `json:"alias_name"`
	CollectionName string `json:"collection_name"`
	// contains filtered or unexported fields
}

func (*AliasDescription) String added in v0.0.35

func (a *AliasDescription) String() string

func (*AliasDescription) UnmarshalJSON added in v0.0.35

func (a *AliasDescription) UnmarshalJSON(data []byte) error

type AliasOperations added in v0.0.35

type AliasOperations struct {
	CreateAliasOperation *CreateAliasOperation
	DeleteAliasOperation *DeleteAliasOperation
	RenameAliasOperation *RenameAliasOperation
	// contains filtered or unexported fields
}

Group of all the possible operations related to collection aliases

func NewAliasOperationsFromCreateAliasOperation added in v0.0.35

func NewAliasOperationsFromCreateAliasOperation(value *CreateAliasOperation) *AliasOperations

func NewAliasOperationsFromDeleteAliasOperation added in v0.0.35

func NewAliasOperationsFromDeleteAliasOperation(value *DeleteAliasOperation) *AliasOperations

func NewAliasOperationsFromRenameAliasOperation added in v0.0.35

func NewAliasOperationsFromRenameAliasOperation(value *RenameAliasOperation) *AliasOperations

func (*AliasOperations) Accept added in v0.0.35

func (a *AliasOperations) Accept(visitor AliasOperationsVisitor) error

func (AliasOperations) MarshalJSON added in v0.0.35

func (a AliasOperations) MarshalJSON() ([]byte, error)

func (*AliasOperations) UnmarshalJSON added in v0.0.35

func (a *AliasOperations) UnmarshalJSON(data []byte) error

type AliasOperationsVisitor added in v0.0.35

type AliasOperationsVisitor interface {
	VisitCreateAliasOperation(*CreateAliasOperation) error
	VisitDeleteAliasOperation(*DeleteAliasOperation) error
	VisitRenameAliasOperation(*RenameAliasOperation) error
}

type AnyVariants added in v0.0.35

type AnyVariants struct {
	StringList  []string
	IntegerList []int
	// contains filtered or unexported fields
}

func NewAnyVariantsFromIntegerList added in v0.0.35

func NewAnyVariantsFromIntegerList(value []int) *AnyVariants

func NewAnyVariantsFromStringList added in v0.0.35

func NewAnyVariantsFromStringList(value []string) *AnyVariants

func (*AnyVariants) Accept added in v0.0.35

func (a *AnyVariants) Accept(visitor AnyVariantsVisitor) error

func (AnyVariants) MarshalJSON added in v0.0.35

func (a AnyVariants) MarshalJSON() ([]byte, error)

func (*AnyVariants) UnmarshalJSON added in v0.0.35

func (a *AnyVariants) UnmarshalJSON(data []byte) error

type AnyVariantsVisitor added in v0.0.35

type AnyVariantsVisitor interface {
	VisitStringList([]string) error
	VisitIntegerList([]int) error
}

type AppBuildTelemetry added in v0.0.35

type AppBuildTelemetry struct {
	Name     string                     `json:"name"`
	Version  string                     `json:"version"`
	Features *AppBuildTelemetryFeatures `json:"features,omitempty"`
	System   *AppBuildTelemetrySystem   `json:"system,omitempty"`
	Startup  time.Time                  `json:"startup"`
	// contains filtered or unexported fields
}

func (*AppBuildTelemetry) String added in v0.0.35

func (a *AppBuildTelemetry) String() string

func (*AppBuildTelemetry) UnmarshalJSON added in v0.0.35

func (a *AppBuildTelemetry) UnmarshalJSON(data []byte) error

type AppBuildTelemetryFeatures added in v0.0.35

type AppBuildTelemetryFeatures struct {
	AppFeaturesTelemetry *AppFeaturesTelemetry
	Unknown              interface{}
	// contains filtered or unexported fields
}

func NewAppBuildTelemetryFeaturesFromAppFeaturesTelemetry added in v0.0.35

func NewAppBuildTelemetryFeaturesFromAppFeaturesTelemetry(value *AppFeaturesTelemetry) *AppBuildTelemetryFeatures

func NewAppBuildTelemetryFeaturesFromUnknown added in v0.0.35

func NewAppBuildTelemetryFeaturesFromUnknown(value interface{}) *AppBuildTelemetryFeatures

func (*AppBuildTelemetryFeatures) Accept added in v0.0.35

func (AppBuildTelemetryFeatures) MarshalJSON added in v0.0.35

func (a AppBuildTelemetryFeatures) MarshalJSON() ([]byte, error)

func (*AppBuildTelemetryFeatures) UnmarshalJSON added in v0.0.35

func (a *AppBuildTelemetryFeatures) UnmarshalJSON(data []byte) error

type AppBuildTelemetryFeaturesVisitor added in v0.0.35

type AppBuildTelemetryFeaturesVisitor interface {
	VisitAppFeaturesTelemetry(*AppFeaturesTelemetry) error
	VisitUnknown(interface{}) error
}

type AppBuildTelemetrySystem added in v0.0.35

type AppBuildTelemetrySystem struct {
	RunningEnvironmentTelemetry *RunningEnvironmentTelemetry
	Unknown                     interface{}
	// contains filtered or unexported fields
}

func NewAppBuildTelemetrySystemFromRunningEnvironmentTelemetry added in v0.0.35

func NewAppBuildTelemetrySystemFromRunningEnvironmentTelemetry(value *RunningEnvironmentTelemetry) *AppBuildTelemetrySystem

func NewAppBuildTelemetrySystemFromUnknown added in v0.0.35

func NewAppBuildTelemetrySystemFromUnknown(value interface{}) *AppBuildTelemetrySystem

func (*AppBuildTelemetrySystem) Accept added in v0.0.35

func (AppBuildTelemetrySystem) MarshalJSON added in v0.0.35

func (a AppBuildTelemetrySystem) MarshalJSON() ([]byte, error)

func (*AppBuildTelemetrySystem) UnmarshalJSON added in v0.0.35

func (a *AppBuildTelemetrySystem) UnmarshalJSON(data []byte) error

type AppBuildTelemetrySystemVisitor added in v0.0.35

type AppBuildTelemetrySystemVisitor interface {
	VisitRunningEnvironmentTelemetry(*RunningEnvironmentTelemetry) error
	VisitUnknown(interface{}) error
}

type AppFeaturesTelemetry added in v0.0.35

type AppFeaturesTelemetry struct {
	Debug               bool `json:"debug"`
	WebFeature          bool `json:"web_feature"`
	ServiceDebugFeature bool `json:"service_debug_feature"`
	RecoveryMode        bool `json:"recovery_mode"`
	// contains filtered or unexported fields
}

func (*AppFeaturesTelemetry) String added in v0.0.35

func (a *AppFeaturesTelemetry) String() string

func (*AppFeaturesTelemetry) UnmarshalJSON added in v0.0.35

func (a *AppFeaturesTelemetry) UnmarshalJSON(data []byte) error

type Batch added in v0.0.35

type Batch struct {
	Ids      []*ExtendedPointId   `json:"ids,omitempty"`
	Vectors  *BatchVectorStruct   `json:"vectors,omitempty"`
	Payloads []*BatchPayloadsItem `json:"payloads,omitempty"`
	// contains filtered or unexported fields
}

func (*Batch) String added in v0.0.35

func (b *Batch) String() string

func (*Batch) UnmarshalJSON added in v0.0.35

func (b *Batch) UnmarshalJSON(data []byte) error

type BatchPayloadsItem added in v0.0.35

type BatchPayloadsItem struct {
	Payload Payload
	Unknown interface{}
	// contains filtered or unexported fields
}

func NewBatchPayloadsItemFromPayload added in v0.0.35

func NewBatchPayloadsItemFromPayload(value Payload) *BatchPayloadsItem

func NewBatchPayloadsItemFromUnknown added in v0.0.35

func NewBatchPayloadsItemFromUnknown(value interface{}) *BatchPayloadsItem

func (*BatchPayloadsItem) Accept added in v0.0.35

func (BatchPayloadsItem) MarshalJSON added in v0.0.35

func (b BatchPayloadsItem) MarshalJSON() ([]byte, error)

func (*BatchPayloadsItem) UnmarshalJSON added in v0.0.35

func (b *BatchPayloadsItem) UnmarshalJSON(data []byte) error

type BatchPayloadsItemVisitor added in v0.0.35

type BatchPayloadsItemVisitor interface {
	VisitPayload(Payload) error
	VisitUnknown(interface{}) error
}

type BatchUpdateResponse added in v0.0.35

type BatchUpdateResponse struct {
	// Time spent to process this request
	Time   *float64        `json:"time,omitempty"`
	Status *string         `json:"status,omitempty"`
	Result []*UpdateResult `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchUpdateResponse) String added in v0.0.35

func (b *BatchUpdateResponse) String() string

func (*BatchUpdateResponse) UnmarshalJSON added in v0.0.35

func (b *BatchUpdateResponse) UnmarshalJSON(data []byte) error

type BatchVectorStruct added in v0.0.35

type BatchVectorStruct struct {
	DoubleListList      [][]float64
	StringVectorListMap map[string][]*Vector
	// contains filtered or unexported fields
}

func NewBatchVectorStructFromDoubleListList added in v0.0.35

func NewBatchVectorStructFromDoubleListList(value [][]float64) *BatchVectorStruct

func NewBatchVectorStructFromStringVectorListMap added in v0.0.35

func NewBatchVectorStructFromStringVectorListMap(value map[string][]*Vector) *BatchVectorStruct

func (*BatchVectorStruct) Accept added in v0.0.35

func (BatchVectorStruct) MarshalJSON added in v0.0.35

func (b BatchVectorStruct) MarshalJSON() ([]byte, error)

func (*BatchVectorStruct) UnmarshalJSON added in v0.0.35

func (b *BatchVectorStruct) UnmarshalJSON(data []byte) error

type BatchVectorStructVisitor added in v0.0.35

type BatchVectorStructVisitor interface {
	VisitDoubleListList([][]float64) error
	VisitStringVectorListMap(map[string][]*Vector) error
}

type BinaryQuantization added in v0.0.35

type BinaryQuantization struct {
	Binary *BinaryQuantizationConfig `json:"binary,omitempty"`
	// contains filtered or unexported fields
}

func (*BinaryQuantization) String added in v0.0.35

func (b *BinaryQuantization) String() string

func (*BinaryQuantization) UnmarshalJSON added in v0.0.35

func (b *BinaryQuantization) UnmarshalJSON(data []byte) error

type BinaryQuantizationConfig added in v0.0.35

type BinaryQuantizationConfig struct {
	AlwaysRam *bool `json:"always_ram,omitempty"`
	// contains filtered or unexported fields
}

func (*BinaryQuantizationConfig) String added in v0.0.35

func (b *BinaryQuantizationConfig) String() string

func (*BinaryQuantizationConfig) UnmarshalJSON added in v0.0.35

func (b *BinaryQuantizationConfig) UnmarshalJSON(data []byte) error

type ChangeAliasesOperation added in v0.0.35

type ChangeAliasesOperation struct {
	// Wait for operation commit timeout in seconds.
	// If timeout is reached - request will return with service error.
	Timeout *int               `json:"-"`
	Actions []*AliasOperations `json:"actions,omitempty"`
}

type ClearPayloadOperation added in v0.0.35

type ClearPayloadOperation struct {
	ClearPayload *PointsSelector `json:"clear_payload,omitempty"`
	// contains filtered or unexported fields
}

func (*ClearPayloadOperation) String added in v0.0.35

func (c *ClearPayloadOperation) String() string

func (*ClearPayloadOperation) UnmarshalJSON added in v0.0.35

func (c *ClearPayloadOperation) UnmarshalJSON(data []byte) error

type ClearPayloadRequest added in v0.0.35

type ClearPayloadRequest struct {
	// If true, wait for changes to actually happen
	Wait *bool `json:"-"`
	// define ordering guarantees for the operation
	Ordering *WriteOrdering  `json:"-"`
	Body     *PointsSelector `json:"-"`
}

func (*ClearPayloadRequest) MarshalJSON added in v0.0.35

func (c *ClearPayloadRequest) MarshalJSON() ([]byte, error)

func (*ClearPayloadRequest) UnmarshalJSON added in v0.0.35

func (c *ClearPayloadRequest) UnmarshalJSON(data []byte) error

type ClearPayloadResponse added in v0.0.35

type ClearPayloadResponse struct {
	// Time spent to process this request
	Time   *float64      `json:"time,omitempty"`
	Status *string       `json:"status,omitempty"`
	Result *UpdateResult `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*ClearPayloadResponse) String added in v0.0.35

func (c *ClearPayloadResponse) String() string

func (*ClearPayloadResponse) UnmarshalJSON added in v0.0.35

func (c *ClearPayloadResponse) UnmarshalJSON(data []byte) error

type ClusterConfigTelemetry added in v0.0.35

type ClusterConfigTelemetry struct {
	GrpcTimeoutMs int                       `json:"grpc_timeout_ms"`
	P2P           *P2PConfigTelemetry       `json:"p2p,omitempty"`
	Consensus     *ConsensusConfigTelemetry `json:"consensus,omitempty"`
	// contains filtered or unexported fields
}

func (*ClusterConfigTelemetry) String added in v0.0.35

func (c *ClusterConfigTelemetry) String() string

func (*ClusterConfigTelemetry) UnmarshalJSON added in v0.0.35

func (c *ClusterConfigTelemetry) UnmarshalJSON(data []byte) error

type ClusterOperations added in v0.0.35

type ClusterOperations struct {
	MoveShardOperation         *MoveShardOperation
	ReplicateShardOperation    *ReplicateShardOperation
	AbortTransferOperation     *AbortTransferOperation
	DropReplicaOperation       *DropReplicaOperation
	CreateShardingKeyOperation *CreateShardingKeyOperation
	DropShardingKeyOperation   *DropShardingKeyOperation
	// contains filtered or unexported fields
}

func NewClusterOperationsFromAbortTransferOperation added in v0.0.35

func NewClusterOperationsFromAbortTransferOperation(value *AbortTransferOperation) *ClusterOperations

func NewClusterOperationsFromCreateShardingKeyOperation added in v0.0.35

func NewClusterOperationsFromCreateShardingKeyOperation(value *CreateShardingKeyOperation) *ClusterOperations

func NewClusterOperationsFromDropReplicaOperation added in v0.0.35

func NewClusterOperationsFromDropReplicaOperation(value *DropReplicaOperation) *ClusterOperations

func NewClusterOperationsFromDropShardingKeyOperation added in v0.0.35

func NewClusterOperationsFromDropShardingKeyOperation(value *DropShardingKeyOperation) *ClusterOperations

func NewClusterOperationsFromMoveShardOperation added in v0.0.35

func NewClusterOperationsFromMoveShardOperation(value *MoveShardOperation) *ClusterOperations

func NewClusterOperationsFromReplicateShardOperation added in v0.0.35

func NewClusterOperationsFromReplicateShardOperation(value *ReplicateShardOperation) *ClusterOperations

func (*ClusterOperations) Accept added in v0.0.35

func (ClusterOperations) MarshalJSON added in v0.0.35

func (c ClusterOperations) MarshalJSON() ([]byte, error)

func (*ClusterOperations) UnmarshalJSON added in v0.0.35

func (c *ClusterOperations) UnmarshalJSON(data []byte) error

type ClusterOperationsVisitor added in v0.0.35

type ClusterOperationsVisitor interface {
	VisitMoveShardOperation(*MoveShardOperation) error
	VisitReplicateShardOperation(*ReplicateShardOperation) error
	VisitAbortTransferOperation(*AbortTransferOperation) error
	VisitDropReplicaOperation(*DropReplicaOperation) error
	VisitCreateShardingKeyOperation(*CreateShardingKeyOperation) error
	VisitDropShardingKeyOperation(*DropShardingKeyOperation) error
}

type ClusterStatus added in v0.0.35

type ClusterStatus struct {
	Status   string
	Disabled *ClusterStatusDisabled
	// Description of enabled cluster
	Enabled *ClusterStatusEnabled
}

Information about current cluster status and structure

func NewClusterStatusFromDisabled added in v0.0.35

func NewClusterStatusFromDisabled(value *ClusterStatusDisabled) *ClusterStatus

func NewClusterStatusFromEnabled added in v0.0.35

func NewClusterStatusFromEnabled(value *ClusterStatusEnabled) *ClusterStatus

func (*ClusterStatus) Accept added in v0.0.35

func (c *ClusterStatus) Accept(visitor ClusterStatusVisitor) error

func (ClusterStatus) MarshalJSON added in v0.0.35

func (c ClusterStatus) MarshalJSON() ([]byte, error)

func (*ClusterStatus) UnmarshalJSON added in v0.0.35

func (c *ClusterStatus) UnmarshalJSON(data []byte) error

type ClusterStatusDisabled added in v0.0.35

type ClusterStatusDisabled struct {
	// contains filtered or unexported fields
}

func (*ClusterStatusDisabled) String added in v0.0.35

func (c *ClusterStatusDisabled) String() string

func (*ClusterStatusDisabled) UnmarshalJSON added in v0.0.35

func (c *ClusterStatusDisabled) UnmarshalJSON(data []byte) error

type ClusterStatusEnabled added in v0.0.35

type ClusterStatusEnabled struct {
	// ID of this peer
	PeerId int `json:"peer_id"`
	// Peers composition of the cluster with main information
	Peers                 map[string]*PeerInfo   `json:"peers,omitempty"`
	RaftInfo              *RaftInfo              `json:"raft_info,omitempty"`
	ConsensusThreadStatus *ConsensusThreadStatus `json:"consensus_thread_status,omitempty"`
	// Consequent failures of message send operations in consensus by peer address. On the first success to send to that peer - entry is removed from this hashmap.
	MessageSendFailures map[string]*MessageSendErrors `json:"message_send_failures,omitempty"`
	// contains filtered or unexported fields
}

Description of enabled cluster

func (*ClusterStatusEnabled) String added in v0.0.35

func (c *ClusterStatusEnabled) String() string

func (*ClusterStatusEnabled) UnmarshalJSON added in v0.0.35

func (c *ClusterStatusEnabled) UnmarshalJSON(data []byte) error

type ClusterStatusResponse added in v0.0.35

type ClusterStatusResponse struct {
	// Time spent to process this request
	Time   *float64       `json:"time,omitempty"`
	Status *string        `json:"status,omitempty"`
	Result *ClusterStatus `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*ClusterStatusResponse) String added in v0.0.35

func (c *ClusterStatusResponse) String() string

func (*ClusterStatusResponse) UnmarshalJSON added in v0.0.35

func (c *ClusterStatusResponse) UnmarshalJSON(data []byte) error

type ClusterStatusTelemetry added in v0.0.35

type ClusterStatusTelemetry struct {
	NumberOfPeers         int                         `json:"number_of_peers"`
	Term                  int                         `json:"term"`
	Commit                int                         `json:"commit"`
	PendingOperations     int                         `json:"pending_operations"`
	Role                  *ClusterStatusTelemetryRole `json:"role,omitempty"`
	IsVoter               bool                        `json:"is_voter"`
	PeerId                *int                        `json:"peer_id,omitempty"`
	ConsensusThreadStatus *ConsensusThreadStatus      `json:"consensus_thread_status,omitempty"`
	// contains filtered or unexported fields
}

func (*ClusterStatusTelemetry) String added in v0.0.35

func (c *ClusterStatusTelemetry) String() string

func (*ClusterStatusTelemetry) UnmarshalJSON added in v0.0.35

func (c *ClusterStatusTelemetry) UnmarshalJSON(data []byte) error

type ClusterStatusTelemetryRole added in v0.0.35

type ClusterStatusTelemetryRole struct {
	StateRole StateRole
	Unknown   interface{}
	// contains filtered or unexported fields
}

func NewClusterStatusTelemetryRoleFromStateRole added in v0.0.35

func NewClusterStatusTelemetryRoleFromStateRole(value StateRole) *ClusterStatusTelemetryRole

func NewClusterStatusTelemetryRoleFromUnknown added in v0.0.35

func NewClusterStatusTelemetryRoleFromUnknown(value interface{}) *ClusterStatusTelemetryRole

func (*ClusterStatusTelemetryRole) Accept added in v0.0.35

func (ClusterStatusTelemetryRole) MarshalJSON added in v0.0.35

func (c ClusterStatusTelemetryRole) MarshalJSON() ([]byte, error)

func (*ClusterStatusTelemetryRole) UnmarshalJSON added in v0.0.35

func (c *ClusterStatusTelemetryRole) UnmarshalJSON(data []byte) error

type ClusterStatusTelemetryRoleVisitor added in v0.0.35

type ClusterStatusTelemetryRoleVisitor interface {
	VisitStateRole(StateRole) error
	VisitUnknown(interface{}) error
}

type ClusterStatusVisitor added in v0.0.35

type ClusterStatusVisitor interface {
	VisitDisabled(*ClusterStatusDisabled) error
	VisitEnabled(*ClusterStatusEnabled) error
}

type ClusterTelemetry added in v0.0.35

type ClusterTelemetry struct {
	Enabled bool                    `json:"enabled"`
	Status  *ClusterTelemetryStatus `json:"status,omitempty"`
	Config  *ClusterTelemetryConfig `json:"config,omitempty"`
	// contains filtered or unexported fields
}

func (*ClusterTelemetry) String added in v0.0.35

func (c *ClusterTelemetry) String() string

func (*ClusterTelemetry) UnmarshalJSON added in v0.0.35

func (c *ClusterTelemetry) UnmarshalJSON(data []byte) error

type ClusterTelemetryConfig added in v0.0.35

type ClusterTelemetryConfig struct {
	ClusterConfigTelemetry *ClusterConfigTelemetry
	Unknown                interface{}
	// contains filtered or unexported fields
}

func NewClusterTelemetryConfigFromClusterConfigTelemetry added in v0.0.35

func NewClusterTelemetryConfigFromClusterConfigTelemetry(value *ClusterConfigTelemetry) *ClusterTelemetryConfig

func NewClusterTelemetryConfigFromUnknown added in v0.0.35

func NewClusterTelemetryConfigFromUnknown(value interface{}) *ClusterTelemetryConfig

func (*ClusterTelemetryConfig) Accept added in v0.0.35

func (ClusterTelemetryConfig) MarshalJSON added in v0.0.35

func (c ClusterTelemetryConfig) MarshalJSON() ([]byte, error)

func (*ClusterTelemetryConfig) UnmarshalJSON added in v0.0.35

func (c *ClusterTelemetryConfig) UnmarshalJSON(data []byte) error

type ClusterTelemetryConfigVisitor added in v0.0.35

type ClusterTelemetryConfigVisitor interface {
	VisitClusterConfigTelemetry(*ClusterConfigTelemetry) error
	VisitUnknown(interface{}) error
}

type ClusterTelemetryStatus added in v0.0.35

type ClusterTelemetryStatus struct {
	ClusterStatusTelemetry *ClusterStatusTelemetry
	Unknown                interface{}
	// contains filtered or unexported fields
}

func NewClusterTelemetryStatusFromClusterStatusTelemetry added in v0.0.35

func NewClusterTelemetryStatusFromClusterStatusTelemetry(value *ClusterStatusTelemetry) *ClusterTelemetryStatus

func NewClusterTelemetryStatusFromUnknown added in v0.0.35

func NewClusterTelemetryStatusFromUnknown(value interface{}) *ClusterTelemetryStatus

func (*ClusterTelemetryStatus) Accept added in v0.0.35

func (ClusterTelemetryStatus) MarshalJSON added in v0.0.35

func (c ClusterTelemetryStatus) MarshalJSON() ([]byte, error)

func (*ClusterTelemetryStatus) UnmarshalJSON added in v0.0.35

func (c *ClusterTelemetryStatus) UnmarshalJSON(data []byte) error

type ClusterTelemetryStatusVisitor added in v0.0.35

type ClusterTelemetryStatusVisitor interface {
	VisitClusterStatusTelemetry(*ClusterStatusTelemetry) error
	VisitUnknown(interface{}) error
}

type CollectionClusterInfo added in v0.0.35

type CollectionClusterInfo struct {
	// ID of this peer
	PeerId int `json:"peer_id"`
	// Total number of shards
	ShardCount int `json:"shard_count"`
	// Local shards
	LocalShards []*LocalShardInfo `json:"local_shards,omitempty"`
	// Remote shards
	RemoteShards []*RemoteShardInfo `json:"remote_shards,omitempty"`
	// Shard transfers
	ShardTransfers []*ShardTransferInfo `json:"shard_transfers,omitempty"`
	// contains filtered or unexported fields
}

Current clustering distribution for the collection

func (*CollectionClusterInfo) String added in v0.0.35

func (c *CollectionClusterInfo) String() string

func (*CollectionClusterInfo) UnmarshalJSON added in v0.0.35

func (c *CollectionClusterInfo) UnmarshalJSON(data []byte) error

type CollectionClusterInfoResponse added in v0.0.35

type CollectionClusterInfoResponse struct {
	// Time spent to process this request
	Time   *float64               `json:"time,omitempty"`
	Status *string                `json:"status,omitempty"`
	Result *CollectionClusterInfo `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*CollectionClusterInfoResponse) String added in v0.0.35

func (*CollectionClusterInfoResponse) UnmarshalJSON added in v0.0.35

func (c *CollectionClusterInfoResponse) UnmarshalJSON(data []byte) error

type CollectionConfig added in v0.0.35

type CollectionConfig struct {
	Params             *CollectionParams                   `json:"params,omitempty"`
	HnswConfig         *HnswConfig                         `json:"hnsw_config,omitempty"`
	OptimizerConfig    *OptimizersConfig                   `json:"optimizer_config,omitempty"`
	WalConfig          *WalConfig                          `json:"wal_config,omitempty"`
	QuantizationConfig *CollectionConfigQuantizationConfig `json:"quantization_config,omitempty"`
	// contains filtered or unexported fields
}

func (*CollectionConfig) String added in v0.0.35

func (c *CollectionConfig) String() string

func (*CollectionConfig) UnmarshalJSON added in v0.0.35

func (c *CollectionConfig) UnmarshalJSON(data []byte) error

type CollectionConfigQuantizationConfig added in v0.0.35

type CollectionConfigQuantizationConfig struct {
	QuantizationConfig *QuantizationConfig
	Unknown            interface{}
	// contains filtered or unexported fields
}

func NewCollectionConfigQuantizationConfigFromQuantizationConfig added in v0.0.35

func NewCollectionConfigQuantizationConfigFromQuantizationConfig(value *QuantizationConfig) *CollectionConfigQuantizationConfig

func NewCollectionConfigQuantizationConfigFromUnknown added in v0.0.35

func NewCollectionConfigQuantizationConfigFromUnknown(value interface{}) *CollectionConfigQuantizationConfig

func (*CollectionConfigQuantizationConfig) Accept added in v0.0.35

func (CollectionConfigQuantizationConfig) MarshalJSON added in v0.0.35

func (c CollectionConfigQuantizationConfig) MarshalJSON() ([]byte, error)

func (*CollectionConfigQuantizationConfig) UnmarshalJSON added in v0.0.35

func (c *CollectionConfigQuantizationConfig) UnmarshalJSON(data []byte) error

type CollectionConfigQuantizationConfigVisitor added in v0.0.35

type CollectionConfigQuantizationConfigVisitor interface {
	VisitQuantizationConfig(*QuantizationConfig) error
	VisitUnknown(interface{}) error
}

type CollectionDescription added in v0.0.35

type CollectionDescription struct {
	Name string `json:"name"`
	// contains filtered or unexported fields
}

func (*CollectionDescription) String added in v0.0.35

func (c *CollectionDescription) String() string

func (*CollectionDescription) UnmarshalJSON added in v0.0.35

func (c *CollectionDescription) UnmarshalJSON(data []byte) error

type CollectionInfo added in v0.0.35

type CollectionInfo struct {
	Status          CollectionStatus  `json:"status,omitempty"`
	OptimizerStatus *OptimizersStatus `json:"optimizer_status,omitempty"`
	// Approximate number of vectors in collection. All vectors in collection are available for querying. Calculated as `points_count x vectors_per_point`. Where `vectors_per_point` is a number of named vectors in schema.
	VectorsCount *int `json:"vectors_count,omitempty"`
	// Approximate number of indexed vectors in the collection. Indexed vectors in large segments are faster to query, as it is stored in a specialized vector index.
	IndexedVectorsCount *int `json:"indexed_vectors_count,omitempty"`
	// Approximate number of points (vectors + payloads) in collection. Each point could be accessed by unique id.
	PointsCount *int `json:"points_count,omitempty"`
	// Number of segments in collection. Each segment has independent vector as payload indexes
	SegmentsCount int               `json:"segments_count"`
	Config        *CollectionConfig `json:"config,omitempty"`
	// Types of stored payload
	PayloadSchema map[string]*PayloadIndexInfo `json:"payload_schema,omitempty"`
	// contains filtered or unexported fields
}

Current statistics and configuration of the collection

func (*CollectionInfo) String added in v0.0.35

func (c *CollectionInfo) String() string

func (*CollectionInfo) UnmarshalJSON added in v0.0.35

func (c *CollectionInfo) UnmarshalJSON(data []byte) error

type CollectionParams added in v0.0.35

type CollectionParams struct {
	Vectors *VectorsConfig `json:"vectors,omitempty"`
	// Number of shards the collection has
	ShardNumber *int `json:"shard_number,omitempty"`
	// Sharding method Default is Auto - points are distributed across all available shards Custom - points are distributed across shards according to shard key
	ShardingMethod *CollectionParamsShardingMethod `json:"sharding_method,omitempty"`
	// Number of replicas for each shard
	ReplicationFactor *int `json:"replication_factor,omitempty"`
	// Defines how many replicas should apply the operation for us to consider it successful. Increasing this number will make the collection more resilient to inconsistencies, but will also make it fail if not enough replicas are available. Does not have any performance impact.
	WriteConsistencyFactor *int `json:"write_consistency_factor,omitempty"`
	// Defines how many additional replicas should be processing read request at the same time. Default value is Auto, which means that fan-out will be determined automatically based on the busyness of the local replica. Having more than 0 might be useful to smooth latency spikes of individual nodes.
	ReadFanOutFactor *int `json:"read_fan_out_factor,omitempty"`
	// If true - point's payload will not be stored in memory. It will be read from the disk every time it is requested. This setting saves RAM by (slightly) increasing the response time. Note: those payload values that are involved in filtering and are indexed - remain in RAM.
	OnDiskPayload *bool `json:"on_disk_payload,omitempty"`
	// Configuration of the sparse vector storage
	SparseVectors map[string]*SparseVectorParams `json:"sparse_vectors,omitempty"`
	// contains filtered or unexported fields
}

func (*CollectionParams) String added in v0.0.35

func (c *CollectionParams) String() string

func (*CollectionParams) UnmarshalJSON added in v0.0.35

func (c *CollectionParams) UnmarshalJSON(data []byte) error

type CollectionParamsDiff added in v0.0.35

type CollectionParamsDiff struct {
	// Number of replicas for each shard
	ReplicationFactor *int `json:"replication_factor,omitempty"`
	// Minimal number successful responses from replicas to consider operation successful
	WriteConsistencyFactor *int `json:"write_consistency_factor,omitempty"`
	// Fan-out every read request to these many additional remote nodes (and return first available response)
	ReadFanOutFactor *int `json:"read_fan_out_factor,omitempty"`
	// If true - point's payload will not be stored in memory. It will be read from the disk every time it is requested. This setting saves RAM by (slightly) increasing the response time. Note: those payload values that are involved in filtering and are indexed - remain in RAM.
	OnDiskPayload *bool `json:"on_disk_payload,omitempty"`
	// contains filtered or unexported fields
}

func (*CollectionParamsDiff) String added in v0.0.35

func (c *CollectionParamsDiff) String() string

func (*CollectionParamsDiff) UnmarshalJSON added in v0.0.35

func (c *CollectionParamsDiff) UnmarshalJSON(data []byte) error

type CollectionParamsShardingMethod added in v0.0.35

type CollectionParamsShardingMethod struct {
	ShardingMethod ShardingMethod
	Unknown        interface{}
	// contains filtered or unexported fields
}

Sharding method Default is Auto - points are distributed across all available shards Custom - points are distributed across shards according to shard key

func NewCollectionParamsShardingMethodFromShardingMethod added in v0.0.35

func NewCollectionParamsShardingMethodFromShardingMethod(value ShardingMethod) *CollectionParamsShardingMethod

func NewCollectionParamsShardingMethodFromUnknown added in v0.0.35

func NewCollectionParamsShardingMethodFromUnknown(value interface{}) *CollectionParamsShardingMethod

func (*CollectionParamsShardingMethod) Accept added in v0.0.35

func (CollectionParamsShardingMethod) MarshalJSON added in v0.0.35

func (c CollectionParamsShardingMethod) MarshalJSON() ([]byte, error)

func (*CollectionParamsShardingMethod) UnmarshalJSON added in v0.0.35

func (c *CollectionParamsShardingMethod) UnmarshalJSON(data []byte) error

type CollectionParamsShardingMethodVisitor added in v0.0.35

type CollectionParamsShardingMethodVisitor interface {
	VisitShardingMethod(ShardingMethod) error
	VisitUnknown(interface{}) error
}

type CollectionStatus added in v0.0.35

type CollectionStatus string

Current state of the collection. `Green` - all good. `Yellow` - optimization is running, `Red` - some operations failed and was not recovered

const (
	CollectionStatusGreen  CollectionStatus = "green"
	CollectionStatusYellow CollectionStatus = "yellow"
	CollectionStatusRed    CollectionStatus = "red"
)

func NewCollectionStatusFromString added in v0.0.35

func NewCollectionStatusFromString(s string) (CollectionStatus, error)

func (CollectionStatus) Ptr added in v0.0.35

type CollectionTelemetry added in v0.0.35

type CollectionTelemetry struct {
	Id         string                 `json:"id"`
	InitTimeMs int                    `json:"init_time_ms"`
	Config     *CollectionConfig      `json:"config,omitempty"`
	Shards     []*ReplicaSetTelemetry `json:"shards,omitempty"`
	Transfers  []*ShardTransferInfo   `json:"transfers,omitempty"`
	// contains filtered or unexported fields
}

func (*CollectionTelemetry) String added in v0.0.35

func (c *CollectionTelemetry) String() string

func (*CollectionTelemetry) UnmarshalJSON added in v0.0.35

func (c *CollectionTelemetry) UnmarshalJSON(data []byte) error

type CollectionTelemetryEnum added in v0.0.35

type CollectionTelemetryEnum struct {
	CollectionTelemetry            *CollectionTelemetry
	CollectionsAggregatedTelemetry *CollectionsAggregatedTelemetry
	// contains filtered or unexported fields
}

func NewCollectionTelemetryEnumFromCollectionTelemetry added in v0.0.35

func NewCollectionTelemetryEnumFromCollectionTelemetry(value *CollectionTelemetry) *CollectionTelemetryEnum

func NewCollectionTelemetryEnumFromCollectionsAggregatedTelemetry added in v0.0.35

func NewCollectionTelemetryEnumFromCollectionsAggregatedTelemetry(value *CollectionsAggregatedTelemetry) *CollectionTelemetryEnum

func (*CollectionTelemetryEnum) Accept added in v0.0.35

func (CollectionTelemetryEnum) MarshalJSON added in v0.0.35

func (c CollectionTelemetryEnum) MarshalJSON() ([]byte, error)

func (*CollectionTelemetryEnum) UnmarshalJSON added in v0.0.35

func (c *CollectionTelemetryEnum) UnmarshalJSON(data []byte) error

type CollectionTelemetryEnumVisitor added in v0.0.35

type CollectionTelemetryEnumVisitor interface {
	VisitCollectionTelemetry(*CollectionTelemetry) error
	VisitCollectionsAggregatedTelemetry(*CollectionsAggregatedTelemetry) error
}

type CollectionsAggregatedTelemetry added in v0.0.35

type CollectionsAggregatedTelemetry struct {
	Vectors          int               `json:"vectors"`
	OptimizersStatus *OptimizersStatus `json:"optimizers_status,omitempty"`
	Params           *CollectionParams `json:"params,omitempty"`
	// contains filtered or unexported fields
}

func (*CollectionsAggregatedTelemetry) String added in v0.0.35

func (*CollectionsAggregatedTelemetry) UnmarshalJSON added in v0.0.35

func (c *CollectionsAggregatedTelemetry) UnmarshalJSON(data []byte) error

type CollectionsAliasesResponse added in v0.0.35

type CollectionsAliasesResponse struct {
	Aliases []*AliasDescription `json:"aliases,omitempty"`
	// contains filtered or unexported fields
}

func (*CollectionsAliasesResponse) String added in v0.0.35

func (c *CollectionsAliasesResponse) String() string

func (*CollectionsAliasesResponse) UnmarshalJSON added in v0.0.35

func (c *CollectionsAliasesResponse) UnmarshalJSON(data []byte) error

type CollectionsResponse added in v0.0.35

type CollectionsResponse struct {
	Collections []*CollectionDescription `json:"collections,omitempty"`
	// contains filtered or unexported fields
}

func (*CollectionsResponse) String added in v0.0.35

func (c *CollectionsResponse) String() string

func (*CollectionsResponse) UnmarshalJSON added in v0.0.35

func (c *CollectionsResponse) UnmarshalJSON(data []byte) error

type CollectionsTelemetry added in v0.0.35

type CollectionsTelemetry struct {
	NumberOfCollections int                        `json:"number_of_collections"`
	Collections         []*CollectionTelemetryEnum `json:"collections,omitempty"`
	// contains filtered or unexported fields
}

func (*CollectionsTelemetry) String added in v0.0.35

func (c *CollectionsTelemetry) String() string

func (*CollectionsTelemetry) UnmarshalJSON added in v0.0.35

func (c *CollectionsTelemetry) UnmarshalJSON(data []byte) error

type CompressionRatio added in v0.0.35

type CompressionRatio string
const (
	CompressionRatioX4  CompressionRatio = "x4"
	CompressionRatioX8  CompressionRatio = "x8"
	CompressionRatioX16 CompressionRatio = "x16"
	CompressionRatioX32 CompressionRatio = "x32"
	CompressionRatioX64 CompressionRatio = "x64"
)

func NewCompressionRatioFromString added in v0.0.35

func NewCompressionRatioFromString(s string) (CompressionRatio, error)

func (CompressionRatio) Ptr added in v0.0.35

type Condition added in v0.0.35

type Condition struct {
	FieldCondition   *FieldCondition
	IsEmptyCondition *IsEmptyCondition
	IsNullCondition  *IsNullCondition
	HasIdCondition   *HasIdCondition
	NestedCondition  *NestedCondition
	Filter           *Filter
	// contains filtered or unexported fields
}

func NewConditionFromFieldCondition added in v0.0.35

func NewConditionFromFieldCondition(value *FieldCondition) *Condition

func NewConditionFromFilter added in v0.0.35

func NewConditionFromFilter(value *Filter) *Condition

func NewConditionFromHasIdCondition added in v0.0.35

func NewConditionFromHasIdCondition(value *HasIdCondition) *Condition

func NewConditionFromIsEmptyCondition added in v0.0.35

func NewConditionFromIsEmptyCondition(value *IsEmptyCondition) *Condition

func NewConditionFromIsNullCondition added in v0.0.35

func NewConditionFromIsNullCondition(value *IsNullCondition) *Condition

func NewConditionFromNestedCondition added in v0.0.35

func NewConditionFromNestedCondition(value *NestedCondition) *Condition

func (*Condition) Accept added in v0.0.35

func (c *Condition) Accept(visitor ConditionVisitor) error

func (Condition) MarshalJSON added in v0.0.35

func (c Condition) MarshalJSON() ([]byte, error)

func (*Condition) UnmarshalJSON added in v0.0.35

func (c *Condition) UnmarshalJSON(data []byte) error

type ConditionVisitor added in v0.0.35

type ConditionVisitor interface {
	VisitFieldCondition(*FieldCondition) error
	VisitIsEmptyCondition(*IsEmptyCondition) error
	VisitIsNullCondition(*IsNullCondition) error
	VisitHasIdCondition(*HasIdCondition) error
	VisitNestedCondition(*NestedCondition) error
	VisitFilter(*Filter) error
}

type ConsensusConfigTelemetry added in v0.0.35

type ConsensusConfigTelemetry struct {
	MaxMessageQueueSize int `json:"max_message_queue_size"`
	TickPeriodMs        int `json:"tick_period_ms"`
	BootstrapTimeoutSec int `json:"bootstrap_timeout_sec"`
	// contains filtered or unexported fields
}

func (*ConsensusConfigTelemetry) String added in v0.0.35

func (c *ConsensusConfigTelemetry) String() string

func (*ConsensusConfigTelemetry) UnmarshalJSON added in v0.0.35

func (c *ConsensusConfigTelemetry) UnmarshalJSON(data []byte) error

type ConsensusThreadStatus added in v0.0.35

type ConsensusThreadStatus struct {
	ConsensusThreadStatus string
	Working               *ConsensusThreadStatusWorking
	Stopped               *ConsensusThreadStatusStopped
	StoppedWithErr        *ConsensusThreadStatusStoppedWithErr
}

Information about current consensus thread status

func NewConsensusThreadStatusFromStopped added in v0.0.35

func NewConsensusThreadStatusFromStopped(value *ConsensusThreadStatusStopped) *ConsensusThreadStatus

func NewConsensusThreadStatusFromStoppedWithErr added in v0.0.35

func NewConsensusThreadStatusFromStoppedWithErr(value *ConsensusThreadStatusStoppedWithErr) *ConsensusThreadStatus

func NewConsensusThreadStatusFromWorking added in v0.0.35

func NewConsensusThreadStatusFromWorking(value *ConsensusThreadStatusWorking) *ConsensusThreadStatus

func (*ConsensusThreadStatus) Accept added in v0.0.35

func (ConsensusThreadStatus) MarshalJSON added in v0.0.35

func (c ConsensusThreadStatus) MarshalJSON() ([]byte, error)

func (*ConsensusThreadStatus) UnmarshalJSON added in v0.0.35

func (c *ConsensusThreadStatus) UnmarshalJSON(data []byte) error

type ConsensusThreadStatusStopped added in v0.0.35

type ConsensusThreadStatusStopped struct {
	// contains filtered or unexported fields
}

func (*ConsensusThreadStatusStopped) String added in v0.0.35

func (*ConsensusThreadStatusStopped) UnmarshalJSON added in v0.0.35

func (c *ConsensusThreadStatusStopped) UnmarshalJSON(data []byte) error

type ConsensusThreadStatusStoppedWithErr added in v0.0.35

type ConsensusThreadStatusStoppedWithErr struct {
	Err string `json:"err"`
	// contains filtered or unexported fields
}

func (*ConsensusThreadStatusStoppedWithErr) String added in v0.0.35

func (*ConsensusThreadStatusStoppedWithErr) UnmarshalJSON added in v0.0.35

func (c *ConsensusThreadStatusStoppedWithErr) UnmarshalJSON(data []byte) error

type ConsensusThreadStatusVisitor added in v0.0.35

type ConsensusThreadStatusVisitor interface {
	VisitWorking(*ConsensusThreadStatusWorking) error
	VisitStopped(*ConsensusThreadStatusStopped) error
	VisitStoppedWithErr(*ConsensusThreadStatusStoppedWithErr) error
}

type ConsensusThreadStatusWorking added in v0.0.35

type ConsensusThreadStatusWorking struct {
	LastUpdate time.Time `json:"last_update"`
	// contains filtered or unexported fields
}

func (*ConsensusThreadStatusWorking) String added in v0.0.35

func (*ConsensusThreadStatusWorking) UnmarshalJSON added in v0.0.35

func (c *ConsensusThreadStatusWorking) UnmarshalJSON(data []byte) error

type ContextExamplePair added in v0.0.35

type ContextExamplePair struct {
	Positive *RecommendExample `json:"positive,omitempty"`
	Negative *RecommendExample `json:"negative,omitempty"`
	// contains filtered or unexported fields
}

func (*ContextExamplePair) String added in v0.0.35

func (c *ContextExamplePair) String() string

func (*ContextExamplePair) UnmarshalJSON added in v0.0.35

func (c *ContextExamplePair) UnmarshalJSON(data []byte) error

type CountPointsResponse added in v0.0.35

type CountPointsResponse struct {
	// Time spent to process this request
	Time   *float64     `json:"time,omitempty"`
	Status *string      `json:"status,omitempty"`
	Result *CountResult `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*CountPointsResponse) String added in v0.0.35

func (c *CountPointsResponse) String() string

func (*CountPointsResponse) UnmarshalJSON added in v0.0.35

func (c *CountPointsResponse) UnmarshalJSON(data []byte) error

type CountRequest added in v0.0.35

type CountRequest struct {
	// Specify in which shards to look for the points, if not specified - look in all shards
	ShardKey *core.Optional[CountRequestShardKey] `json:"shard_key,omitempty"`
	// Look only for points which satisfies this conditions
	Filter *core.Optional[CountRequestFilter] `json:"filter,omitempty"`
	// If true, count exact number of points. If false, count approximate number of points faster. Approximate count might be unreliable during the indexing process. Default: true
	Exact *core.Optional[bool] `json:"exact,omitempty"`
}

type CountRequestFilter added in v0.0.35

type CountRequestFilter struct {
	Filter  *Filter
	Unknown interface{}
	// contains filtered or unexported fields
}

Look only for points which satisfies this conditions

func NewCountRequestFilterFromFilter added in v0.0.35

func NewCountRequestFilterFromFilter(value *Filter) *CountRequestFilter

func NewCountRequestFilterFromUnknown added in v0.0.35

func NewCountRequestFilterFromUnknown(value interface{}) *CountRequestFilter

func (*CountRequestFilter) Accept added in v0.0.35

func (CountRequestFilter) MarshalJSON added in v0.0.35

func (c CountRequestFilter) MarshalJSON() ([]byte, error)

func (*CountRequestFilter) UnmarshalJSON added in v0.0.35

func (c *CountRequestFilter) UnmarshalJSON(data []byte) error

type CountRequestFilterVisitor added in v0.0.35

type CountRequestFilterVisitor interface {
	VisitFilter(*Filter) error
	VisitUnknown(interface{}) error
}

type CountRequestShardKey added in v0.0.35

type CountRequestShardKey struct {
	ShardKeySelector *ShardKeySelector
	Unknown          interface{}
	// contains filtered or unexported fields
}

Specify in which shards to look for the points, if not specified - look in all shards

func NewCountRequestShardKeyFromShardKeySelector added in v0.0.35

func NewCountRequestShardKeyFromShardKeySelector(value *ShardKeySelector) *CountRequestShardKey

func NewCountRequestShardKeyFromUnknown added in v0.0.35

func NewCountRequestShardKeyFromUnknown(value interface{}) *CountRequestShardKey

func (*CountRequestShardKey) Accept added in v0.0.35

func (CountRequestShardKey) MarshalJSON added in v0.0.35

func (c CountRequestShardKey) MarshalJSON() ([]byte, error)

func (*CountRequestShardKey) UnmarshalJSON added in v0.0.35

func (c *CountRequestShardKey) UnmarshalJSON(data []byte) error

type CountRequestShardKeyVisitor added in v0.0.35

type CountRequestShardKeyVisitor interface {
	VisitShardKeySelector(*ShardKeySelector) error
	VisitUnknown(interface{}) error
}

type CountResult added in v0.0.35

type CountResult struct {
	// Number of points which satisfy the conditions
	Count int `json:"count"`
	// contains filtered or unexported fields
}

func (*CountResult) String added in v0.0.35

func (c *CountResult) String() string

func (*CountResult) UnmarshalJSON added in v0.0.35

func (c *CountResult) UnmarshalJSON(data []byte) error

type CreateAlias added in v0.0.35

type CreateAlias struct {
	CollectionName string `json:"collection_name"`
	AliasName      string `json:"alias_name"`
	// contains filtered or unexported fields
}

Create alternative name for a collection. Collection will be available under both names for search, retrieve,

func (*CreateAlias) String added in v0.0.35

func (c *CreateAlias) String() string

func (*CreateAlias) UnmarshalJSON added in v0.0.35

func (c *CreateAlias) UnmarshalJSON(data []byte) error

type CreateAliasOperation added in v0.0.35

type CreateAliasOperation struct {
	CreateAlias *CreateAlias `json:"create_alias,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateAliasOperation) String added in v0.0.35

func (c *CreateAliasOperation) String() string

func (*CreateAliasOperation) UnmarshalJSON added in v0.0.35

func (c *CreateAliasOperation) UnmarshalJSON(data []byte) error

type CreateCollection added in v0.0.35

type CreateCollection struct {
	// Wait for operation commit timeout in seconds.
	// If timeout is reached - request will return with service error.
	Timeout *int                          `json:"-"`
	Vectors *core.Optional[VectorsConfig] `json:"vectors,omitempty"`
	// For auto sharding: Number of shards in collection. - Default is 1 for standalone, otherwise equal to the number of nodes - Minimum is 1 For custom sharding: Number of shards in collection per shard group. - Default is 1, meaning that each shard key will be mapped to a single shard - Minimum is 1
	ShardNumber *core.Optional[int] `json:"shard_number,omitempty"`
	// Sharding method Default is Auto - points are distributed across all available shards Custom - points are distributed across shards according to shard key
	ShardingMethod *core.Optional[CreateCollectionShardingMethod] `json:"sharding_method,omitempty"`
	// Number of shards replicas. Default is 1 Minimum is 1
	ReplicationFactor *core.Optional[int] `json:"replication_factor,omitempty"`
	// Defines how many replicas should apply the operation for us to consider it successful. Increasing this number will make the collection more resilient to inconsistencies, but will also make it fail if not enough replicas are available. Does not have any performance impact.
	WriteConsistencyFactor *core.Optional[int] `json:"write_consistency_factor,omitempty"`
	// If true - point's payload will not be stored in memory. It will be read from the disk every time it is requested. This setting saves RAM by (slightly) increasing the response time. Note: those payload values that are involved in filtering and are indexed - remain in RAM.
	OnDiskPayload *core.Optional[bool] `json:"on_disk_payload,omitempty"`
	// Custom params for HNSW index. If none - values from service configuration file are used.
	HnswConfig *core.Optional[CreateCollectionHnswConfig] `json:"hnsw_config,omitempty"`
	// Custom params for WAL. If none - values from service configuration file are used.
	WalConfig *core.Optional[CreateCollectionWalConfig] `json:"wal_config,omitempty"`
	// Custom params for Optimizers.  If none - values from service configuration file are used.
	OptimizersConfig *core.Optional[CreateCollectionOptimizersConfig] `json:"optimizers_config,omitempty"`
	// Specify other collection to copy data from.
	InitFrom *core.Optional[CreateCollectionInitFrom] `json:"init_from,omitempty"`
	// Quantization parameters. If none - quantization is disabled.
	QuantizationConfig *core.Optional[CreateCollectionQuantizationConfig] `json:"quantization_config,omitempty"`
	// Sparse vector data config.
	SparseVectors *core.Optional[map[string]*SparseVectorParams] `json:"sparse_vectors,omitempty"`
}

type CreateCollectionHnswConfig added in v0.0.35

type CreateCollectionHnswConfig struct {
	HnswConfigDiff *HnswConfigDiff
	Unknown        interface{}
	// contains filtered or unexported fields
}

Custom params for HNSW index. If none - values from service configuration file are used.

func NewCreateCollectionHnswConfigFromHnswConfigDiff added in v0.0.35

func NewCreateCollectionHnswConfigFromHnswConfigDiff(value *HnswConfigDiff) *CreateCollectionHnswConfig

func NewCreateCollectionHnswConfigFromUnknown added in v0.0.35

func NewCreateCollectionHnswConfigFromUnknown(value interface{}) *CreateCollectionHnswConfig

func (*CreateCollectionHnswConfig) Accept added in v0.0.35

func (CreateCollectionHnswConfig) MarshalJSON added in v0.0.35

func (c CreateCollectionHnswConfig) MarshalJSON() ([]byte, error)

func (*CreateCollectionHnswConfig) UnmarshalJSON added in v0.0.35

func (c *CreateCollectionHnswConfig) UnmarshalJSON(data []byte) error

type CreateCollectionHnswConfigVisitor added in v0.0.35

type CreateCollectionHnswConfigVisitor interface {
	VisitHnswConfigDiff(*HnswConfigDiff) error
	VisitUnknown(interface{}) error
}

type CreateCollectionInitFrom added in v0.0.35

type CreateCollectionInitFrom struct {
	InitFrom *InitFrom
	Unknown  interface{}
	// contains filtered or unexported fields
}

Specify other collection to copy data from.

func NewCreateCollectionInitFromFromInitFrom added in v0.0.35

func NewCreateCollectionInitFromFromInitFrom(value *InitFrom) *CreateCollectionInitFrom

func NewCreateCollectionInitFromFromUnknown added in v0.0.35

func NewCreateCollectionInitFromFromUnknown(value interface{}) *CreateCollectionInitFrom

func (*CreateCollectionInitFrom) Accept added in v0.0.35

func (CreateCollectionInitFrom) MarshalJSON added in v0.0.35

func (c CreateCollectionInitFrom) MarshalJSON() ([]byte, error)

func (*CreateCollectionInitFrom) UnmarshalJSON added in v0.0.35

func (c *CreateCollectionInitFrom) UnmarshalJSON(data []byte) error

type CreateCollectionInitFromVisitor added in v0.0.35

type CreateCollectionInitFromVisitor interface {
	VisitInitFrom(*InitFrom) error
	VisitUnknown(interface{}) error
}

type CreateCollectionOptimizersConfig added in v0.0.35

type CreateCollectionOptimizersConfig struct {
	OptimizersConfigDiff *OptimizersConfigDiff
	Unknown              interface{}
	// contains filtered or unexported fields
}

Custom params for Optimizers. If none - values from service configuration file are used.

func NewCreateCollectionOptimizersConfigFromOptimizersConfigDiff added in v0.0.35

func NewCreateCollectionOptimizersConfigFromOptimizersConfigDiff(value *OptimizersConfigDiff) *CreateCollectionOptimizersConfig

func NewCreateCollectionOptimizersConfigFromUnknown added in v0.0.35

func NewCreateCollectionOptimizersConfigFromUnknown(value interface{}) *CreateCollectionOptimizersConfig

func (*CreateCollectionOptimizersConfig) Accept added in v0.0.35

func (CreateCollectionOptimizersConfig) MarshalJSON added in v0.0.35

func (c CreateCollectionOptimizersConfig) MarshalJSON() ([]byte, error)

func (*CreateCollectionOptimizersConfig) UnmarshalJSON added in v0.0.35

func (c *CreateCollectionOptimizersConfig) UnmarshalJSON(data []byte) error

type CreateCollectionOptimizersConfigVisitor added in v0.0.35

type CreateCollectionOptimizersConfigVisitor interface {
	VisitOptimizersConfigDiff(*OptimizersConfigDiff) error
	VisitUnknown(interface{}) error
}

type CreateCollectionQuantizationConfig added in v0.0.35

type CreateCollectionQuantizationConfig struct {
	QuantizationConfig *QuantizationConfig
	Unknown            interface{}
	// contains filtered or unexported fields
}

Quantization parameters. If none - quantization is disabled.

func NewCreateCollectionQuantizationConfigFromQuantizationConfig added in v0.0.35

func NewCreateCollectionQuantizationConfigFromQuantizationConfig(value *QuantizationConfig) *CreateCollectionQuantizationConfig

func NewCreateCollectionQuantizationConfigFromUnknown added in v0.0.35

func NewCreateCollectionQuantizationConfigFromUnknown(value interface{}) *CreateCollectionQuantizationConfig

func (*CreateCollectionQuantizationConfig) Accept added in v0.0.35

func (CreateCollectionQuantizationConfig) MarshalJSON added in v0.0.35

func (c CreateCollectionQuantizationConfig) MarshalJSON() ([]byte, error)

func (*CreateCollectionQuantizationConfig) UnmarshalJSON added in v0.0.35

func (c *CreateCollectionQuantizationConfig) UnmarshalJSON(data []byte) error

type CreateCollectionQuantizationConfigVisitor added in v0.0.35

type CreateCollectionQuantizationConfigVisitor interface {
	VisitQuantizationConfig(*QuantizationConfig) error
	VisitUnknown(interface{}) error
}

type CreateCollectionResponse added in v0.0.35

type CreateCollectionResponse struct {
	// Time spent to process this request
	Time   *float64 `json:"time,omitempty"`
	Status *string  `json:"status,omitempty"`
	Result *bool    `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateCollectionResponse) String added in v0.0.35

func (c *CreateCollectionResponse) String() string

func (*CreateCollectionResponse) UnmarshalJSON added in v0.0.35

func (c *CreateCollectionResponse) UnmarshalJSON(data []byte) error

type CreateCollectionShardingMethod added in v0.0.35

type CreateCollectionShardingMethod struct {
	ShardingMethod ShardingMethod
	Unknown        interface{}
	// contains filtered or unexported fields
}

Sharding method Default is Auto - points are distributed across all available shards Custom - points are distributed across shards according to shard key

func NewCreateCollectionShardingMethodFromShardingMethod added in v0.0.35

func NewCreateCollectionShardingMethodFromShardingMethod(value ShardingMethod) *CreateCollectionShardingMethod

func NewCreateCollectionShardingMethodFromUnknown added in v0.0.35

func NewCreateCollectionShardingMethodFromUnknown(value interface{}) *CreateCollectionShardingMethod

func (*CreateCollectionShardingMethod) Accept added in v0.0.35

func (CreateCollectionShardingMethod) MarshalJSON added in v0.0.35

func (c CreateCollectionShardingMethod) MarshalJSON() ([]byte, error)

func (*CreateCollectionShardingMethod) UnmarshalJSON added in v0.0.35

func (c *CreateCollectionShardingMethod) UnmarshalJSON(data []byte) error

type CreateCollectionShardingMethodVisitor added in v0.0.35

type CreateCollectionShardingMethodVisitor interface {
	VisitShardingMethod(ShardingMethod) error
	VisitUnknown(interface{}) error
}

type CreateCollectionWalConfig added in v0.0.35

type CreateCollectionWalConfig struct {
	WalConfigDiff *WalConfigDiff
	Unknown       interface{}
	// contains filtered or unexported fields
}

Custom params for WAL. If none - values from service configuration file are used.

func NewCreateCollectionWalConfigFromUnknown added in v0.0.35

func NewCreateCollectionWalConfigFromUnknown(value interface{}) *CreateCollectionWalConfig

func NewCreateCollectionWalConfigFromWalConfigDiff added in v0.0.35

func NewCreateCollectionWalConfigFromWalConfigDiff(value *WalConfigDiff) *CreateCollectionWalConfig

func (*CreateCollectionWalConfig) Accept added in v0.0.35

func (CreateCollectionWalConfig) MarshalJSON added in v0.0.35

func (c CreateCollectionWalConfig) MarshalJSON() ([]byte, error)

func (*CreateCollectionWalConfig) UnmarshalJSON added in v0.0.35

func (c *CreateCollectionWalConfig) UnmarshalJSON(data []byte) error

type CreateCollectionWalConfigVisitor added in v0.0.35

type CreateCollectionWalConfigVisitor interface {
	VisitWalConfigDiff(*WalConfigDiff) error
	VisitUnknown(interface{}) error
}

type CreateFieldIndex added in v0.0.35

type CreateFieldIndex struct {
	// If true, wait for changes to actually happen
	Wait *bool `json:"-"`
	// define ordering guarantees for the operation
	Ordering    *WriteOrdering                              `json:"-"`
	FieldName   string                                      `json:"field_name"`
	FieldSchema *core.Optional[CreateFieldIndexFieldSchema] `json:"field_schema,omitempty"`
}

type CreateFieldIndexFieldSchema added in v0.0.35

type CreateFieldIndexFieldSchema struct {
	PayloadFieldSchema *PayloadFieldSchema
	Unknown            interface{}
	// contains filtered or unexported fields
}

func NewCreateFieldIndexFieldSchemaFromPayloadFieldSchema added in v0.0.35

func NewCreateFieldIndexFieldSchemaFromPayloadFieldSchema(value *PayloadFieldSchema) *CreateFieldIndexFieldSchema

func NewCreateFieldIndexFieldSchemaFromUnknown added in v0.0.35

func NewCreateFieldIndexFieldSchemaFromUnknown(value interface{}) *CreateFieldIndexFieldSchema

func (*CreateFieldIndexFieldSchema) Accept added in v0.0.35

func (CreateFieldIndexFieldSchema) MarshalJSON added in v0.0.35

func (c CreateFieldIndexFieldSchema) MarshalJSON() ([]byte, error)

func (*CreateFieldIndexFieldSchema) UnmarshalJSON added in v0.0.35

func (c *CreateFieldIndexFieldSchema) UnmarshalJSON(data []byte) error

type CreateFieldIndexFieldSchemaVisitor added in v0.0.35

type CreateFieldIndexFieldSchemaVisitor interface {
	VisitPayloadFieldSchema(*PayloadFieldSchema) error
	VisitUnknown(interface{}) error
}

type CreateFieldIndexResponse added in v0.0.35

type CreateFieldIndexResponse struct {
	// Time spent to process this request
	Time   *float64      `json:"time,omitempty"`
	Status *string       `json:"status,omitempty"`
	Result *UpdateResult `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateFieldIndexResponse) String added in v0.0.35

func (c *CreateFieldIndexResponse) String() string

func (*CreateFieldIndexResponse) UnmarshalJSON added in v0.0.35

func (c *CreateFieldIndexResponse) UnmarshalJSON(data []byte) error

type CreateFullSnapshotRequest added in v0.0.35

type CreateFullSnapshotRequest struct {
	// If true, wait for changes to actually happen. If false - let changes happen in background. Default is true.
	Wait *bool `json:"-"`
}

type CreateFullSnapshotResponse added in v0.0.35

type CreateFullSnapshotResponse struct {
	// Time spent to process this request
	Time   *float64             `json:"time,omitempty"`
	Status *string              `json:"status,omitempty"`
	Result *SnapshotDescription `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateFullSnapshotResponse) String added in v0.0.35

func (c *CreateFullSnapshotResponse) String() string

func (*CreateFullSnapshotResponse) UnmarshalJSON added in v0.0.35

func (c *CreateFullSnapshotResponse) UnmarshalJSON(data []byte) error

type CreateShardKeyRequest added in v0.0.35

type CreateShardKeyRequest struct {
	// Wait for operation commit timeout in seconds.
	// If timeout is reached - request will return with service error.
	Timeout *int               `json:"-"`
	Body    *CreateShardingKey `json:"-"`
}

func (*CreateShardKeyRequest) MarshalJSON added in v0.0.35

func (c *CreateShardKeyRequest) MarshalJSON() ([]byte, error)

func (*CreateShardKeyRequest) UnmarshalJSON added in v0.0.35

func (c *CreateShardKeyRequest) UnmarshalJSON(data []byte) error

type CreateShardKeyResponse added in v0.0.35

type CreateShardKeyResponse struct {
	// Time spent to process this request
	Time   *float64 `json:"time,omitempty"`
	Status *string  `json:"status,omitempty"`
	Result *bool    `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateShardKeyResponse) String added in v0.0.35

func (c *CreateShardKeyResponse) String() string

func (*CreateShardKeyResponse) UnmarshalJSON added in v0.0.35

func (c *CreateShardKeyResponse) UnmarshalJSON(data []byte) error

type CreateShardSnapshotRequest added in v0.0.35

type CreateShardSnapshotRequest struct {
	// If true, wait for changes to actually happen. If false - let changes happen in background. Default is true.
	Wait *bool `json:"-"`
}

type CreateShardSnapshotResponse added in v0.0.35

type CreateShardSnapshotResponse struct {
	// Time spent to process this request
	Time   *float64             `json:"time,omitempty"`
	Status *string              `json:"status,omitempty"`
	Result *SnapshotDescription `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateShardSnapshotResponse) String added in v0.0.35

func (c *CreateShardSnapshotResponse) String() string

func (*CreateShardSnapshotResponse) UnmarshalJSON added in v0.0.35

func (c *CreateShardSnapshotResponse) UnmarshalJSON(data []byte) error

type CreateShardingKey added in v0.0.35

type CreateShardingKey struct {
	ShardKey *ShardKey `json:"shard_key,omitempty"`
	// How many shards to create for this key If not specified, will use the default value from config
	ShardsNumber *int `json:"shards_number,omitempty"`
	// How many replicas to create for each shard If not specified, will use the default value from config
	ReplicationFactor *int `json:"replication_factor,omitempty"`
	// Placement of shards for this key List of peer ids, that can be used to place shards for this key If not specified, will be randomly placed among all peers
	Placement []int `json:"placement,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateShardingKey) String added in v0.0.35

func (c *CreateShardingKey) String() string

func (*CreateShardingKey) UnmarshalJSON added in v0.0.35

func (c *CreateShardingKey) UnmarshalJSON(data []byte) error

type CreateShardingKeyOperation added in v0.0.35

type CreateShardingKeyOperation struct {
	CreateShardingKey *CreateShardingKey `json:"create_sharding_key,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateShardingKeyOperation) String added in v0.0.35

func (c *CreateShardingKeyOperation) String() string

func (*CreateShardingKeyOperation) UnmarshalJSON added in v0.0.35

func (c *CreateShardingKeyOperation) UnmarshalJSON(data []byte) error

type CreateSnapshotRequest added in v0.0.35

type CreateSnapshotRequest struct {
	// If true, wait for changes to actually happen. If false - let changes happen in background. Default is true.
	Wait *bool `json:"-"`
}

type CreateSnapshotResponse added in v0.0.35

type CreateSnapshotResponse struct {
	// Time spent to process this request
	Time   *float64             `json:"time,omitempty"`
	Status *string              `json:"status,omitempty"`
	Result *SnapshotDescription `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateSnapshotResponse) String added in v0.0.35

func (c *CreateSnapshotResponse) String() string

func (*CreateSnapshotResponse) UnmarshalJSON added in v0.0.35

func (c *CreateSnapshotResponse) UnmarshalJSON(data []byte) error

type DeleteAlias added in v0.0.35

type DeleteAlias struct {
	AliasName string `json:"alias_name"`
	// contains filtered or unexported fields
}

Delete alias if exists

func (*DeleteAlias) String added in v0.0.35

func (d *DeleteAlias) String() string

func (*DeleteAlias) UnmarshalJSON added in v0.0.35

func (d *DeleteAlias) UnmarshalJSON(data []byte) error

type DeleteAliasOperation added in v0.0.35

type DeleteAliasOperation struct {
	DeleteAlias *DeleteAlias `json:"delete_alias,omitempty"`
	// contains filtered or unexported fields
}

Delete alias if exists

func (*DeleteAliasOperation) String added in v0.0.35

func (d *DeleteAliasOperation) String() string

func (*DeleteAliasOperation) UnmarshalJSON added in v0.0.35

func (d *DeleteAliasOperation) UnmarshalJSON(data []byte) error

type DeleteCollectionRequest added in v0.0.35

type DeleteCollectionRequest struct {
	// Wait for operation commit timeout in seconds.
	// If timeout is reached - request will return with service error.
	Timeout *int `json:"-"`
}

type DeleteCollectionResponse added in v0.0.35

type DeleteCollectionResponse struct {
	// Time spent to process this request
	Time   *float64 `json:"time,omitempty"`
	Status *string  `json:"status,omitempty"`
	Result *bool    `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteCollectionResponse) String added in v0.0.35

func (d *DeleteCollectionResponse) String() string

func (*DeleteCollectionResponse) UnmarshalJSON added in v0.0.35

func (d *DeleteCollectionResponse) UnmarshalJSON(data []byte) error

type DeleteFieldIndexRequest added in v0.0.35

type DeleteFieldIndexRequest struct {
	// If true, wait for changes to actually happen
	Wait *bool `json:"-"`
	// define ordering guarantees for the operation
	Ordering *WriteOrdering `json:"-"`
}

type DeleteFieldIndexResponse added in v0.0.35

type DeleteFieldIndexResponse struct {
	// Time spent to process this request
	Time   *float64      `json:"time,omitempty"`
	Status *string       `json:"status,omitempty"`
	Result *UpdateResult `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteFieldIndexResponse) String added in v0.0.35

func (d *DeleteFieldIndexResponse) String() string

func (*DeleteFieldIndexResponse) UnmarshalJSON added in v0.0.35

func (d *DeleteFieldIndexResponse) UnmarshalJSON(data []byte) error

type DeleteFullSnapshotRequest added in v0.0.35

type DeleteFullSnapshotRequest struct {
	// If true, wait for changes to actually happen. If false - let changes happen in background. Default is true.
	Wait *bool `json:"-"`
}

type DeleteFullSnapshotResponse added in v0.0.35

type DeleteFullSnapshotResponse struct {
	// Time spent to process this request
	Time   *float64 `json:"time,omitempty"`
	Status *string  `json:"status,omitempty"`
	Result *bool    `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteFullSnapshotResponse) String added in v0.0.35

func (d *DeleteFullSnapshotResponse) String() string

func (*DeleteFullSnapshotResponse) UnmarshalJSON added in v0.0.35

func (d *DeleteFullSnapshotResponse) UnmarshalJSON(data []byte) error

type DeleteOperation added in v0.0.35

type DeleteOperation struct {
	Delete *PointsSelector `json:"delete,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteOperation) String added in v0.0.35

func (d *DeleteOperation) String() string

func (*DeleteOperation) UnmarshalJSON added in v0.0.35

func (d *DeleteOperation) UnmarshalJSON(data []byte) error

type DeletePayload added in v0.0.35

type DeletePayload struct {
	// List of payload keys to remove from payload
	Keys []string `json:"keys,omitempty"`
	// Deletes values from each point in this list
	Points []*ExtendedPointId `json:"points,omitempty"`
	// Deletes values from points that satisfy this filter condition
	Filter   *DeletePayloadFilter   `json:"filter,omitempty"`
	ShardKey *DeletePayloadShardKey `json:"shard_key,omitempty"`
	// contains filtered or unexported fields
}

This data structure is used in API interface and applied across multiple shards

func (*DeletePayload) String added in v0.0.35

func (d *DeletePayload) String() string

func (*DeletePayload) UnmarshalJSON added in v0.0.35

func (d *DeletePayload) UnmarshalJSON(data []byte) error

type DeletePayloadFilter added in v0.0.35

type DeletePayloadFilter struct {
	Filter  *Filter
	Unknown interface{}
	// contains filtered or unexported fields
}

Deletes values from points that satisfy this filter condition

func NewDeletePayloadFilterFromFilter added in v0.0.35

func NewDeletePayloadFilterFromFilter(value *Filter) *DeletePayloadFilter

func NewDeletePayloadFilterFromUnknown added in v0.0.35

func NewDeletePayloadFilterFromUnknown(value interface{}) *DeletePayloadFilter

func (*DeletePayloadFilter) Accept added in v0.0.35

func (DeletePayloadFilter) MarshalJSON added in v0.0.35

func (d DeletePayloadFilter) MarshalJSON() ([]byte, error)

func (*DeletePayloadFilter) UnmarshalJSON added in v0.0.35

func (d *DeletePayloadFilter) UnmarshalJSON(data []byte) error

type DeletePayloadFilterVisitor added in v0.0.35

type DeletePayloadFilterVisitor interface {
	VisitFilter(*Filter) error
	VisitUnknown(interface{}) error
}

type DeletePayloadOperation added in v0.0.35

type DeletePayloadOperation struct {
	DeletePayload *DeletePayload `json:"delete_payload,omitempty"`
	// contains filtered or unexported fields
}

func (*DeletePayloadOperation) String added in v0.0.35

func (d *DeletePayloadOperation) String() string

func (*DeletePayloadOperation) UnmarshalJSON added in v0.0.35

func (d *DeletePayloadOperation) UnmarshalJSON(data []byte) error

type DeletePayloadRequest added in v0.0.35

type DeletePayloadRequest struct {
	// If true, wait for changes to actually happen
	Wait *bool `json:"-"`
	// define ordering guarantees for the operation
	Ordering *WriteOrdering `json:"-"`
	Body     *DeletePayload `json:"-"`
}

func (*DeletePayloadRequest) MarshalJSON added in v0.0.35

func (d *DeletePayloadRequest) MarshalJSON() ([]byte, error)

func (*DeletePayloadRequest) UnmarshalJSON added in v0.0.35

func (d *DeletePayloadRequest) UnmarshalJSON(data []byte) error

type DeletePayloadResponse added in v0.0.35

type DeletePayloadResponse struct {
	// Time spent to process this request
	Time   *float64      `json:"time,omitempty"`
	Status *string       `json:"status,omitempty"`
	Result *UpdateResult `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*DeletePayloadResponse) String added in v0.0.35

func (d *DeletePayloadResponse) String() string

func (*DeletePayloadResponse) UnmarshalJSON added in v0.0.35

func (d *DeletePayloadResponse) UnmarshalJSON(data []byte) error

type DeletePayloadShardKey added in v0.0.35

type DeletePayloadShardKey struct {
	ShardKeySelector *ShardKeySelector
	Unknown          interface{}
	// contains filtered or unexported fields
}

func NewDeletePayloadShardKeyFromShardKeySelector added in v0.0.35

func NewDeletePayloadShardKeyFromShardKeySelector(value *ShardKeySelector) *DeletePayloadShardKey

func NewDeletePayloadShardKeyFromUnknown added in v0.0.35

func NewDeletePayloadShardKeyFromUnknown(value interface{}) *DeletePayloadShardKey

func (*DeletePayloadShardKey) Accept added in v0.0.35

func (DeletePayloadShardKey) MarshalJSON added in v0.0.35

func (d DeletePayloadShardKey) MarshalJSON() ([]byte, error)

func (*DeletePayloadShardKey) UnmarshalJSON added in v0.0.35

func (d *DeletePayloadShardKey) UnmarshalJSON(data []byte) error

type DeletePayloadShardKeyVisitor added in v0.0.35

type DeletePayloadShardKeyVisitor interface {
	VisitShardKeySelector(*ShardKeySelector) error
	VisitUnknown(interface{}) error
}

type DeletePointsRequest added in v0.0.35

type DeletePointsRequest struct {
	// If true, wait for changes to actually happen
	Wait *bool `json:"-"`
	// define ordering guarantees for the operation
	Ordering *WriteOrdering  `json:"-"`
	Body     *PointsSelector `json:"-"`
}

func (*DeletePointsRequest) MarshalJSON added in v0.0.35

func (d *DeletePointsRequest) MarshalJSON() ([]byte, error)

func (*DeletePointsRequest) UnmarshalJSON added in v0.0.35

func (d *DeletePointsRequest) UnmarshalJSON(data []byte) error

type DeletePointsResponse added in v0.0.35

type DeletePointsResponse struct {
	// Time spent to process this request
	Time   *float64      `json:"time,omitempty"`
	Status *string       `json:"status,omitempty"`
	Result *UpdateResult `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*DeletePointsResponse) String added in v0.0.35

func (d *DeletePointsResponse) String() string

func (*DeletePointsResponse) UnmarshalJSON added in v0.0.35

func (d *DeletePointsResponse) UnmarshalJSON(data []byte) error

type DeleteShardKeyRequest added in v0.0.35

type DeleteShardKeyRequest struct {
	// Wait for operation commit timeout in seconds.
	// If timeout is reached - request will return with service error.
	Timeout *int             `json:"-"`
	Body    *DropShardingKey `json:"-"`
}

func (*DeleteShardKeyRequest) MarshalJSON added in v0.0.35

func (d *DeleteShardKeyRequest) MarshalJSON() ([]byte, error)

func (*DeleteShardKeyRequest) UnmarshalJSON added in v0.0.35

func (d *DeleteShardKeyRequest) UnmarshalJSON(data []byte) error

type DeleteShardKeyResponse added in v0.0.35

type DeleteShardKeyResponse struct {
	// Time spent to process this request
	Time   *float64 `json:"time,omitempty"`
	Status *string  `json:"status,omitempty"`
	Result *bool    `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteShardKeyResponse) String added in v0.0.35

func (d *DeleteShardKeyResponse) String() string

func (*DeleteShardKeyResponse) UnmarshalJSON added in v0.0.35

func (d *DeleteShardKeyResponse) UnmarshalJSON(data []byte) error

type DeleteShardSnapshotRequest added in v0.0.35

type DeleteShardSnapshotRequest struct {
	// If true, wait for changes to actually happen. If false - let changes happen in background. Default is true.
	Wait *bool `json:"-"`
}

type DeleteShardSnapshotResponse added in v0.0.35

type DeleteShardSnapshotResponse struct {
	// Time spent to process this request
	Time   *float64 `json:"time,omitempty"`
	Status *string  `json:"status,omitempty"`
	Result *bool    `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteShardSnapshotResponse) String added in v0.0.35

func (d *DeleteShardSnapshotResponse) String() string

func (*DeleteShardSnapshotResponse) UnmarshalJSON added in v0.0.35

func (d *DeleteShardSnapshotResponse) UnmarshalJSON(data []byte) error

type DeleteSnapshotRequest added in v0.0.35

type DeleteSnapshotRequest struct {
	// If true, wait for changes to actually happen. If false - let changes happen in background. Default is true.
	Wait *bool `json:"-"`
}

type DeleteSnapshotResponse added in v0.0.35

type DeleteSnapshotResponse struct {
	// Time spent to process this request
	Time   *float64 `json:"time,omitempty"`
	Status *string  `json:"status,omitempty"`
	Result *bool    `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteSnapshotResponse) String added in v0.0.35

func (d *DeleteSnapshotResponse) String() string

func (*DeleteSnapshotResponse) UnmarshalJSON added in v0.0.35

func (d *DeleteSnapshotResponse) UnmarshalJSON(data []byte) error

type DeleteVectors added in v0.0.35

type DeleteVectors struct {
	// Deletes values from each point in this list
	Points []*ExtendedPointId `json:"points,omitempty"`
	// Deletes values from points that satisfy this filter condition
	Filter *DeleteVectorsFilter `json:"filter,omitempty"`
	// Vector names
	Vector   []string               `json:"vector,omitempty"`
	ShardKey *DeleteVectorsShardKey `json:"shard_key,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteVectors) String added in v0.0.35

func (d *DeleteVectors) String() string

func (*DeleteVectors) UnmarshalJSON added in v0.0.35

func (d *DeleteVectors) UnmarshalJSON(data []byte) error

type DeleteVectorsFilter added in v0.0.35

type DeleteVectorsFilter struct {
	Filter  *Filter
	Unknown interface{}
	// contains filtered or unexported fields
}

Deletes values from points that satisfy this filter condition

func NewDeleteVectorsFilterFromFilter added in v0.0.35

func NewDeleteVectorsFilterFromFilter(value *Filter) *DeleteVectorsFilter

func NewDeleteVectorsFilterFromUnknown added in v0.0.35

func NewDeleteVectorsFilterFromUnknown(value interface{}) *DeleteVectorsFilter

func (*DeleteVectorsFilter) Accept added in v0.0.35

func (DeleteVectorsFilter) MarshalJSON added in v0.0.35

func (d DeleteVectorsFilter) MarshalJSON() ([]byte, error)

func (*DeleteVectorsFilter) UnmarshalJSON added in v0.0.35

func (d *DeleteVectorsFilter) UnmarshalJSON(data []byte) error

type DeleteVectorsFilterVisitor added in v0.0.35

type DeleteVectorsFilterVisitor interface {
	VisitFilter(*Filter) error
	VisitUnknown(interface{}) error
}

type DeleteVectorsOperation added in v0.0.35

type DeleteVectorsOperation struct {
	DeleteVectors *DeleteVectors `json:"delete_vectors,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteVectorsOperation) String added in v0.0.35

func (d *DeleteVectorsOperation) String() string

func (*DeleteVectorsOperation) UnmarshalJSON added in v0.0.35

func (d *DeleteVectorsOperation) UnmarshalJSON(data []byte) error

type DeleteVectorsRequest added in v0.0.35

type DeleteVectorsRequest struct {
	// If true, wait for changes to actually happen
	Wait *bool `json:"-"`
	// define ordering guarantees for the operation
	Ordering *WriteOrdering `json:"-"`
	Body     *DeleteVectors `json:"-"`
}

func (*DeleteVectorsRequest) MarshalJSON added in v0.0.35

func (d *DeleteVectorsRequest) MarshalJSON() ([]byte, error)

func (*DeleteVectorsRequest) UnmarshalJSON added in v0.0.35

func (d *DeleteVectorsRequest) UnmarshalJSON(data []byte) error

type DeleteVectorsResponse added in v0.0.35

type DeleteVectorsResponse struct {
	// Time spent to process this request
	Time   *float64      `json:"time,omitempty"`
	Status *string       `json:"status,omitempty"`
	Result *UpdateResult `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteVectorsResponse) String added in v0.0.35

func (d *DeleteVectorsResponse) String() string

func (*DeleteVectorsResponse) UnmarshalJSON added in v0.0.35

func (d *DeleteVectorsResponse) UnmarshalJSON(data []byte) error

type DeleteVectorsShardKey added in v0.0.35

type DeleteVectorsShardKey struct {
	ShardKeySelector *ShardKeySelector
	Unknown          interface{}
	// contains filtered or unexported fields
}

func NewDeleteVectorsShardKeyFromShardKeySelector added in v0.0.35

func NewDeleteVectorsShardKeyFromShardKeySelector(value *ShardKeySelector) *DeleteVectorsShardKey

func NewDeleteVectorsShardKeyFromUnknown added in v0.0.35

func NewDeleteVectorsShardKeyFromUnknown(value interface{}) *DeleteVectorsShardKey

func (*DeleteVectorsShardKey) Accept added in v0.0.35

func (DeleteVectorsShardKey) MarshalJSON added in v0.0.35

func (d DeleteVectorsShardKey) MarshalJSON() ([]byte, error)

func (*DeleteVectorsShardKey) UnmarshalJSON added in v0.0.35

func (d *DeleteVectorsShardKey) UnmarshalJSON(data []byte) error

type DeleteVectorsShardKeyVisitor added in v0.0.35

type DeleteVectorsShardKeyVisitor interface {
	VisitShardKeySelector(*ShardKeySelector) error
	VisitUnknown(interface{}) error
}

type Disabled added in v0.0.35

type Disabled = string

type DiscoverBatchPointsResponse added in v0.0.35

type DiscoverBatchPointsResponse struct {
	// Time spent to process this request
	Time   *float64         `json:"time,omitempty"`
	Status *string          `json:"status,omitempty"`
	Result [][]*ScoredPoint `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*DiscoverBatchPointsResponse) String added in v0.0.35

func (d *DiscoverBatchPointsResponse) String() string

func (*DiscoverBatchPointsResponse) UnmarshalJSON added in v0.0.35

func (d *DiscoverBatchPointsResponse) UnmarshalJSON(data []byte) error

type DiscoverPointsRequest added in v0.0.35

type DiscoverPointsRequest struct {
	// If set, overrides global timeout for this request. Unit is seconds.
	Timeout *int             `json:"-"`
	Body    *DiscoverRequest `json:"-"`
}

func (*DiscoverPointsRequest) MarshalJSON added in v0.0.35

func (d *DiscoverPointsRequest) MarshalJSON() ([]byte, error)

func (*DiscoverPointsRequest) UnmarshalJSON added in v0.0.35

func (d *DiscoverPointsRequest) UnmarshalJSON(data []byte) error

type DiscoverPointsResponse added in v0.0.35

type DiscoverPointsResponse struct {
	// Time spent to process this request
	Time   *float64       `json:"time,omitempty"`
	Status *string        `json:"status,omitempty"`
	Result []*ScoredPoint `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*DiscoverPointsResponse) String added in v0.0.35

func (d *DiscoverPointsResponse) String() string

func (*DiscoverPointsResponse) UnmarshalJSON added in v0.0.35

func (d *DiscoverPointsResponse) UnmarshalJSON(data []byte) error

type DiscoverRequest added in v0.0.35

type DiscoverRequest struct {
	// Specify in which shards to look for the points, if not specified - look in all shards
	ShardKey *DiscoverRequestShardKey `json:"shard_key,omitempty"`
	// Look for vectors closest to this.
	//
	// When using the target (with or without context), the integer part of the score represents the rank with respect to the context, while the decimal part of the score relates to the distance to the target.
	Target *DiscoverRequestTarget `json:"target,omitempty"`
	// Pairs of { positive, negative } examples to constrain the search.
	//
	// When using only the context (without a target), a special search - called context search - is performed where pairs of points are used to generate a loss that guides the search towards the zone where most positive examples overlap. This means that the score minimizes the scenario of finding a point closer to a negative than to a positive part of a pair.
	//
	// Since the score of a context relates to loss, the maximum score a point can get is 0.0, and it becomes normal that many points can have a score of 0.0.
	//
	// For discovery search (when including a target), the context part of the score for each pair is calculated +1 if the point is closer to a positive than to a negative part of a pair, and -1 otherwise.
	Context []*ContextExamplePair `json:"context,omitempty"`
	// Look only for points which satisfies this conditions
	Filter *DiscoverRequestFilter `json:"filter,omitempty"`
	// Additional search params
	Params *DiscoverRequestParams `json:"params,omitempty"`
	// Max number of result to return
	Limit int `json:"limit"`
	// Offset of the first result to return. May be used to paginate results. Note: large offset values may cause performance issues.
	Offset *int `json:"offset,omitempty"`
	// Select which payload to return with the response. Default: None
	WithPayload *DiscoverRequestWithPayload `json:"with_payload,omitempty"`
	// Whether to return the point vector with the result?
	WithVector *DiscoverRequestWithVector `json:"with_vector,omitempty"`
	// Define which vector to use for recommendation, if not specified - try to use default vector
	Using *DiscoverRequestUsing `json:"using,omitempty"`
	// The location used to lookup vectors. If not specified - use current collection. Note: the other collection should have the same vector size as the current collection
	LookupFrom *DiscoverRequestLookupFrom `json:"lookup_from,omitempty"`
	// contains filtered or unexported fields
}

Use context and a target to find the most similar points, constrained by the context.

func (*DiscoverRequest) String added in v0.0.35

func (d *DiscoverRequest) String() string

func (*DiscoverRequest) UnmarshalJSON added in v0.0.35

func (d *DiscoverRequest) UnmarshalJSON(data []byte) error

type DiscoverRequestBatch added in v0.0.35

type DiscoverRequestBatch struct {
	// If set, overrides global timeout for this request. Unit is seconds.
	Timeout  *int               `json:"-"`
	Searches []*DiscoverRequest `json:"searches,omitempty"`
}

type DiscoverRequestFilter added in v0.0.35

type DiscoverRequestFilter struct {
	Filter  *Filter
	Unknown interface{}
	// contains filtered or unexported fields
}

Look only for points which satisfies this conditions

func NewDiscoverRequestFilterFromFilter added in v0.0.35

func NewDiscoverRequestFilterFromFilter(value *Filter) *DiscoverRequestFilter

func NewDiscoverRequestFilterFromUnknown added in v0.0.35

func NewDiscoverRequestFilterFromUnknown(value interface{}) *DiscoverRequestFilter

func (*DiscoverRequestFilter) Accept added in v0.0.35

func (DiscoverRequestFilter) MarshalJSON added in v0.0.35

func (d DiscoverRequestFilter) MarshalJSON() ([]byte, error)

func (*DiscoverRequestFilter) UnmarshalJSON added in v0.0.35

func (d *DiscoverRequestFilter) UnmarshalJSON(data []byte) error

type DiscoverRequestFilterVisitor added in v0.0.35

type DiscoverRequestFilterVisitor interface {
	VisitFilter(*Filter) error
	VisitUnknown(interface{}) error
}

type DiscoverRequestLookupFrom added in v0.0.35

type DiscoverRequestLookupFrom struct {
	LookupLocation *LookupLocation
	Unknown        interface{}
	// contains filtered or unexported fields
}

The location used to lookup vectors. If not specified - use current collection. Note: the other collection should have the same vector size as the current collection

func NewDiscoverRequestLookupFromFromLookupLocation added in v0.0.35

func NewDiscoverRequestLookupFromFromLookupLocation(value *LookupLocation) *DiscoverRequestLookupFrom

func NewDiscoverRequestLookupFromFromUnknown added in v0.0.35

func NewDiscoverRequestLookupFromFromUnknown(value interface{}) *DiscoverRequestLookupFrom

func (*DiscoverRequestLookupFrom) Accept added in v0.0.35

func (DiscoverRequestLookupFrom) MarshalJSON added in v0.0.35

func (d DiscoverRequestLookupFrom) MarshalJSON() ([]byte, error)

func (*DiscoverRequestLookupFrom) UnmarshalJSON added in v0.0.35

func (d *DiscoverRequestLookupFrom) UnmarshalJSON(data []byte) error

type DiscoverRequestLookupFromVisitor added in v0.0.35

type DiscoverRequestLookupFromVisitor interface {
	VisitLookupLocation(*LookupLocation) error
	VisitUnknown(interface{}) error
}

type DiscoverRequestParams added in v0.0.35

type DiscoverRequestParams struct {
	SearchParams *SearchParams
	Unknown      interface{}
	// contains filtered or unexported fields
}

Additional search params

func NewDiscoverRequestParamsFromSearchParams added in v0.0.35

func NewDiscoverRequestParamsFromSearchParams(value *SearchParams) *DiscoverRequestParams

func NewDiscoverRequestParamsFromUnknown added in v0.0.35

func NewDiscoverRequestParamsFromUnknown(value interface{}) *DiscoverRequestParams

func (*DiscoverRequestParams) Accept added in v0.0.35

func (DiscoverRequestParams) MarshalJSON added in v0.0.35

func (d DiscoverRequestParams) MarshalJSON() ([]byte, error)

func (*DiscoverRequestParams) UnmarshalJSON added in v0.0.35

func (d *DiscoverRequestParams) UnmarshalJSON(data []byte) error

type DiscoverRequestParamsVisitor added in v0.0.35

type DiscoverRequestParamsVisitor interface {
	VisitSearchParams(*SearchParams) error
	VisitUnknown(interface{}) error
}

type DiscoverRequestShardKey added in v0.0.35

type DiscoverRequestShardKey struct {
	ShardKeySelector *ShardKeySelector
	Unknown          interface{}
	// contains filtered or unexported fields
}

Specify in which shards to look for the points, if not specified - look in all shards

func NewDiscoverRequestShardKeyFromShardKeySelector added in v0.0.35

func NewDiscoverRequestShardKeyFromShardKeySelector(value *ShardKeySelector) *DiscoverRequestShardKey

func NewDiscoverRequestShardKeyFromUnknown added in v0.0.35

func NewDiscoverRequestShardKeyFromUnknown(value interface{}) *DiscoverRequestShardKey

func (*DiscoverRequestShardKey) Accept added in v0.0.35

func (DiscoverRequestShardKey) MarshalJSON added in v0.0.35

func (d DiscoverRequestShardKey) MarshalJSON() ([]byte, error)

func (*DiscoverRequestShardKey) UnmarshalJSON added in v0.0.35

func (d *DiscoverRequestShardKey) UnmarshalJSON(data []byte) error

type DiscoverRequestShardKeyVisitor added in v0.0.35

type DiscoverRequestShardKeyVisitor interface {
	VisitShardKeySelector(*ShardKeySelector) error
	VisitUnknown(interface{}) error
}

type DiscoverRequestTarget added in v0.0.35

type DiscoverRequestTarget struct {
	RecommendExample *RecommendExample
	Unknown          interface{}
	// contains filtered or unexported fields
}

Look for vectors closest to this.

When using the target (with or without context), the integer part of the score represents the rank with respect to the context, while the decimal part of the score relates to the distance to the target.

func NewDiscoverRequestTargetFromRecommendExample added in v0.0.35

func NewDiscoverRequestTargetFromRecommendExample(value *RecommendExample) *DiscoverRequestTarget

func NewDiscoverRequestTargetFromUnknown added in v0.0.35

func NewDiscoverRequestTargetFromUnknown(value interface{}) *DiscoverRequestTarget

func (*DiscoverRequestTarget) Accept added in v0.0.35

func (DiscoverRequestTarget) MarshalJSON added in v0.0.35

func (d DiscoverRequestTarget) MarshalJSON() ([]byte, error)

func (*DiscoverRequestTarget) UnmarshalJSON added in v0.0.35

func (d *DiscoverRequestTarget) UnmarshalJSON(data []byte) error

type DiscoverRequestTargetVisitor added in v0.0.35

type DiscoverRequestTargetVisitor interface {
	VisitRecommendExample(*RecommendExample) error
	VisitUnknown(interface{}) error
}

type DiscoverRequestUsing added in v0.0.35

type DiscoverRequestUsing struct {
	UsingVector UsingVector
	Unknown     interface{}
	// contains filtered or unexported fields
}

Define which vector to use for recommendation, if not specified - try to use default vector

func NewDiscoverRequestUsingFromUnknown added in v0.0.35

func NewDiscoverRequestUsingFromUnknown(value interface{}) *DiscoverRequestUsing

func NewDiscoverRequestUsingFromUsingVector added in v0.0.35

func NewDiscoverRequestUsingFromUsingVector(value UsingVector) *DiscoverRequestUsing

func (*DiscoverRequestUsing) Accept added in v0.0.35

func (DiscoverRequestUsing) MarshalJSON added in v0.0.35

func (d DiscoverRequestUsing) MarshalJSON() ([]byte, error)

func (*DiscoverRequestUsing) UnmarshalJSON added in v0.0.35

func (d *DiscoverRequestUsing) UnmarshalJSON(data []byte) error

type DiscoverRequestUsingVisitor added in v0.0.35

type DiscoverRequestUsingVisitor interface {
	VisitUsingVector(UsingVector) error
	VisitUnknown(interface{}) error
}

type DiscoverRequestWithPayload added in v0.0.35

type DiscoverRequestWithPayload struct {
	WithPayloadInterface *WithPayloadInterface
	Unknown              interface{}
	// contains filtered or unexported fields
}

Select which payload to return with the response. Default: None

func NewDiscoverRequestWithPayloadFromUnknown added in v0.0.35

func NewDiscoverRequestWithPayloadFromUnknown(value interface{}) *DiscoverRequestWithPayload

func NewDiscoverRequestWithPayloadFromWithPayloadInterface added in v0.0.35

func NewDiscoverRequestWithPayloadFromWithPayloadInterface(value *WithPayloadInterface) *DiscoverRequestWithPayload

func (*DiscoverRequestWithPayload) Accept added in v0.0.35

func (DiscoverRequestWithPayload) MarshalJSON added in v0.0.35

func (d DiscoverRequestWithPayload) MarshalJSON() ([]byte, error)

func (*DiscoverRequestWithPayload) UnmarshalJSON added in v0.0.35

func (d *DiscoverRequestWithPayload) UnmarshalJSON(data []byte) error

type DiscoverRequestWithPayloadVisitor added in v0.0.35

type DiscoverRequestWithPayloadVisitor interface {
	VisitWithPayloadInterface(*WithPayloadInterface) error
	VisitUnknown(interface{}) error
}

type DiscoverRequestWithVector added in v0.0.35

type DiscoverRequestWithVector struct {
	WithVector *WithVector
	Unknown    interface{}
	// contains filtered or unexported fields
}

Whether to return the point vector with the result?

func NewDiscoverRequestWithVectorFromUnknown added in v0.0.35

func NewDiscoverRequestWithVectorFromUnknown(value interface{}) *DiscoverRequestWithVector

func NewDiscoverRequestWithVectorFromWithVector added in v0.0.35

func NewDiscoverRequestWithVectorFromWithVector(value *WithVector) *DiscoverRequestWithVector

func (*DiscoverRequestWithVector) Accept added in v0.0.35

func (DiscoverRequestWithVector) MarshalJSON added in v0.0.35

func (d DiscoverRequestWithVector) MarshalJSON() ([]byte, error)

func (*DiscoverRequestWithVector) UnmarshalJSON added in v0.0.35

func (d *DiscoverRequestWithVector) UnmarshalJSON(data []byte) error

type DiscoverRequestWithVectorVisitor added in v0.0.35

type DiscoverRequestWithVectorVisitor interface {
	VisitWithVector(*WithVector) error
	VisitUnknown(interface{}) error
}

type Distance added in v0.0.35

type Distance string

Type of internal tags, build from payload Distance function types used to compare vectors

const (
	DistanceCosine    Distance = "Cosine"
	DistanceEuclid    Distance = "Euclid"
	DistanceDot       Distance = "Dot"
	DistanceManhattan Distance = "Manhattan"
)

func NewDistanceFromString added in v0.0.35

func NewDistanceFromString(s string) (Distance, error)

func (Distance) Ptr added in v0.0.35

func (d Distance) Ptr() *Distance

type DropReplicaOperation added in v0.0.35

type DropReplicaOperation struct {
	DropReplica *Replica `json:"drop_replica,omitempty"`
	// contains filtered or unexported fields
}

func (*DropReplicaOperation) String added in v0.0.35

func (d *DropReplicaOperation) String() string

func (*DropReplicaOperation) UnmarshalJSON added in v0.0.35

func (d *DropReplicaOperation) UnmarshalJSON(data []byte) error

type DropShardingKey added in v0.0.35

type DropShardingKey struct {
	ShardKey *ShardKey `json:"shard_key,omitempty"`
	// contains filtered or unexported fields
}

func (*DropShardingKey) String added in v0.0.35

func (d *DropShardingKey) String() string

func (*DropShardingKey) UnmarshalJSON added in v0.0.35

func (d *DropShardingKey) UnmarshalJSON(data []byte) error

type DropShardingKeyOperation added in v0.0.35

type DropShardingKeyOperation struct {
	DropShardingKey *DropShardingKey `json:"drop_sharding_key,omitempty"`
	// contains filtered or unexported fields
}

func (*DropShardingKeyOperation) String added in v0.0.35

func (d *DropShardingKeyOperation) String() string

func (*DropShardingKeyOperation) UnmarshalJSON added in v0.0.35

func (d *DropShardingKeyOperation) UnmarshalJSON(data []byte) error

type ErrorResponse added in v0.0.35

type ErrorResponse struct {
	// Time spent to process this request
	Time   *float64               `json:"time,omitempty"`
	Status *ErrorResponseStatus   `json:"status,omitempty"`
	Result map[string]interface{} `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*ErrorResponse) String added in v0.0.35

func (e *ErrorResponse) String() string

func (*ErrorResponse) UnmarshalJSON added in v0.0.35

func (e *ErrorResponse) UnmarshalJSON(data []byte) error

type ErrorResponseStatus added in v0.0.35

type ErrorResponseStatus struct {
	// Description of the occurred error.
	Error *string `json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*ErrorResponseStatus) String added in v0.0.35

func (e *ErrorResponseStatus) String() string

func (*ErrorResponseStatus) UnmarshalJSON added in v0.0.35

func (e *ErrorResponseStatus) UnmarshalJSON(data []byte) error

type ExtendedPointId added in v0.0.35

type ExtendedPointId struct {
	Integer int
	String  string
	// contains filtered or unexported fields
}

Type, used for specifying point ID in user interface

func NewExtendedPointIdFromInteger added in v0.0.35

func NewExtendedPointIdFromInteger(value int) *ExtendedPointId

func NewExtendedPointIdFromString added in v0.0.35

func NewExtendedPointIdFromString(value string) *ExtendedPointId

func (*ExtendedPointId) Accept added in v0.0.35

func (e *ExtendedPointId) Accept(visitor ExtendedPointIdVisitor) error

func (ExtendedPointId) MarshalJSON added in v0.0.35

func (e ExtendedPointId) MarshalJSON() ([]byte, error)

func (*ExtendedPointId) UnmarshalJSON added in v0.0.35

func (e *ExtendedPointId) UnmarshalJSON(data []byte) error

type ExtendedPointIdVisitor added in v0.0.35

type ExtendedPointIdVisitor interface {
	VisitInteger(int) error
	VisitString(string) error
}

type FieldCondition added in v0.0.35

type FieldCondition struct {
	// Payload key
	Key string `json:"key"`
	// Check if point has field with a given value
	Match *FieldConditionMatch `json:"match,omitempty"`
	// Check if points value lies in a given range
	Range *FieldConditionRange `json:"range,omitempty"`
	// Check if points geo location lies in a given area
	GeoBoundingBox *FieldConditionGeoBoundingBox `json:"geo_bounding_box,omitempty"`
	// Check if geo point is within a given radius
	GeoRadius *FieldConditionGeoRadius `json:"geo_radius,omitempty"`
	// Check if geo point is within a given polygon
	GeoPolygon *FieldConditionGeoPolygon `json:"geo_polygon,omitempty"`
	// Check number of values of the field
	ValuesCount *FieldConditionValuesCount `json:"values_count,omitempty"`
	// contains filtered or unexported fields
}

All possible payload filtering conditions

func (*FieldCondition) String added in v0.0.35

func (f *FieldCondition) String() string

func (*FieldCondition) UnmarshalJSON added in v0.0.35

func (f *FieldCondition) UnmarshalJSON(data []byte) error

type FieldConditionGeoBoundingBox added in v0.0.35

type FieldConditionGeoBoundingBox struct {
	GeoBoundingBox *GeoBoundingBox
	Unknown        interface{}
	// contains filtered or unexported fields
}

Check if points geo location lies in a given area

func NewFieldConditionGeoBoundingBoxFromGeoBoundingBox added in v0.0.35

func NewFieldConditionGeoBoundingBoxFromGeoBoundingBox(value *GeoBoundingBox) *FieldConditionGeoBoundingBox

func NewFieldConditionGeoBoundingBoxFromUnknown added in v0.0.35

func NewFieldConditionGeoBoundingBoxFromUnknown(value interface{}) *FieldConditionGeoBoundingBox

func (*FieldConditionGeoBoundingBox) Accept added in v0.0.35

func (FieldConditionGeoBoundingBox) MarshalJSON added in v0.0.35

func (f FieldConditionGeoBoundingBox) MarshalJSON() ([]byte, error)

func (*FieldConditionGeoBoundingBox) UnmarshalJSON added in v0.0.35

func (f *FieldConditionGeoBoundingBox) UnmarshalJSON(data []byte) error

type FieldConditionGeoBoundingBoxVisitor added in v0.0.35

type FieldConditionGeoBoundingBoxVisitor interface {
	VisitGeoBoundingBox(*GeoBoundingBox) error
	VisitUnknown(interface{}) error
}

type FieldConditionGeoPolygon added in v0.0.35

type FieldConditionGeoPolygon struct {
	GeoPolygon *GeoPolygon
	Unknown    interface{}
	// contains filtered or unexported fields
}

Check if geo point is within a given polygon

func NewFieldConditionGeoPolygonFromGeoPolygon added in v0.0.35

func NewFieldConditionGeoPolygonFromGeoPolygon(value *GeoPolygon) *FieldConditionGeoPolygon

func NewFieldConditionGeoPolygonFromUnknown added in v0.0.35

func NewFieldConditionGeoPolygonFromUnknown(value interface{}) *FieldConditionGeoPolygon

func (*FieldConditionGeoPolygon) Accept added in v0.0.35

func (FieldConditionGeoPolygon) MarshalJSON added in v0.0.35

func (f FieldConditionGeoPolygon) MarshalJSON() ([]byte, error)

func (*FieldConditionGeoPolygon) UnmarshalJSON added in v0.0.35

func (f *FieldConditionGeoPolygon) UnmarshalJSON(data []byte) error

type FieldConditionGeoPolygonVisitor added in v0.0.35

type FieldConditionGeoPolygonVisitor interface {
	VisitGeoPolygon(*GeoPolygon) error
	VisitUnknown(interface{}) error
}

type FieldConditionGeoRadius added in v0.0.35

type FieldConditionGeoRadius struct {
	GeoRadius *GeoRadius
	Unknown   interface{}
	// contains filtered or unexported fields
}

Check if geo point is within a given radius

func NewFieldConditionGeoRadiusFromGeoRadius added in v0.0.35

func NewFieldConditionGeoRadiusFromGeoRadius(value *GeoRadius) *FieldConditionGeoRadius

func NewFieldConditionGeoRadiusFromUnknown added in v0.0.35

func NewFieldConditionGeoRadiusFromUnknown(value interface{}) *FieldConditionGeoRadius

func (*FieldConditionGeoRadius) Accept added in v0.0.35

func (FieldConditionGeoRadius) MarshalJSON added in v0.0.35

func (f FieldConditionGeoRadius) MarshalJSON() ([]byte, error)

func (*FieldConditionGeoRadius) UnmarshalJSON added in v0.0.35

func (f *FieldConditionGeoRadius) UnmarshalJSON(data []byte) error

type FieldConditionGeoRadiusVisitor added in v0.0.35

type FieldConditionGeoRadiusVisitor interface {
	VisitGeoRadius(*GeoRadius) error
	VisitUnknown(interface{}) error
}

type FieldConditionMatch added in v0.0.35

type FieldConditionMatch struct {
	Match   *Match
	Unknown interface{}
	// contains filtered or unexported fields
}

Check if point has field with a given value

func NewFieldConditionMatchFromMatch added in v0.0.35

func NewFieldConditionMatchFromMatch(value *Match) *FieldConditionMatch

func NewFieldConditionMatchFromUnknown added in v0.0.35

func NewFieldConditionMatchFromUnknown(value interface{}) *FieldConditionMatch

func (*FieldConditionMatch) Accept added in v0.0.35

func (FieldConditionMatch) MarshalJSON added in v0.0.35

func (f FieldConditionMatch) MarshalJSON() ([]byte, error)

func (*FieldConditionMatch) UnmarshalJSON added in v0.0.35

func (f *FieldConditionMatch) UnmarshalJSON(data []byte) error

type FieldConditionMatchVisitor added in v0.0.35

type FieldConditionMatchVisitor interface {
	VisitMatch(*Match) error
	VisitUnknown(interface{}) error
}

type FieldConditionRange added in v0.0.35

type FieldConditionRange struct {
	Range   *Range
	Unknown interface{}
	// contains filtered or unexported fields
}

Check if points value lies in a given range

func NewFieldConditionRangeFromRange added in v0.0.35

func NewFieldConditionRangeFromRange(value *Range) *FieldConditionRange

func NewFieldConditionRangeFromUnknown added in v0.0.35

func NewFieldConditionRangeFromUnknown(value interface{}) *FieldConditionRange

func (*FieldConditionRange) Accept added in v0.0.35

func (FieldConditionRange) MarshalJSON added in v0.0.35

func (f FieldConditionRange) MarshalJSON() ([]byte, error)

func (*FieldConditionRange) UnmarshalJSON added in v0.0.35

func (f *FieldConditionRange) UnmarshalJSON(data []byte) error

type FieldConditionRangeVisitor added in v0.0.35

type FieldConditionRangeVisitor interface {
	VisitRange(*Range) error
	VisitUnknown(interface{}) error
}

type FieldConditionValuesCount added in v0.0.35

type FieldConditionValuesCount struct {
	ValuesCount *ValuesCount
	Unknown     interface{}
	// contains filtered or unexported fields
}

Check number of values of the field

func NewFieldConditionValuesCountFromUnknown added in v0.0.35

func NewFieldConditionValuesCountFromUnknown(value interface{}) *FieldConditionValuesCount

func NewFieldConditionValuesCountFromValuesCount added in v0.0.35

func NewFieldConditionValuesCountFromValuesCount(value *ValuesCount) *FieldConditionValuesCount

func (*FieldConditionValuesCount) Accept added in v0.0.35

func (FieldConditionValuesCount) MarshalJSON added in v0.0.35

func (f FieldConditionValuesCount) MarshalJSON() ([]byte, error)

func (*FieldConditionValuesCount) UnmarshalJSON added in v0.0.35

func (f *FieldConditionValuesCount) UnmarshalJSON(data []byte) error

type FieldConditionValuesCountVisitor added in v0.0.35

type FieldConditionValuesCountVisitor interface {
	VisitValuesCount(*ValuesCount) error
	VisitUnknown(interface{}) error
}

type Filter added in v0.0.35

type Filter struct {
	// At least one of those conditions should match
	Should []*Condition `json:"should,omitempty"`
	// All conditions must match
	Must []*Condition `json:"must,omitempty"`
	// All conditions must NOT match
	MustNot []*Condition `json:"must_not,omitempty"`
	// contains filtered or unexported fields
}

func (*Filter) String added in v0.0.35

func (f *Filter) String() string

func (*Filter) UnmarshalJSON added in v0.0.35

func (f *Filter) UnmarshalJSON(data []byte) error

type FilterSelector added in v0.0.35

type FilterSelector struct {
	Filter   *Filter                 `json:"filter,omitempty"`
	ShardKey *FilterSelectorShardKey `json:"shard_key,omitempty"`
	// contains filtered or unexported fields
}

func (*FilterSelector) String added in v0.0.35

func (f *FilterSelector) String() string

func (*FilterSelector) UnmarshalJSON added in v0.0.35

func (f *FilterSelector) UnmarshalJSON(data []byte) error

type FilterSelectorShardKey added in v0.0.35

type FilterSelectorShardKey struct {
	ShardKeySelector *ShardKeySelector
	Unknown          interface{}
	// contains filtered or unexported fields
}

func NewFilterSelectorShardKeyFromShardKeySelector added in v0.0.35

func NewFilterSelectorShardKeyFromShardKeySelector(value *ShardKeySelector) *FilterSelectorShardKey

func NewFilterSelectorShardKeyFromUnknown added in v0.0.35

func NewFilterSelectorShardKeyFromUnknown(value interface{}) *FilterSelectorShardKey

func (*FilterSelectorShardKey) Accept added in v0.0.35

func (FilterSelectorShardKey) MarshalJSON added in v0.0.35

func (f FilterSelectorShardKey) MarshalJSON() ([]byte, error)

func (*FilterSelectorShardKey) UnmarshalJSON added in v0.0.35

func (f *FilterSelectorShardKey) UnmarshalJSON(data []byte) error

type FilterSelectorShardKeyVisitor added in v0.0.35

type FilterSelectorShardKeyVisitor interface {
	VisitShardKeySelector(*ShardKeySelector) error
	VisitUnknown(interface{}) error
}

type GeoBoundingBox added in v0.0.35

type GeoBoundingBox struct {
	TopLeft     *GeoPoint `json:"top_left,omitempty"`
	BottomRight *GeoPoint `json:"bottom_right,omitempty"`
	// contains filtered or unexported fields
}

Geo filter request

Matches coordinates inside the rectangle, described by coordinates of lop-left and bottom-right edges

func (*GeoBoundingBox) String added in v0.0.35

func (g *GeoBoundingBox) String() string

func (*GeoBoundingBox) UnmarshalJSON added in v0.0.35

func (g *GeoBoundingBox) UnmarshalJSON(data []byte) error

type GeoLineString added in v0.0.35

type GeoLineString struct {
	Points []*GeoPoint `json:"points,omitempty"`
	// contains filtered or unexported fields
}

Ordered sequence of GeoPoints representing the line

func (*GeoLineString) String added in v0.0.35

func (g *GeoLineString) String() string

func (*GeoLineString) UnmarshalJSON added in v0.0.35

func (g *GeoLineString) UnmarshalJSON(data []byte) error

type GeoPoint added in v0.0.35

type GeoPoint struct {
	Lon float64 `json:"lon"`
	Lat float64 `json:"lat"`
	// contains filtered or unexported fields
}

Geo point payload schema

func (*GeoPoint) String added in v0.0.35

func (g *GeoPoint) String() string

func (*GeoPoint) UnmarshalJSON added in v0.0.35

func (g *GeoPoint) UnmarshalJSON(data []byte) error

type GeoPolygon added in v0.0.35

type GeoPolygon struct {
	Exterior *GeoLineString `json:"exterior,omitempty"`
	// Interior lines (if present) bound holes within the surface each GeoLineString must consist of a minimum of 4 points, and the first and last points must be the same.
	Interiors []*GeoLineString `json:"interiors,omitempty"`
	// contains filtered or unexported fields
}

Geo filter request

Matches coordinates inside the polygon, defined by `exterior` and `interiors`

func (*GeoPolygon) String added in v0.0.35

func (g *GeoPolygon) String() string

func (*GeoPolygon) UnmarshalJSON added in v0.0.35

func (g *GeoPolygon) UnmarshalJSON(data []byte) error

type GeoRadius added in v0.0.35

type GeoRadius struct {
	Center *GeoPoint `json:"center,omitempty"`
	// Radius of the area in meters
	Radius float64 `json:"radius"`
	// contains filtered or unexported fields
}

Geo filter request

Matches coordinates inside the circle of `radius` and center with coordinates `center`

func (*GeoRadius) String added in v0.0.35

func (g *GeoRadius) String() string

func (*GeoRadius) UnmarshalJSON added in v0.0.35

func (g *GeoRadius) UnmarshalJSON(data []byte) error

type GetCollectionAliasesResponse added in v0.0.35

type GetCollectionAliasesResponse struct {
	// Time spent to process this request
	Time   *float64                    `json:"time,omitempty"`
	Status *string                     `json:"status,omitempty"`
	Result *CollectionsAliasesResponse `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCollectionAliasesResponse) String added in v0.0.35

func (*GetCollectionAliasesResponse) UnmarshalJSON added in v0.0.35

func (g *GetCollectionAliasesResponse) UnmarshalJSON(data []byte) error

type GetCollectionResponse added in v0.0.35

type GetCollectionResponse struct {
	// Time spent to process this request
	Time   *float64        `json:"time,omitempty"`
	Status *string         `json:"status,omitempty"`
	Result *CollectionInfo `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCollectionResponse) String added in v0.0.35

func (g *GetCollectionResponse) String() string

func (*GetCollectionResponse) UnmarshalJSON added in v0.0.35

func (g *GetCollectionResponse) UnmarshalJSON(data []byte) error

type GetCollectionsAliasesResponse added in v0.0.35

type GetCollectionsAliasesResponse struct {
	// Time spent to process this request
	Time   *float64                    `json:"time,omitempty"`
	Status *string                     `json:"status,omitempty"`
	Result *CollectionsAliasesResponse `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCollectionsAliasesResponse) String added in v0.0.35

func (*GetCollectionsAliasesResponse) UnmarshalJSON added in v0.0.35

func (g *GetCollectionsAliasesResponse) UnmarshalJSON(data []byte) error

type GetCollectionsResponse added in v0.0.35

type GetCollectionsResponse struct {
	// Time spent to process this request
	Time   *float64             `json:"time,omitempty"`
	Status *string              `json:"status,omitempty"`
	Result *CollectionsResponse `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCollectionsResponse) String added in v0.0.35

func (g *GetCollectionsResponse) String() string

func (*GetCollectionsResponse) UnmarshalJSON added in v0.0.35

func (g *GetCollectionsResponse) UnmarshalJSON(data []byte) error

type GetLocksResponse added in v0.0.35

type GetLocksResponse struct {
	// Time spent to process this request
	Time   *float64     `json:"time,omitempty"`
	Status *string      `json:"status,omitempty"`
	Result *LocksOption `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*GetLocksResponse) String added in v0.0.35

func (g *GetLocksResponse) String() string

func (*GetLocksResponse) UnmarshalJSON added in v0.0.35

func (g *GetLocksResponse) UnmarshalJSON(data []byte) error

type GetPointResponse added in v0.0.35

type GetPointResponse struct {
	// Time spent to process this request
	Time   *float64 `json:"time,omitempty"`
	Status *string  `json:"status,omitempty"`
	Result *Record  `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPointResponse) String added in v0.0.35

func (g *GetPointResponse) String() string

func (*GetPointResponse) UnmarshalJSON added in v0.0.35

func (g *GetPointResponse) UnmarshalJSON(data []byte) error

type GetPointsResponse added in v0.0.35

type GetPointsResponse struct {
	// Time spent to process this request
	Time   *float64  `json:"time,omitempty"`
	Status *string   `json:"status,omitempty"`
	Result []*Record `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPointsResponse) String added in v0.0.35

func (g *GetPointsResponse) String() string

func (*GetPointsResponse) UnmarshalJSON added in v0.0.35

func (g *GetPointsResponse) UnmarshalJSON(data []byte) error

type GroupId added in v0.0.35

type GroupId struct {
	String  string
	Integer int
	// contains filtered or unexported fields
}

Value of the group_by key, shared across all the hits in the group

func NewGroupIdFromInteger added in v0.0.35

func NewGroupIdFromInteger(value int) *GroupId

func NewGroupIdFromString added in v0.0.35

func NewGroupIdFromString(value string) *GroupId

func (*GroupId) Accept added in v0.0.35

func (g *GroupId) Accept(visitor GroupIdVisitor) error

func (GroupId) MarshalJSON added in v0.0.35

func (g GroupId) MarshalJSON() ([]byte, error)

func (*GroupId) UnmarshalJSON added in v0.0.35

func (g *GroupId) UnmarshalJSON(data []byte) error

type GroupIdVisitor added in v0.0.35

type GroupIdVisitor interface {
	VisitString(string) error
	VisitInteger(int) error
}

type GroupsResult added in v0.0.35

type GroupsResult struct {
	Groups []*PointGroup `json:"groups,omitempty"`
	// contains filtered or unexported fields
}

func (*GroupsResult) String added in v0.0.35

func (g *GroupsResult) String() string

func (*GroupsResult) UnmarshalJSON added in v0.0.35

func (g *GroupsResult) UnmarshalJSON(data []byte) error

type GrpcTelemetry added in v0.0.35

type GrpcTelemetry struct {
	Responses map[string]*OperationDurationStatistics `json:"responses,omitempty"`
	// contains filtered or unexported fields
}

func (*GrpcTelemetry) String added in v0.0.35

func (g *GrpcTelemetry) String() string

func (*GrpcTelemetry) UnmarshalJSON added in v0.0.35

func (g *GrpcTelemetry) UnmarshalJSON(data []byte) error

type HasIdCondition added in v0.0.35

type HasIdCondition struct {
	HasId []*ExtendedPointId `json:"has_id,omitempty"`
	// contains filtered or unexported fields
}

ID-based filtering condition

func (*HasIdCondition) String added in v0.0.35

func (h *HasIdCondition) String() string

func (*HasIdCondition) UnmarshalJSON added in v0.0.35

func (h *HasIdCondition) UnmarshalJSON(data []byte) error

type HnswConfig added in v0.0.35

type HnswConfig struct {
	// Number of edges per node in the index graph. Larger the value - more accurate the search, more space required.
	M int `json:"m"`
	// Number of neighbours to consider during the index building. Larger the value - more accurate the search, more time required to build index.
	EfConstruct int `json:"ef_construct"`
	// Minimal size (in KiloBytes) of vectors for additional payload-based indexing. If payload chunk is smaller than `full_scan_threshold_kb` additional indexing won't be used - in this case full-scan search should be preferred by query planner and additional indexing is not required. Note: 1Kb = 1 vector of size 256
	FullScanThreshold int `json:"full_scan_threshold"`
	// Number of parallel threads used for background index building. If 0 - auto selection.
	MaxIndexingThreads *int `json:"max_indexing_threads,omitempty"`
	// Store HNSW index on disk. If set to false, index will be stored in RAM. Default: false
	OnDisk *bool `json:"on_disk,omitempty"`
	// Custom M param for hnsw graph built for payload index. If not set, default M will be used.
	PayloadM *int `json:"payload_m,omitempty"`
	// contains filtered or unexported fields
}

Config of HNSW index

func (*HnswConfig) String added in v0.0.35

func (h *HnswConfig) String() string

func (*HnswConfig) UnmarshalJSON added in v0.0.35

func (h *HnswConfig) UnmarshalJSON(data []byte) error

type HnswConfigDiff added in v0.0.35

type HnswConfigDiff struct {
	// Number of edges per node in the index graph. Larger the value - more accurate the search, more space required.
	M *int `json:"m,omitempty"`
	// Number of neighbours to consider during the index building. Larger the value - more accurate the search, more time required to build the index.
	EfConstruct *int `json:"ef_construct,omitempty"`
	// Minimal size (in kilobytes) of vectors for additional payload-based indexing. If payload chunk is smaller than `full_scan_threshold_kb` additional indexing won't be used - in this case full-scan search should be preferred by query planner and additional indexing is not required. Note: 1Kb = 1 vector of size 256
	FullScanThreshold *int `json:"full_scan_threshold,omitempty"`
	// Number of parallel threads used for background index building. If 0 - auto selection.
	MaxIndexingThreads *int `json:"max_indexing_threads,omitempty"`
	// Store HNSW index on disk. If set to false, the index will be stored in RAM. Default: false
	OnDisk *bool `json:"on_disk,omitempty"`
	// Custom M param for additional payload-aware HNSW links. If not set, default M will be used.
	PayloadM *int `json:"payload_m,omitempty"`
	// contains filtered or unexported fields
}

func (*HnswConfigDiff) String added in v0.0.35

func (h *HnswConfigDiff) String() string

func (*HnswConfigDiff) UnmarshalJSON added in v0.0.35

func (h *HnswConfigDiff) UnmarshalJSON(data []byte) error

type Indexes added in v0.0.35

type Indexes struct {
	Type string
	// Do not use any index, scan whole vector collection during search. Guarantee 100% precision, but may be time consuming on large collections.
	Plain *IndexesPlain
	// Use filterable HNSW index for approximate search. Is very fast even on a very huge collections, but require additional space to store index and additional time to build it.
	Hnsw *IndexesHnsw
}

Vector index configuration

func NewIndexesFromHnsw added in v0.0.35

func NewIndexesFromHnsw(value *IndexesHnsw) *Indexes

func NewIndexesFromPlain added in v0.0.35

func NewIndexesFromPlain(value *IndexesPlain) *Indexes

func (*Indexes) Accept added in v0.0.35

func (i *Indexes) Accept(visitor IndexesVisitor) error

func (Indexes) MarshalJSON added in v0.0.35

func (i Indexes) MarshalJSON() ([]byte, error)

func (*Indexes) UnmarshalJSON added in v0.0.35

func (i *Indexes) UnmarshalJSON(data []byte) error

type IndexesHnsw added in v0.0.35

type IndexesHnsw struct {
	Options *HnswConfig `json:"options,omitempty"`
	// contains filtered or unexported fields
}

Use filterable HNSW index for approximate search. Is very fast even on a very huge collections, but require additional space to store index and additional time to build it.

func (*IndexesHnsw) String added in v0.0.35

func (i *IndexesHnsw) String() string

func (*IndexesHnsw) UnmarshalJSON added in v0.0.35

func (i *IndexesHnsw) UnmarshalJSON(data []byte) error

type IndexesPlain added in v0.0.35

type IndexesPlain struct {
	Options map[string]interface{} `json:"options,omitempty"`
	// contains filtered or unexported fields
}

Do not use any index, scan whole vector collection during search. Guarantee 100% precision, but may be time consuming on large collections.

func (*IndexesPlain) String added in v0.0.35

func (i *IndexesPlain) String() string

func (*IndexesPlain) UnmarshalJSON added in v0.0.35

func (i *IndexesPlain) UnmarshalJSON(data []byte) error

type IndexesVisitor added in v0.0.35

type IndexesVisitor interface {
	VisitPlain(*IndexesPlain) error
	VisitHnsw(*IndexesHnsw) error
}

type InitFrom added in v0.0.35

type InitFrom struct {
	Collection string `json:"collection"`
	// contains filtered or unexported fields
}

Operation for creating new collection and (optionally) specify index params

func (*InitFrom) String added in v0.0.35

func (i *InitFrom) String() string

func (*InitFrom) UnmarshalJSON added in v0.0.35

func (i *InitFrom) UnmarshalJSON(data []byte) error

type IsEmptyCondition added in v0.0.35

type IsEmptyCondition struct {
	IsEmpty *PayloadField `json:"is_empty,omitempty"`
	// contains filtered or unexported fields
}

Select points with empty payload for a specified field

func (*IsEmptyCondition) String added in v0.0.35

func (i *IsEmptyCondition) String() string

func (*IsEmptyCondition) UnmarshalJSON added in v0.0.35

func (i *IsEmptyCondition) UnmarshalJSON(data []byte) error

type IsNullCondition added in v0.0.35

type IsNullCondition struct {
	IsNull *PayloadField `json:"is_null,omitempty"`
	// contains filtered or unexported fields
}

Select points with null payload for a specified field

func (*IsNullCondition) String added in v0.0.35

func (i *IsNullCondition) String() string

func (*IsNullCondition) UnmarshalJSON added in v0.0.35

func (i *IsNullCondition) UnmarshalJSON(data []byte) error

type ListFullSnapshotsResponse added in v0.0.35

type ListFullSnapshotsResponse struct {
	// Time spent to process this request
	Time   *float64               `json:"time,omitempty"`
	Status *string                `json:"status,omitempty"`
	Result []*SnapshotDescription `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*ListFullSnapshotsResponse) String added in v0.0.35

func (l *ListFullSnapshotsResponse) String() string

func (*ListFullSnapshotsResponse) UnmarshalJSON added in v0.0.35

func (l *ListFullSnapshotsResponse) UnmarshalJSON(data []byte) error

type ListShardSnapshotsResponse added in v0.0.35

type ListShardSnapshotsResponse struct {
	// Time spent to process this request
	Time   *float64               `json:"time,omitempty"`
	Status *string                `json:"status,omitempty"`
	Result []*SnapshotDescription `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*ListShardSnapshotsResponse) String added in v0.0.35

func (l *ListShardSnapshotsResponse) String() string

func (*ListShardSnapshotsResponse) UnmarshalJSON added in v0.0.35

func (l *ListShardSnapshotsResponse) UnmarshalJSON(data []byte) error

type ListSnapshotsResponse added in v0.0.35

type ListSnapshotsResponse struct {
	// Time spent to process this request
	Time   *float64               `json:"time,omitempty"`
	Status *string                `json:"status,omitempty"`
	Result []*SnapshotDescription `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSnapshotsResponse) String added in v0.0.35

func (l *ListSnapshotsResponse) String() string

func (*ListSnapshotsResponse) UnmarshalJSON added in v0.0.35

func (l *ListSnapshotsResponse) UnmarshalJSON(data []byte) error

type LocalShardInfo added in v0.0.35

type LocalShardInfo struct {
	// Local shard id
	ShardId int `json:"shard_id"`
	// User-defined sharding key
	ShardKey *LocalShardInfoShardKey `json:"shard_key,omitempty"`
	// Number of points in the shard
	PointsCount int          `json:"points_count"`
	State       ReplicaState `json:"state,omitempty"`
	// contains filtered or unexported fields
}

func (*LocalShardInfo) String added in v0.0.35

func (l *LocalShardInfo) String() string

func (*LocalShardInfo) UnmarshalJSON added in v0.0.35

func (l *LocalShardInfo) UnmarshalJSON(data []byte) error

type LocalShardInfoShardKey added in v0.0.35

type LocalShardInfoShardKey struct {
	ShardKey *ShardKey
	Unknown  interface{}
	// contains filtered or unexported fields
}

User-defined sharding key

func NewLocalShardInfoShardKeyFromShardKey added in v0.0.35

func NewLocalShardInfoShardKeyFromShardKey(value *ShardKey) *LocalShardInfoShardKey

func NewLocalShardInfoShardKeyFromUnknown added in v0.0.35

func NewLocalShardInfoShardKeyFromUnknown(value interface{}) *LocalShardInfoShardKey

func (*LocalShardInfoShardKey) Accept added in v0.0.35

func (LocalShardInfoShardKey) MarshalJSON added in v0.0.35

func (l LocalShardInfoShardKey) MarshalJSON() ([]byte, error)

func (*LocalShardInfoShardKey) UnmarshalJSON added in v0.0.35

func (l *LocalShardInfoShardKey) UnmarshalJSON(data []byte) error

type LocalShardInfoShardKeyVisitor added in v0.0.35

type LocalShardInfoShardKeyVisitor interface {
	VisitShardKey(*ShardKey) error
	VisitUnknown(interface{}) error
}

type LocalShardTelemetry added in v0.0.35

type LocalShardTelemetry struct {
	VariantName   *string             `json:"variant_name,omitempty"`
	Segments      []*SegmentTelemetry `json:"segments,omitempty"`
	Optimizations *OptimizerTelemetry `json:"optimizations,omitempty"`
	// contains filtered or unexported fields
}

func (*LocalShardTelemetry) String added in v0.0.35

func (l *LocalShardTelemetry) String() string

func (*LocalShardTelemetry) UnmarshalJSON added in v0.0.35

func (l *LocalShardTelemetry) UnmarshalJSON(data []byte) error

type LocksOption added in v0.0.35

type LocksOption struct {
	ErrorMessage *string `json:"error_message,omitempty"`
	Write        bool    `json:"write"`
	// contains filtered or unexported fields
}

func (*LocksOption) String added in v0.0.35

func (l *LocksOption) String() string

func (*LocksOption) UnmarshalJSON added in v0.0.35

func (l *LocksOption) UnmarshalJSON(data []byte) error

type LookupLocation added in v0.0.35

type LookupLocation struct {
	// Name of the collection used for lookup
	Collection string `json:"collection"`
	// Optional name of the vector field within the collection. If not provided, the default vector field will be used.
	Vector *string `json:"vector,omitempty"`
	// Specify in which shards to look for the points, if not specified - look in all shards
	ShardKey *LookupLocationShardKey `json:"shard_key,omitempty"`
	// contains filtered or unexported fields
}

Defines a location to use for looking up the vector. Specifies collection and vector field name.

func (*LookupLocation) String added in v0.0.35

func (l *LookupLocation) String() string

func (*LookupLocation) UnmarshalJSON added in v0.0.35

func (l *LookupLocation) UnmarshalJSON(data []byte) error

type LookupLocationShardKey added in v0.0.35

type LookupLocationShardKey struct {
	ShardKeySelector *ShardKeySelector
	Unknown          interface{}
	// contains filtered or unexported fields
}

Specify in which shards to look for the points, if not specified - look in all shards

func NewLookupLocationShardKeyFromShardKeySelector added in v0.0.35

func NewLookupLocationShardKeyFromShardKeySelector(value *ShardKeySelector) *LookupLocationShardKey

func NewLookupLocationShardKeyFromUnknown added in v0.0.35

func NewLookupLocationShardKeyFromUnknown(value interface{}) *LookupLocationShardKey

func (*LookupLocationShardKey) Accept added in v0.0.35

func (LookupLocationShardKey) MarshalJSON added in v0.0.35

func (l LookupLocationShardKey) MarshalJSON() ([]byte, error)

func (*LookupLocationShardKey) UnmarshalJSON added in v0.0.35

func (l *LookupLocationShardKey) UnmarshalJSON(data []byte) error

type LookupLocationShardKeyVisitor added in v0.0.35

type LookupLocationShardKeyVisitor interface {
	VisitShardKeySelector(*ShardKeySelector) error
	VisitUnknown(interface{}) error
}

type Match added in v0.0.35

type Match struct {
	MatchValue  *MatchValue
	MatchText   *MatchText
	MatchAny    *MatchAny
	MatchExcept *MatchExcept
	// contains filtered or unexported fields
}

Match filter request

func NewMatchFromMatchAny added in v0.0.35

func NewMatchFromMatchAny(value *MatchAny) *Match

func NewMatchFromMatchExcept added in v0.0.35

func NewMatchFromMatchExcept(value *MatchExcept) *Match

func NewMatchFromMatchText added in v0.0.35

func NewMatchFromMatchText(value *MatchText) *Match

func NewMatchFromMatchValue added in v0.0.35

func NewMatchFromMatchValue(value *MatchValue) *Match

func (*Match) Accept added in v0.0.35

func (m *Match) Accept(visitor MatchVisitor) error

func (Match) MarshalJSON added in v0.0.35

func (m Match) MarshalJSON() ([]byte, error)

func (*Match) UnmarshalJSON added in v0.0.35

func (m *Match) UnmarshalJSON(data []byte) error

type MatchAny added in v0.0.35

type MatchAny struct {
	Any *AnyVariants `json:"any,omitempty"`
	// contains filtered or unexported fields
}

Exact match on any of the given values

func (*MatchAny) String added in v0.0.35

func (m *MatchAny) String() string

func (*MatchAny) UnmarshalJSON added in v0.0.35

func (m *MatchAny) UnmarshalJSON(data []byte) error

type MatchExcept added in v0.0.35

type MatchExcept struct {
	Except *AnyVariants `json:"except,omitempty"`
	// contains filtered or unexported fields
}

Should have at least one value not matching the any given values

func (*MatchExcept) String added in v0.0.35

func (m *MatchExcept) String() string

func (*MatchExcept) UnmarshalJSON added in v0.0.35

func (m *MatchExcept) UnmarshalJSON(data []byte) error

type MatchText added in v0.0.35

type MatchText struct {
	Text string `json:"text"`
	// contains filtered or unexported fields
}

Full-text match of the strings.

func (*MatchText) String added in v0.0.35

func (m *MatchText) String() string

func (*MatchText) UnmarshalJSON added in v0.0.35

func (m *MatchText) UnmarshalJSON(data []byte) error

type MatchValue added in v0.0.35

type MatchValue struct {
	Value *ValueVariants `json:"value,omitempty"`
	// contains filtered or unexported fields
}

Exact match of the given value

func (*MatchValue) String added in v0.0.35

func (m *MatchValue) String() string

func (*MatchValue) UnmarshalJSON added in v0.0.35

func (m *MatchValue) UnmarshalJSON(data []byte) error

type MatchVisitor added in v0.0.35

type MatchVisitor interface {
	VisitMatchValue(*MatchValue) error
	VisitMatchText(*MatchText) error
	VisitMatchAny(*MatchAny) error
	VisitMatchExcept(*MatchExcept) error
}

type MessageSendErrors added in v0.0.35

type MessageSendErrors struct {
	Count       int     `json:"count"`
	LatestError *string `json:"latest_error,omitempty"`
	// contains filtered or unexported fields
}

Message send failures for a particular peer

func (*MessageSendErrors) String added in v0.0.35

func (m *MessageSendErrors) String() string

func (*MessageSendErrors) UnmarshalJSON added in v0.0.35

func (m *MessageSendErrors) UnmarshalJSON(data []byte) error

type MetricsRequest added in v0.0.35

type MetricsRequest struct {
	// If true, anonymize result
	Anonymize *bool `json:"-"`
}

type MoveShard added in v0.0.35

type MoveShard struct {
	ShardId    int `json:"shard_id"`
	ToPeerId   int `json:"to_peer_id"`
	FromPeerId int `json:"from_peer_id"`
	// Method for transferring the shard from one node to another
	Method *MoveShardMethod `json:"method,omitempty"`
	// contains filtered or unexported fields
}

func (*MoveShard) String added in v0.0.35

func (m *MoveShard) String() string

func (*MoveShard) UnmarshalJSON added in v0.0.35

func (m *MoveShard) UnmarshalJSON(data []byte) error

type MoveShardMethod added in v0.0.35

type MoveShardMethod struct {
	ShardTransferMethod ShardTransferMethod
	Unknown             interface{}
	// contains filtered or unexported fields
}

Method for transferring the shard from one node to another

func NewMoveShardMethodFromShardTransferMethod added in v0.0.35

func NewMoveShardMethodFromShardTransferMethod(value ShardTransferMethod) *MoveShardMethod

func NewMoveShardMethodFromUnknown added in v0.0.35

func NewMoveShardMethodFromUnknown(value interface{}) *MoveShardMethod

func (*MoveShardMethod) Accept added in v0.0.35

func (m *MoveShardMethod) Accept(visitor MoveShardMethodVisitor) error

func (MoveShardMethod) MarshalJSON added in v0.0.35

func (m MoveShardMethod) MarshalJSON() ([]byte, error)

func (*MoveShardMethod) UnmarshalJSON added in v0.0.35

func (m *MoveShardMethod) UnmarshalJSON(data []byte) error

type MoveShardMethodVisitor added in v0.0.35

type MoveShardMethodVisitor interface {
	VisitShardTransferMethod(ShardTransferMethod) error
	VisitUnknown(interface{}) error
}

type MoveShardOperation added in v0.0.35

type MoveShardOperation struct {
	MoveShard *MoveShard `json:"move_shard,omitempty"`
	// contains filtered or unexported fields
}

func (*MoveShardOperation) String added in v0.0.35

func (m *MoveShardOperation) String() string

func (*MoveShardOperation) UnmarshalJSON added in v0.0.35

func (m *MoveShardOperation) UnmarshalJSON(data []byte) error

type NamedSparseVector added in v0.0.35

type NamedSparseVector struct {
	// Name of vector data
	Name   string        `json:"name"`
	Vector *SparseVector `json:"vector,omitempty"`
	// contains filtered or unexported fields
}

Sparse vector data with name

func (*NamedSparseVector) String added in v0.0.35

func (n *NamedSparseVector) String() string

func (*NamedSparseVector) UnmarshalJSON added in v0.0.35

func (n *NamedSparseVector) UnmarshalJSON(data []byte) error

type NamedVector added in v0.0.35

type NamedVector struct {
	// Name of vector data
	Name string `json:"name"`
	// Vector data
	Vector []float64 `json:"vector,omitempty"`
	// contains filtered or unexported fields
}

Vector data with name

func (*NamedVector) String added in v0.0.35

func (n *NamedVector) String() string

func (*NamedVector) UnmarshalJSON added in v0.0.35

func (n *NamedVector) UnmarshalJSON(data []byte) error

type NamedVectorStruct added in v0.0.35

type NamedVectorStruct struct {
	DoubleList        []float64
	NamedVector       *NamedVector
	NamedSparseVector *NamedSparseVector
	// contains filtered or unexported fields
}

Vector data separator for named and unnamed modes Unnamed mode:

{ "vector": [1.0, 2.0, 3.0] }

or named mode:

{ "vector": { "vector": [1.0, 2.0, 3.0], "name": "image-embeddings" } }

func NewNamedVectorStructFromDoubleList added in v0.0.35

func NewNamedVectorStructFromDoubleList(value []float64) *NamedVectorStruct

func NewNamedVectorStructFromNamedSparseVector added in v0.0.35

func NewNamedVectorStructFromNamedSparseVector(value *NamedSparseVector) *NamedVectorStruct

func NewNamedVectorStructFromNamedVector added in v0.0.35

func NewNamedVectorStructFromNamedVector(value *NamedVector) *NamedVectorStruct

func (*NamedVectorStruct) Accept added in v0.0.35

func (NamedVectorStruct) MarshalJSON added in v0.0.35

func (n NamedVectorStruct) MarshalJSON() ([]byte, error)

func (*NamedVectorStruct) UnmarshalJSON added in v0.0.35

func (n *NamedVectorStruct) UnmarshalJSON(data []byte) error

type NamedVectorStructVisitor added in v0.0.35

type NamedVectorStructVisitor interface {
	VisitDoubleList([]float64) error
	VisitNamedVector(*NamedVector) error
	VisitNamedSparseVector(*NamedSparseVector) error
}

type Nested added in v0.0.35

type Nested struct {
	Key    string  `json:"key"`
	Filter *Filter `json:"filter,omitempty"`
	// contains filtered or unexported fields
}

Select points with payload for a specified nested field

func (*Nested) String added in v0.0.35

func (n *Nested) String() string

func (*Nested) UnmarshalJSON added in v0.0.35

func (n *Nested) UnmarshalJSON(data []byte) error

type NestedCondition added in v0.0.35

type NestedCondition struct {
	Nested *Nested `json:"nested,omitempty"`
	// contains filtered or unexported fields
}

func (*NestedCondition) String added in v0.0.35

func (n *NestedCondition) String() string

func (*NestedCondition) UnmarshalJSON added in v0.0.35

func (n *NestedCondition) UnmarshalJSON(data []byte) error

type OperationDurationStatistics added in v0.0.35

type OperationDurationStatistics struct {
	Count             int        `json:"count"`
	FailCount         *int       `json:"fail_count,omitempty"`
	AvgDurationMicros *float64   `json:"avg_duration_micros,omitempty"`
	MinDurationMicros *float64   `json:"min_duration_micros,omitempty"`
	MaxDurationMicros *float64   `json:"max_duration_micros,omitempty"`
	LastResponded     *time.Time `json:"last_responded,omitempty"`
	// contains filtered or unexported fields
}

func (*OperationDurationStatistics) String added in v0.0.35

func (o *OperationDurationStatistics) String() string

func (*OperationDurationStatistics) UnmarshalJSON added in v0.0.35

func (o *OperationDurationStatistics) UnmarshalJSON(data []byte) error

type OptimizerTelemetry added in v0.0.35

type OptimizerTelemetry struct {
	Status        *OptimizersStatus            `json:"status,omitempty"`
	Optimizations *OperationDurationStatistics `json:"optimizations,omitempty"`
	Log           []*TrackerTelemetry          `json:"log,omitempty"`
	// contains filtered or unexported fields
}

func (*OptimizerTelemetry) String added in v0.0.35

func (o *OptimizerTelemetry) String() string

func (*OptimizerTelemetry) UnmarshalJSON added in v0.0.35

func (o *OptimizerTelemetry) UnmarshalJSON(data []byte) error

type OptimizersConfig added in v0.0.35

type OptimizersConfig struct {
	// The minimal fraction of deleted vectors in a segment, required to perform segment optimization
	DeletedThreshold float64 `json:"deleted_threshold"`
	// The minimal number of vectors in a segment, required to perform segment optimization
	VacuumMinVectorNumber int `json:"vacuum_min_vector_number"`
	// Target amount of segments optimizer will try to keep. Real amount of segments may vary depending on multiple parameters: - Amount of stored points - Current write RPS
	//
	// It is recommended to select default number of segments as a factor of the number of search threads, so that each segment would be handled evenly by one of the threads. If `default_segment_number = 0`, will be automatically selected by the number of available CPUs.
	DefaultSegmentNumber int `json:"default_segment_number"`
	// Do not create segments larger this size (in kilobytes). Large segments might require disproportionately long indexation times, therefore it makes sense to limit the size of segments.
	//
	// If indexing speed is more important - make this parameter lower. If search speed is more important - make this parameter higher. Note: 1Kb = 1 vector of size 256 If not set, will be automatically selected considering the number of available CPUs.
	MaxSegmentSize *int `json:"max_segment_size,omitempty"`
	// Maximum size (in kilobytes) of vectors to store in-memory per segment. Segments larger than this threshold will be stored as read-only memmaped file.
	//
	// Memmap storage is disabled by default, to enable it, set this threshold to a reasonable value.
	//
	// To disable memmap storage, set this to `0`. Internally it will use the largest threshold possible.
	//
	// Note: 1Kb = 1 vector of size 256
	MemmapThreshold *int `json:"memmap_threshold,omitempty"`
	// Maximum size (in kilobytes) of vectors allowed for plain index, exceeding this threshold will enable vector indexing
	//
	// Default value is 20,000, based on <https://github.com/google-research/google-research/blob/master/scann/docs/algorithms.md>.
	//
	// To disable vector indexing, set to `0`.
	//
	// Note: 1kB = 1 vector of size 256.
	IndexingThreshold *int `json:"indexing_threshold,omitempty"`
	// Minimum interval between forced flushes.
	FlushIntervalSec int `json:"flush_interval_sec"`
	// Maximum available threads for optimization workers
	MaxOptimizationThreads int `json:"max_optimization_threads"`
	// contains filtered or unexported fields
}

func (*OptimizersConfig) String added in v0.0.35

func (o *OptimizersConfig) String() string

func (*OptimizersConfig) UnmarshalJSON added in v0.0.35

func (o *OptimizersConfig) UnmarshalJSON(data []byte) error

type OptimizersConfigDiff added in v0.0.35

type OptimizersConfigDiff struct {
	// The minimal fraction of deleted vectors in a segment, required to perform segment optimization
	DeletedThreshold *float64 `json:"deleted_threshold,omitempty"`
	// The minimal number of vectors in a segment, required to perform segment optimization
	VacuumMinVectorNumber *int `json:"vacuum_min_vector_number,omitempty"`
	// Target amount of segments optimizer will try to keep. Real amount of segments may vary depending on multiple parameters: - Amount of stored points - Current write RPS
	//
	// It is recommended to select default number of segments as a factor of the number of search threads, so that each segment would be handled evenly by one of the threads If `default_segment_number = 0`, will be automatically selected by the number of available CPUs
	DefaultSegmentNumber *int `json:"default_segment_number,omitempty"`
	// Do not create segments larger this size (in kilobytes). Large segments might require disproportionately long indexation times, therefore it makes sense to limit the size of segments.
	//
	// If indexation speed have more priority for your - make this parameter lower. If search speed is more important - make this parameter higher. Note: 1Kb = 1 vector of size 256
	MaxSegmentSize *int `json:"max_segment_size,omitempty"`
	// Maximum size (in kilobytes) of vectors to store in-memory per segment. Segments larger than this threshold will be stored as read-only memmaped file.
	//
	// Memmap storage is disabled by default, to enable it, set this threshold to a reasonable value.
	//
	// To disable memmap storage, set this to `0`.
	//
	// Note: 1Kb = 1 vector of size 256
	MemmapThreshold *int `json:"memmap_threshold,omitempty"`
	// Maximum size (in kilobytes) of vectors allowed for plain index, exceeding this threshold will enable vector indexing
	//
	// Default value is 20,000, based on <https://github.com/google-research/google-research/blob/master/scann/docs/algorithms.md>.
	//
	// To disable vector indexing, set to `0`.
	//
	// Note: 1kB = 1 vector of size 256.
	IndexingThreshold *int `json:"indexing_threshold,omitempty"`
	// Minimum interval between forced flushes.
	FlushIntervalSec *int `json:"flush_interval_sec,omitempty"`
	// Maximum available threads for optimization workers
	MaxOptimizationThreads *int `json:"max_optimization_threads,omitempty"`
	// contains filtered or unexported fields
}

func (*OptimizersConfigDiff) String added in v0.0.35

func (o *OptimizersConfigDiff) String() string

func (*OptimizersConfigDiff) UnmarshalJSON added in v0.0.35

func (o *OptimizersConfigDiff) UnmarshalJSON(data []byte) error

type OptimizersStatus added in v0.0.35

type OptimizersStatus struct {

	// Something wrong happened with optimizers
	OptimizersStatusError *OptimizersStatusError
	// contains filtered or unexported fields
}

Current state of the collection

func NewOptimizersStatusFromOptimizersStatusError added in v0.0.35

func NewOptimizersStatusFromOptimizersStatusError(value *OptimizersStatusError) *OptimizersStatus

func NewOptimizersStatusWithStringLiteral added in v0.0.35

func NewOptimizersStatusWithStringLiteral() *OptimizersStatus

func (*OptimizersStatus) Accept added in v0.0.35

func (o *OptimizersStatus) Accept(visitor OptimizersStatusVisitor) error

func (OptimizersStatus) MarshalJSON added in v0.0.35

func (o OptimizersStatus) MarshalJSON() ([]byte, error)

func (*OptimizersStatus) StringLiteral added in v0.0.35

func (o *OptimizersStatus) StringLiteral() string

func (*OptimizersStatus) UnmarshalJSON added in v0.0.35

func (o *OptimizersStatus) UnmarshalJSON(data []byte) error

type OptimizersStatusError added in v0.0.35

type OptimizersStatusError struct {
	Error string `json:"error"`
	// contains filtered or unexported fields
}

Something wrong happened with optimizers

func (*OptimizersStatusError) String added in v0.0.35

func (o *OptimizersStatusError) String() string

func (*OptimizersStatusError) UnmarshalJSON added in v0.0.35

func (o *OptimizersStatusError) UnmarshalJSON(data []byte) error

type OptimizersStatusVisitor added in v0.0.35

type OptimizersStatusVisitor interface {
	VisitStringLiteral(string) error
	VisitOptimizersStatusError(*OptimizersStatusError) error
}

type OverwritePayloadOperation added in v0.0.35

type OverwritePayloadOperation struct {
	OverwritePayload *SetPayload `json:"overwrite_payload,omitempty"`
	// contains filtered or unexported fields
}

func (*OverwritePayloadOperation) String added in v0.0.35

func (o *OverwritePayloadOperation) String() string

func (*OverwritePayloadOperation) UnmarshalJSON added in v0.0.35

func (o *OverwritePayloadOperation) UnmarshalJSON(data []byte) error

type OverwritePayloadRequest added in v0.0.35

type OverwritePayloadRequest struct {
	// If true, wait for changes to actually happen
	Wait *bool `json:"-"`
	// define ordering guarantees for the operation
	Ordering *WriteOrdering `json:"-"`
	Body     *SetPayload    `json:"-"`
}

func (*OverwritePayloadRequest) MarshalJSON added in v0.0.35

func (o *OverwritePayloadRequest) MarshalJSON() ([]byte, error)

func (*OverwritePayloadRequest) UnmarshalJSON added in v0.0.35

func (o *OverwritePayloadRequest) UnmarshalJSON(data []byte) error

type OverwritePayloadResponse added in v0.0.35

type OverwritePayloadResponse struct {
	// Time spent to process this request
	Time   *float64      `json:"time,omitempty"`
	Status *string       `json:"status,omitempty"`
	Result *UpdateResult `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*OverwritePayloadResponse) String added in v0.0.35

func (o *OverwritePayloadResponse) String() string

func (*OverwritePayloadResponse) UnmarshalJSON added in v0.0.35

func (o *OverwritePayloadResponse) UnmarshalJSON(data []byte) error

type P2PConfigTelemetry added in v0.0.35

type P2PConfigTelemetry struct {
	ConnectionPoolSize int `json:"connection_pool_size"`
	// contains filtered or unexported fields
}

func (*P2PConfigTelemetry) String added in v0.0.35

func (p *P2PConfigTelemetry) String() string

func (*P2PConfigTelemetry) UnmarshalJSON added in v0.0.35

func (p *P2PConfigTelemetry) UnmarshalJSON(data []byte) error

type Payload added in v0.0.35

type Payload = map[string]interface{}

type PayloadField added in v0.0.35

type PayloadField struct {
	// Payload field name
	Key string `json:"key"`
	// contains filtered or unexported fields
}

Payload field

func (*PayloadField) String added in v0.0.35

func (p *PayloadField) String() string

func (*PayloadField) UnmarshalJSON added in v0.0.35

func (p *PayloadField) UnmarshalJSON(data []byte) error

type PayloadFieldSchema added in v0.0.35

type PayloadFieldSchema struct {
	PayloadSchemaType   PayloadSchemaType
	PayloadSchemaParams PayloadSchemaParams
	// contains filtered or unexported fields
}

func NewPayloadFieldSchemaFromPayloadSchemaParams added in v0.0.35

func NewPayloadFieldSchemaFromPayloadSchemaParams(value PayloadSchemaParams) *PayloadFieldSchema

func NewPayloadFieldSchemaFromPayloadSchemaType added in v0.0.35

func NewPayloadFieldSchemaFromPayloadSchemaType(value PayloadSchemaType) *PayloadFieldSchema

func (*PayloadFieldSchema) Accept added in v0.0.35

func (PayloadFieldSchema) MarshalJSON added in v0.0.35

func (p PayloadFieldSchema) MarshalJSON() ([]byte, error)

func (*PayloadFieldSchema) UnmarshalJSON added in v0.0.35

func (p *PayloadFieldSchema) UnmarshalJSON(data []byte) error

type PayloadFieldSchemaVisitor added in v0.0.35

type PayloadFieldSchemaVisitor interface {
	VisitPayloadSchemaType(PayloadSchemaType) error
	VisitPayloadSchemaParams(PayloadSchemaParams) error
}

type PayloadIndexInfo added in v0.0.35

type PayloadIndexInfo struct {
	DataType PayloadSchemaType       `json:"data_type,omitempty"`
	Params   *PayloadIndexInfoParams `json:"params,omitempty"`
	// Number of points indexed with this index
	Points int `json:"points"`
	// contains filtered or unexported fields
}

Display payload field type & index information

func (*PayloadIndexInfo) String added in v0.0.35

func (p *PayloadIndexInfo) String() string

func (*PayloadIndexInfo) UnmarshalJSON added in v0.0.35

func (p *PayloadIndexInfo) UnmarshalJSON(data []byte) error

type PayloadIndexInfoParams added in v0.0.35

type PayloadIndexInfoParams struct {
	PayloadSchemaParams PayloadSchemaParams
	Unknown             interface{}
	// contains filtered or unexported fields
}

func NewPayloadIndexInfoParamsFromPayloadSchemaParams added in v0.0.35

func NewPayloadIndexInfoParamsFromPayloadSchemaParams(value PayloadSchemaParams) *PayloadIndexInfoParams

func NewPayloadIndexInfoParamsFromUnknown added in v0.0.35

func NewPayloadIndexInfoParamsFromUnknown(value interface{}) *PayloadIndexInfoParams

func (*PayloadIndexInfoParams) Accept added in v0.0.35

func (PayloadIndexInfoParams) MarshalJSON added in v0.0.35

func (p PayloadIndexInfoParams) MarshalJSON() ([]byte, error)

func (*PayloadIndexInfoParams) UnmarshalJSON added in v0.0.35

func (p *PayloadIndexInfoParams) UnmarshalJSON(data []byte) error

type PayloadIndexInfoParamsVisitor added in v0.0.35

type PayloadIndexInfoParamsVisitor interface {
	VisitPayloadSchemaParams(PayloadSchemaParams) error
	VisitUnknown(interface{}) error
}

type PayloadIndexTelemetry added in v0.0.35

type PayloadIndexTelemetry struct {
	FieldName           *string `json:"field_name,omitempty"`
	PointsValuesCount   int     `json:"points_values_count"`
	PointsCount         int     `json:"points_count"`
	HistogramBucketSize *int    `json:"histogram_bucket_size,omitempty"`
	// contains filtered or unexported fields
}

func (*PayloadIndexTelemetry) String added in v0.0.35

func (p *PayloadIndexTelemetry) String() string

func (*PayloadIndexTelemetry) UnmarshalJSON added in v0.0.35

func (p *PayloadIndexTelemetry) UnmarshalJSON(data []byte) error

type PayloadSchemaParams added in v0.0.35

type PayloadSchemaParams = *TextIndexParams

Payload type with parameters

type PayloadSchemaType added in v0.0.35

type PayloadSchemaType string

All possible names of payload types

const (
	PayloadSchemaTypeKeyword PayloadSchemaType = "keyword"
	PayloadSchemaTypeInteger PayloadSchemaType = "integer"
	PayloadSchemaTypeFloat   PayloadSchemaType = "float"
	PayloadSchemaTypeGeo     PayloadSchemaType = "geo"
	PayloadSchemaTypeText    PayloadSchemaType = "text"
	PayloadSchemaTypeBool    PayloadSchemaType = "bool"
)

func NewPayloadSchemaTypeFromString added in v0.0.35

func NewPayloadSchemaTypeFromString(s string) (PayloadSchemaType, error)

func (PayloadSchemaType) Ptr added in v0.0.35

type PayloadSelector added in v0.0.35

type PayloadSelector struct {
	PayloadSelectorInclude *PayloadSelectorInclude
	PayloadSelectorExclude *PayloadSelectorExclude
	// contains filtered or unexported fields
}

Specifies how to treat payload selector

func NewPayloadSelectorFromPayloadSelectorExclude added in v0.0.35

func NewPayloadSelectorFromPayloadSelectorExclude(value *PayloadSelectorExclude) *PayloadSelector

func NewPayloadSelectorFromPayloadSelectorInclude added in v0.0.35

func NewPayloadSelectorFromPayloadSelectorInclude(value *PayloadSelectorInclude) *PayloadSelector

func (*PayloadSelector) Accept added in v0.0.35

func (p *PayloadSelector) Accept(visitor PayloadSelectorVisitor) error

func (PayloadSelector) MarshalJSON added in v0.0.35

func (p PayloadSelector) MarshalJSON() ([]byte, error)

func (*PayloadSelector) UnmarshalJSON added in v0.0.35

func (p *PayloadSelector) UnmarshalJSON(data []byte) error

type PayloadSelectorExclude added in v0.0.35

type PayloadSelectorExclude struct {
	// Exclude this fields from returning payload
	Exclude []string `json:"exclude,omitempty"`
	// contains filtered or unexported fields
}

func (*PayloadSelectorExclude) String added in v0.0.35

func (p *PayloadSelectorExclude) String() string

func (*PayloadSelectorExclude) UnmarshalJSON added in v0.0.35

func (p *PayloadSelectorExclude) UnmarshalJSON(data []byte) error

type PayloadSelectorInclude added in v0.0.35

type PayloadSelectorInclude struct {
	// Only include this payload keys
	Include []string `json:"include,omitempty"`
	// contains filtered or unexported fields
}

func (*PayloadSelectorInclude) String added in v0.0.35

func (p *PayloadSelectorInclude) String() string

func (*PayloadSelectorInclude) UnmarshalJSON added in v0.0.35

func (p *PayloadSelectorInclude) UnmarshalJSON(data []byte) error

type PayloadSelectorVisitor added in v0.0.35

type PayloadSelectorVisitor interface {
	VisitPayloadSelectorInclude(*PayloadSelectorInclude) error
	VisitPayloadSelectorExclude(*PayloadSelectorExclude) error
}

type PayloadStorageType added in v0.0.35

type PayloadStorageType struct {
	Type     string
	InMemory *PayloadStorageTypeInMemory
	OnDisk   *PayloadStorageTypeOnDisk
}

Type of payload storage

func NewPayloadStorageTypeFromInMemory added in v0.0.35

func NewPayloadStorageTypeFromInMemory(value *PayloadStorageTypeInMemory) *PayloadStorageType

func NewPayloadStorageTypeFromOnDisk added in v0.0.35

func NewPayloadStorageTypeFromOnDisk(value *PayloadStorageTypeOnDisk) *PayloadStorageType

func (*PayloadStorageType) Accept added in v0.0.35

func (PayloadStorageType) MarshalJSON added in v0.0.35

func (p PayloadStorageType) MarshalJSON() ([]byte, error)

func (*PayloadStorageType) UnmarshalJSON added in v0.0.35

func (p *PayloadStorageType) UnmarshalJSON(data []byte) error

type PayloadStorageTypeInMemory added in v0.0.35

type PayloadStorageTypeInMemory struct {
	// contains filtered or unexported fields
}

func (*PayloadStorageTypeInMemory) String added in v0.0.35

func (p *PayloadStorageTypeInMemory) String() string

func (*PayloadStorageTypeInMemory) UnmarshalJSON added in v0.0.35

func (p *PayloadStorageTypeInMemory) UnmarshalJSON(data []byte) error

type PayloadStorageTypeOnDisk added in v0.0.35

type PayloadStorageTypeOnDisk struct {
	// contains filtered or unexported fields
}

func (*PayloadStorageTypeOnDisk) String added in v0.0.35

func (p *PayloadStorageTypeOnDisk) String() string

func (*PayloadStorageTypeOnDisk) UnmarshalJSON added in v0.0.35

func (p *PayloadStorageTypeOnDisk) UnmarshalJSON(data []byte) error

type PayloadStorageTypeVisitor added in v0.0.35

type PayloadStorageTypeVisitor interface {
	VisitInMemory(*PayloadStorageTypeInMemory) error
	VisitOnDisk(*PayloadStorageTypeOnDisk) error
}

type PeerInfo added in v0.0.35

type PeerInfo struct {
	Uri string `json:"uri"`
	// contains filtered or unexported fields
}

Information of a peer in the cluster

func (*PeerInfo) String added in v0.0.35

func (p *PeerInfo) String() string

func (*PeerInfo) UnmarshalJSON added in v0.0.35

func (p *PeerInfo) UnmarshalJSON(data []byte) error

type PointGroup added in v0.0.35

type PointGroup struct {
	// Scored points that have the same value of the group_by key
	Hits []*ScoredPoint `json:"hits,omitempty"`
	Id   *GroupId       `json:"id,omitempty"`
	// Record that has been looked up using the group id
	Lookup *PointGroupLookup `json:"lookup,omitempty"`
	// contains filtered or unexported fields
}

func (*PointGroup) String added in v0.0.35

func (p *PointGroup) String() string

func (*PointGroup) UnmarshalJSON added in v0.0.35

func (p *PointGroup) UnmarshalJSON(data []byte) error

type PointGroupLookup added in v0.0.35

type PointGroupLookup struct {
	Record  *Record
	Unknown interface{}
	// contains filtered or unexported fields
}

Record that has been looked up using the group id

func NewPointGroupLookupFromRecord added in v0.0.35

func NewPointGroupLookupFromRecord(value *Record) *PointGroupLookup

func NewPointGroupLookupFromUnknown added in v0.0.35

func NewPointGroupLookupFromUnknown(value interface{}) *PointGroupLookup

func (*PointGroupLookup) Accept added in v0.0.35

func (p *PointGroupLookup) Accept(visitor PointGroupLookupVisitor) error

func (PointGroupLookup) MarshalJSON added in v0.0.35

func (p PointGroupLookup) MarshalJSON() ([]byte, error)

func (*PointGroupLookup) UnmarshalJSON added in v0.0.35

func (p *PointGroupLookup) UnmarshalJSON(data []byte) error

type PointGroupLookupVisitor added in v0.0.35

type PointGroupLookupVisitor interface {
	VisitRecord(*Record) error
	VisitUnknown(interface{}) error
}

type PointIdsList added in v0.0.35

type PointIdsList struct {
	Points   []*ExtendedPointId    `json:"points,omitempty"`
	ShardKey *PointIdsListShardKey `json:"shard_key,omitempty"`
	// contains filtered or unexported fields
}

func (*PointIdsList) String added in v0.0.35

func (p *PointIdsList) String() string

func (*PointIdsList) UnmarshalJSON added in v0.0.35

func (p *PointIdsList) UnmarshalJSON(data []byte) error

type PointIdsListShardKey added in v0.0.35

type PointIdsListShardKey struct {
	ShardKeySelector *ShardKeySelector
	Unknown          interface{}
	// contains filtered or unexported fields
}

func NewPointIdsListShardKeyFromShardKeySelector added in v0.0.35

func NewPointIdsListShardKeyFromShardKeySelector(value *ShardKeySelector) *PointIdsListShardKey

func NewPointIdsListShardKeyFromUnknown added in v0.0.35

func NewPointIdsListShardKeyFromUnknown(value interface{}) *PointIdsListShardKey

func (*PointIdsListShardKey) Accept added in v0.0.35

func (PointIdsListShardKey) MarshalJSON added in v0.0.35

func (p PointIdsListShardKey) MarshalJSON() ([]byte, error)

func (*PointIdsListShardKey) UnmarshalJSON added in v0.0.35

func (p *PointIdsListShardKey) UnmarshalJSON(data []byte) error

type PointIdsListShardKeyVisitor added in v0.0.35

type PointIdsListShardKeyVisitor interface {
	VisitShardKeySelector(*ShardKeySelector) error
	VisitUnknown(interface{}) error
}

type PointInsertOperations added in v0.0.35

type PointInsertOperations struct {
	PointsBatch *PointsBatch
	PointsList  *PointsList
	// contains filtered or unexported fields
}

func NewPointInsertOperationsFromPointsBatch added in v0.0.35

func NewPointInsertOperationsFromPointsBatch(value *PointsBatch) *PointInsertOperations

func NewPointInsertOperationsFromPointsList added in v0.0.35

func NewPointInsertOperationsFromPointsList(value *PointsList) *PointInsertOperations

func (*PointInsertOperations) Accept added in v0.0.35

func (PointInsertOperations) MarshalJSON added in v0.0.35

func (p PointInsertOperations) MarshalJSON() ([]byte, error)

func (*PointInsertOperations) UnmarshalJSON added in v0.0.35

func (p *PointInsertOperations) UnmarshalJSON(data []byte) error

type PointInsertOperationsVisitor added in v0.0.35

type PointInsertOperationsVisitor interface {
	VisitPointsBatch(*PointsBatch) error
	VisitPointsList(*PointsList) error
}

type PointRequest added in v0.0.35

type PointRequest struct {
	// Specify in which shards to look for the points, if not specified - look in all shards
	ShardKey *core.Optional[PointRequestShardKey] `json:"shard_key,omitempty"`
	// Look for points with ids
	Ids []*ExtendedPointId `json:"ids,omitempty"`
	// Select which payload to return with the response. Default: All
	WithPayload *core.Optional[PointRequestWithPayload] `json:"with_payload,omitempty"`
	WithVector  *core.Optional[WithVector]              `json:"with_vector,omitempty"`
}

type PointRequestShardKey added in v0.0.35

type PointRequestShardKey struct {
	ShardKeySelector *ShardKeySelector
	Unknown          interface{}
	// contains filtered or unexported fields
}

Specify in which shards to look for the points, if not specified - look in all shards

func NewPointRequestShardKeyFromShardKeySelector added in v0.0.35

func NewPointRequestShardKeyFromShardKeySelector(value *ShardKeySelector) *PointRequestShardKey

func NewPointRequestShardKeyFromUnknown added in v0.0.35

func NewPointRequestShardKeyFromUnknown(value interface{}) *PointRequestShardKey

func (*PointRequestShardKey) Accept added in v0.0.35

func (PointRequestShardKey) MarshalJSON added in v0.0.35

func (p PointRequestShardKey) MarshalJSON() ([]byte, error)

func (*PointRequestShardKey) UnmarshalJSON added in v0.0.35

func (p *PointRequestShardKey) UnmarshalJSON(data []byte) error

type PointRequestShardKeyVisitor added in v0.0.35

type PointRequestShardKeyVisitor interface {
	VisitShardKeySelector(*ShardKeySelector) error
	VisitUnknown(interface{}) error
}

type PointRequestWithPayload added in v0.0.35

type PointRequestWithPayload struct {
	WithPayloadInterface *WithPayloadInterface
	Unknown              interface{}
	// contains filtered or unexported fields
}

Select which payload to return with the response. Default: All

func NewPointRequestWithPayloadFromUnknown added in v0.0.35

func NewPointRequestWithPayloadFromUnknown(value interface{}) *PointRequestWithPayload

func NewPointRequestWithPayloadFromWithPayloadInterface added in v0.0.35

func NewPointRequestWithPayloadFromWithPayloadInterface(value *WithPayloadInterface) *PointRequestWithPayload

func (*PointRequestWithPayload) Accept added in v0.0.35

func (PointRequestWithPayload) MarshalJSON added in v0.0.35

func (p PointRequestWithPayload) MarshalJSON() ([]byte, error)

func (*PointRequestWithPayload) UnmarshalJSON added in v0.0.35

func (p *PointRequestWithPayload) UnmarshalJSON(data []byte) error

type PointRequestWithPayloadVisitor added in v0.0.35

type PointRequestWithPayloadVisitor interface {
	VisitWithPayloadInterface(*WithPayloadInterface) error
	VisitUnknown(interface{}) error
}

type PointStruct added in v0.0.35

type PointStruct struct {
	Id     *ExtendedPointId `json:"id,omitempty"`
	Vector *VectorStruct    `json:"vector,omitempty"`
	// Payload values (optional)
	Payload *PointStructPayload `json:"payload,omitempty"`
	// contains filtered or unexported fields
}

func (*PointStruct) String added in v0.0.35

func (p *PointStruct) String() string

func (*PointStruct) UnmarshalJSON added in v0.0.35

func (p *PointStruct) UnmarshalJSON(data []byte) error

type PointStructPayload added in v0.0.35

type PointStructPayload struct {
	Payload Payload
	Unknown interface{}
	// contains filtered or unexported fields
}

Payload values (optional)

func NewPointStructPayloadFromPayload added in v0.0.35

func NewPointStructPayloadFromPayload(value Payload) *PointStructPayload

func NewPointStructPayloadFromUnknown added in v0.0.35

func NewPointStructPayloadFromUnknown(value interface{}) *PointStructPayload

func (*PointStructPayload) Accept added in v0.0.35

func (PointStructPayload) MarshalJSON added in v0.0.35

func (p PointStructPayload) MarshalJSON() ([]byte, error)

func (*PointStructPayload) UnmarshalJSON added in v0.0.35

func (p *PointStructPayload) UnmarshalJSON(data []byte) error

type PointStructPayloadVisitor added in v0.0.35

type PointStructPayloadVisitor interface {
	VisitPayload(Payload) error
	VisitUnknown(interface{}) error
}

type PointVectors added in v0.0.35

type PointVectors struct {
	Id     *ExtendedPointId `json:"id,omitempty"`
	Vector *VectorStruct    `json:"vector,omitempty"`
	// contains filtered or unexported fields
}

func (*PointVectors) String added in v0.0.35

func (p *PointVectors) String() string

func (*PointVectors) UnmarshalJSON added in v0.0.35

func (p *PointVectors) UnmarshalJSON(data []byte) error

type PointsBatch added in v0.0.35

type PointsBatch struct {
	Batch    *Batch               `json:"batch,omitempty"`
	ShardKey *PointsBatchShardKey `json:"shard_key,omitempty"`
	// contains filtered or unexported fields
}

func (*PointsBatch) String added in v0.0.35

func (p *PointsBatch) String() string

func (*PointsBatch) UnmarshalJSON added in v0.0.35

func (p *PointsBatch) UnmarshalJSON(data []byte) error

type PointsBatchShardKey added in v0.0.35

type PointsBatchShardKey struct {
	ShardKeySelector *ShardKeySelector
	Unknown          interface{}
	// contains filtered or unexported fields
}

func NewPointsBatchShardKeyFromShardKeySelector added in v0.0.35

func NewPointsBatchShardKeyFromShardKeySelector(value *ShardKeySelector) *PointsBatchShardKey

func NewPointsBatchShardKeyFromUnknown added in v0.0.35

func NewPointsBatchShardKeyFromUnknown(value interface{}) *PointsBatchShardKey

func (*PointsBatchShardKey) Accept added in v0.0.35

func (PointsBatchShardKey) MarshalJSON added in v0.0.35

func (p PointsBatchShardKey) MarshalJSON() ([]byte, error)

func (*PointsBatchShardKey) UnmarshalJSON added in v0.0.35

func (p *PointsBatchShardKey) UnmarshalJSON(data []byte) error

type PointsBatchShardKeyVisitor added in v0.0.35

type PointsBatchShardKeyVisitor interface {
	VisitShardKeySelector(*ShardKeySelector) error
	VisitUnknown(interface{}) error
}

type PointsList added in v0.0.35

type PointsList struct {
	Points   []*PointStruct      `json:"points,omitempty"`
	ShardKey *PointsListShardKey `json:"shard_key,omitempty"`
	// contains filtered or unexported fields
}

func (*PointsList) String added in v0.0.35

func (p *PointsList) String() string

func (*PointsList) UnmarshalJSON added in v0.0.35

func (p *PointsList) UnmarshalJSON(data []byte) error

type PointsListShardKey added in v0.0.35

type PointsListShardKey struct {
	ShardKeySelector *ShardKeySelector
	Unknown          interface{}
	// contains filtered or unexported fields
}

func NewPointsListShardKeyFromShardKeySelector added in v0.0.35

func NewPointsListShardKeyFromShardKeySelector(value *ShardKeySelector) *PointsListShardKey

func NewPointsListShardKeyFromUnknown added in v0.0.35

func NewPointsListShardKeyFromUnknown(value interface{}) *PointsListShardKey

func (*PointsListShardKey) Accept added in v0.0.35

func (PointsListShardKey) MarshalJSON added in v0.0.35

func (p PointsListShardKey) MarshalJSON() ([]byte, error)

func (*PointsListShardKey) UnmarshalJSON added in v0.0.35

func (p *PointsListShardKey) UnmarshalJSON(data []byte) error

type PointsListShardKeyVisitor added in v0.0.35

type PointsListShardKeyVisitor interface {
	VisitShardKeySelector(*ShardKeySelector) error
	VisitUnknown(interface{}) error
}

type PointsSelector added in v0.0.35

type PointsSelector struct {
	PointIdsList   *PointIdsList
	FilterSelector *FilterSelector
	// contains filtered or unexported fields
}

func NewPointsSelectorFromFilterSelector added in v0.0.35

func NewPointsSelectorFromFilterSelector(value *FilterSelector) *PointsSelector

func NewPointsSelectorFromPointIdsList added in v0.0.35

func NewPointsSelectorFromPointIdsList(value *PointIdsList) *PointsSelector

func (*PointsSelector) Accept added in v0.0.35

func (p *PointsSelector) Accept(visitor PointsSelectorVisitor) error

func (PointsSelector) MarshalJSON added in v0.0.35

func (p PointsSelector) MarshalJSON() ([]byte, error)

func (*PointsSelector) UnmarshalJSON added in v0.0.35

func (p *PointsSelector) UnmarshalJSON(data []byte) error

type PointsSelectorVisitor added in v0.0.35

type PointsSelectorVisitor interface {
	VisitPointIdsList(*PointIdsList) error
	VisitFilterSelector(*FilterSelector) error
}

type PostLocksResponse added in v0.0.35

type PostLocksResponse struct {
	// Time spent to process this request
	Time   *float64     `json:"time,omitempty"`
	Status *string      `json:"status,omitempty"`
	Result *LocksOption `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*PostLocksResponse) String added in v0.0.35

func (p *PostLocksResponse) String() string

func (*PostLocksResponse) UnmarshalJSON added in v0.0.35

func (p *PostLocksResponse) UnmarshalJSON(data []byte) error

type ProductQuantization added in v0.0.35

type ProductQuantization struct {
	Product *ProductQuantizationConfig `json:"product,omitempty"`
	// contains filtered or unexported fields
}

func (*ProductQuantization) String added in v0.0.35

func (p *ProductQuantization) String() string

func (*ProductQuantization) UnmarshalJSON added in v0.0.35

func (p *ProductQuantization) UnmarshalJSON(data []byte) error

type ProductQuantizationConfig added in v0.0.35

type ProductQuantizationConfig struct {
	Compression CompressionRatio `json:"compression,omitempty"`
	AlwaysRam   *bool            `json:"always_ram,omitempty"`
	// contains filtered or unexported fields
}

func (*ProductQuantizationConfig) String added in v0.0.35

func (p *ProductQuantizationConfig) String() string

func (*ProductQuantizationConfig) UnmarshalJSON added in v0.0.35

func (p *ProductQuantizationConfig) UnmarshalJSON(data []byte) error

type QuantizationConfig added in v0.0.35

type QuantizationConfig struct {
	ScalarQuantization  *ScalarQuantization
	ProductQuantization *ProductQuantization
	BinaryQuantization  *BinaryQuantization
	// contains filtered or unexported fields
}

func NewQuantizationConfigFromBinaryQuantization added in v0.0.35

func NewQuantizationConfigFromBinaryQuantization(value *BinaryQuantization) *QuantizationConfig

func NewQuantizationConfigFromProductQuantization added in v0.0.35

func NewQuantizationConfigFromProductQuantization(value *ProductQuantization) *QuantizationConfig

func NewQuantizationConfigFromScalarQuantization added in v0.0.35

func NewQuantizationConfigFromScalarQuantization(value *ScalarQuantization) *QuantizationConfig

func (*QuantizationConfig) Accept added in v0.0.35

func (QuantizationConfig) MarshalJSON added in v0.0.35

func (q QuantizationConfig) MarshalJSON() ([]byte, error)

func (*QuantizationConfig) UnmarshalJSON added in v0.0.35

func (q *QuantizationConfig) UnmarshalJSON(data []byte) error

type QuantizationConfigDiff added in v0.0.35

type QuantizationConfigDiff struct {
	ScalarQuantization  *ScalarQuantization
	ProductQuantization *ProductQuantization
	BinaryQuantization  *BinaryQuantization
	Disabled            Disabled
	// contains filtered or unexported fields
}

func NewQuantizationConfigDiffFromBinaryQuantization added in v0.0.35

func NewQuantizationConfigDiffFromBinaryQuantization(value *BinaryQuantization) *QuantizationConfigDiff

func NewQuantizationConfigDiffFromDisabled added in v0.0.35

func NewQuantizationConfigDiffFromDisabled(value Disabled) *QuantizationConfigDiff

func NewQuantizationConfigDiffFromProductQuantization added in v0.0.35

func NewQuantizationConfigDiffFromProductQuantization(value *ProductQuantization) *QuantizationConfigDiff

func NewQuantizationConfigDiffFromScalarQuantization added in v0.0.35

func NewQuantizationConfigDiffFromScalarQuantization(value *ScalarQuantization) *QuantizationConfigDiff

func (*QuantizationConfigDiff) Accept added in v0.0.35

func (QuantizationConfigDiff) MarshalJSON added in v0.0.35

func (q QuantizationConfigDiff) MarshalJSON() ([]byte, error)

func (*QuantizationConfigDiff) UnmarshalJSON added in v0.0.35

func (q *QuantizationConfigDiff) UnmarshalJSON(data []byte) error

type QuantizationConfigDiffVisitor added in v0.0.35

type QuantizationConfigDiffVisitor interface {
	VisitScalarQuantization(*ScalarQuantization) error
	VisitProductQuantization(*ProductQuantization) error
	VisitBinaryQuantization(*BinaryQuantization) error
	VisitDisabled(Disabled) error
}

type QuantizationConfigVisitor added in v0.0.35

type QuantizationConfigVisitor interface {
	VisitScalarQuantization(*ScalarQuantization) error
	VisitProductQuantization(*ProductQuantization) error
	VisitBinaryQuantization(*BinaryQuantization) error
}

type QuantizationSearchParams added in v0.0.35

type QuantizationSearchParams struct {
	// If true, quantized vectors are ignored. Default is false.
	Ignore *bool `json:"ignore,omitempty"`
	// If true, use original vectors to re-score top-k results. Might require more time in case if original vectors are stored on disk. If not set, qdrant decides automatically apply rescoring or not.
	Rescore *bool `json:"rescore,omitempty"`
	// Oversampling factor for quantization. Default is 1.0.
	//
	// Defines how many extra vectors should be pre-selected using quantized index, and then re-scored using original vectors.
	//
	// For example, if `oversampling` is 2.4 and `limit` is 100, then 240 vectors will be pre-selected using quantized index, and then top-100 will be returned after re-scoring.
	Oversampling *float64 `json:"oversampling,omitempty"`
	// contains filtered or unexported fields
}

Additional parameters of the search

func (*QuantizationSearchParams) String added in v0.0.35

func (q *QuantizationSearchParams) String() string

func (*QuantizationSearchParams) UnmarshalJSON added in v0.0.35

func (q *QuantizationSearchParams) UnmarshalJSON(data []byte) error

type RaftInfo added in v0.0.35

type RaftInfo struct {
	// Raft divides time into terms of arbitrary length, each beginning with an election. If a candidate wins the election, it remains the leader for the rest of the term. The term number increases monotonically. Each server stores the current term number which is also exchanged in every communication.
	Term int `json:"term"`
	// The index of the latest committed (finalized) operation that this peer is aware of.
	Commit int `json:"commit"`
	// Number of consensus operations pending to be applied on this peer
	PendingOperations int `json:"pending_operations"`
	// Leader of the current term
	Leader *int `json:"leader,omitempty"`
	// Role of this peer in the current term
	Role *RaftInfoRole `json:"role,omitempty"`
	// Is this peer a voter or a learner
	IsVoter bool `json:"is_voter"`
	// contains filtered or unexported fields
}

Summary information about the current raft state

func (*RaftInfo) String added in v0.0.35

func (r *RaftInfo) String() string

func (*RaftInfo) UnmarshalJSON added in v0.0.35

func (r *RaftInfo) UnmarshalJSON(data []byte) error

type RaftInfoRole added in v0.0.35

type RaftInfoRole struct {
	StateRole StateRole
	Unknown   interface{}
	// contains filtered or unexported fields
}

Role of this peer in the current term

func NewRaftInfoRoleFromStateRole added in v0.0.35

func NewRaftInfoRoleFromStateRole(value StateRole) *RaftInfoRole

func NewRaftInfoRoleFromUnknown added in v0.0.35

func NewRaftInfoRoleFromUnknown(value interface{}) *RaftInfoRole

func (*RaftInfoRole) Accept added in v0.0.35

func (r *RaftInfoRole) Accept(visitor RaftInfoRoleVisitor) error

func (RaftInfoRole) MarshalJSON added in v0.0.35

func (r RaftInfoRole) MarshalJSON() ([]byte, error)

func (*RaftInfoRole) UnmarshalJSON added in v0.0.35

func (r *RaftInfoRole) UnmarshalJSON(data []byte) error

type RaftInfoRoleVisitor added in v0.0.35

type RaftInfoRoleVisitor interface {
	VisitStateRole(StateRole) error
	VisitUnknown(interface{}) error
}

type Range added in v0.0.35

type Range struct {
	// point.key < range.lt
	Lt *float64 `json:"lt,omitempty"`
	// point.key > range.gt
	Gt *float64 `json:"gt,omitempty"`
	// point.key >= range.gte
	Gte *float64 `json:"gte,omitempty"`
	// point.key <= range.lte
	Lte *float64 `json:"lte,omitempty"`
	// contains filtered or unexported fields
}

Range filter request

func (*Range) String added in v0.0.35

func (r *Range) String() string

func (*Range) UnmarshalJSON added in v0.0.35

func (r *Range) UnmarshalJSON(data []byte) error

type ReadConsistency added in v0.0.35

type ReadConsistency struct {
	Integer             int
	ReadConsistencyType ReadConsistencyType
	// contains filtered or unexported fields
}

Read consistency parameter

Defines how many replicas should be queried to get the result

- `N` - send N random request and return points, which present on all of them

- `majority` - send N/2+1 random request and return points, which present on all of them

- `quorum` - send requests to all nodes and return points which present on majority of them

- `all` - send requests to all nodes and return points which present on all of them

Default value is `Factor(1)`

func NewReadConsistencyFromInteger added in v0.0.35

func NewReadConsistencyFromInteger(value int) *ReadConsistency

func NewReadConsistencyFromReadConsistencyType added in v0.0.35

func NewReadConsistencyFromReadConsistencyType(value ReadConsistencyType) *ReadConsistency

func (*ReadConsistency) Accept added in v0.0.35

func (r *ReadConsistency) Accept(visitor ReadConsistencyVisitor) error

func (ReadConsistency) MarshalJSON added in v0.0.35

func (r ReadConsistency) MarshalJSON() ([]byte, error)

func (*ReadConsistency) UnmarshalJSON added in v0.0.35

func (r *ReadConsistency) UnmarshalJSON(data []byte) error

type ReadConsistencyType added in v0.0.35

type ReadConsistencyType string

- `majority` - send N/2+1 random request and return points, which present on all of them

- `quorum` - send requests to all nodes and return points which present on majority of nodes

- `all` - send requests to all nodes and return points which present on all nodes

const (
	ReadConsistencyTypeMajority ReadConsistencyType = "majority"
	ReadConsistencyTypeQuorum   ReadConsistencyType = "quorum"
	ReadConsistencyTypeAll      ReadConsistencyType = "all"
)

func NewReadConsistencyTypeFromString added in v0.0.35

func NewReadConsistencyTypeFromString(s string) (ReadConsistencyType, error)

func (ReadConsistencyType) Ptr added in v0.0.35

type ReadConsistencyVisitor added in v0.0.35

type ReadConsistencyVisitor interface {
	VisitInteger(int) error
	VisitReadConsistencyType(ReadConsistencyType) error
}

type RecommendBatchPointsResponse added in v0.0.35

type RecommendBatchPointsResponse struct {
	// Time spent to process this request
	Time   *float64         `json:"time,omitempty"`
	Status *string          `json:"status,omitempty"`
	Result [][]*ScoredPoint `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*RecommendBatchPointsResponse) String added in v0.0.35

func (*RecommendBatchPointsResponse) UnmarshalJSON added in v0.0.35

func (r *RecommendBatchPointsResponse) UnmarshalJSON(data []byte) error

type RecommendExample added in v0.0.35

type RecommendExample struct {
	ExtendedPointId *ExtendedPointId
	DoubleList      []float64
	SparseVector    *SparseVector
	// contains filtered or unexported fields
}

func NewRecommendExampleFromDoubleList added in v0.0.35

func NewRecommendExampleFromDoubleList(value []float64) *RecommendExample

func NewRecommendExampleFromExtendedPointId added in v0.0.35

func NewRecommendExampleFromExtendedPointId(value *ExtendedPointId) *RecommendExample

func NewRecommendExampleFromSparseVector added in v0.0.35

func NewRecommendExampleFromSparseVector(value *SparseVector) *RecommendExample

func (*RecommendExample) Accept added in v0.0.35

func (r *RecommendExample) Accept(visitor RecommendExampleVisitor) error

func (RecommendExample) MarshalJSON added in v0.0.35

func (r RecommendExample) MarshalJSON() ([]byte, error)

func (*RecommendExample) UnmarshalJSON added in v0.0.35

func (r *RecommendExample) UnmarshalJSON(data []byte) error

type RecommendExampleVisitor added in v0.0.35

type RecommendExampleVisitor interface {
	VisitExtendedPointId(*ExtendedPointId) error
	VisitDoubleList([]float64) error
	VisitSparseVector(*SparseVector) error
}

type RecommendGroupsRequest added in v0.0.35

type RecommendGroupsRequest struct {
	// If set, overrides global timeout for this request. Unit is seconds.
	Timeout *int `json:"-"`
	// Specify in which shards to look for the points, if not specified - look in all shards
	ShardKey *core.Optional[RecommendGroupsRequestShardKey] `json:"shard_key,omitempty"`
	// Look for vectors closest to those
	Positive *core.Optional[[]*RecommendExample] `json:"positive,omitempty"`
	// Try to avoid vectors like this
	Negative *core.Optional[[]*RecommendExample] `json:"negative,omitempty"`
	// How to use positive and negative examples to find the results
	Strategy *core.Optional[RecommendGroupsRequestStrategy] `json:"strategy,omitempty"`
	// Look only for points which satisfies this conditions
	Filter *core.Optional[RecommendGroupsRequestFilter] `json:"filter,omitempty"`
	// Additional search params
	Params *core.Optional[RecommendGroupsRequestParams] `json:"params,omitempty"`
	// Select which payload to return with the response. Default: None
	WithPayload *core.Optional[RecommendGroupsRequestWithPayload] `json:"with_payload,omitempty"`
	// Whether to return the point vector with the result?
	WithVector *core.Optional[RecommendGroupsRequestWithVector] `json:"with_vector,omitempty"`
	// Define a minimal score threshold for the result. If defined, less similar results will not be returned. Score of the returned result might be higher or smaller than the threshold depending on the Distance function used. E.g. for cosine similarity only higher scores will be returned.
	ScoreThreshold *core.Optional[float64] `json:"score_threshold,omitempty"`
	// Define which vector to use for recommendation, if not specified - try to use default vector
	Using *core.Optional[RecommendGroupsRequestUsing] `json:"using,omitempty"`
	// The location used to lookup vectors. If not specified - use current collection. Note: the other collection should have the same vector size as the current collection
	LookupFrom *core.Optional[RecommendGroupsRequestLookupFrom] `json:"lookup_from,omitempty"`
	// Payload field to group by, must be a string or number field. If the field contains more than 1 value, all values will be used for grouping. One point can be in multiple groups.
	GroupBy string `json:"group_by"`
	// Maximum amount of points to return per group
	GroupSize int `json:"group_size"`
	// Maximum amount of groups to return
	Limit int `json:"limit"`
	// Look for points in another collection using the group ids
	WithLookup *core.Optional[RecommendGroupsRequestWithLookup] `json:"with_lookup,omitempty"`
}

type RecommendGroupsRequestFilter added in v0.0.35

type RecommendGroupsRequestFilter struct {
	Filter  *Filter
	Unknown interface{}
	// contains filtered or unexported fields
}

Look only for points which satisfies this conditions

func NewRecommendGroupsRequestFilterFromFilter added in v0.0.35

func NewRecommendGroupsRequestFilterFromFilter(value *Filter) *RecommendGroupsRequestFilter

func NewRecommendGroupsRequestFilterFromUnknown added in v0.0.35

func NewRecommendGroupsRequestFilterFromUnknown(value interface{}) *RecommendGroupsRequestFilter

func (*RecommendGroupsRequestFilter) Accept added in v0.0.35

func (RecommendGroupsRequestFilter) MarshalJSON added in v0.0.35

func (r RecommendGroupsRequestFilter) MarshalJSON() ([]byte, error)

func (*RecommendGroupsRequestFilter) UnmarshalJSON added in v0.0.35

func (r *RecommendGroupsRequestFilter) UnmarshalJSON(data []byte) error

type RecommendGroupsRequestFilterVisitor added in v0.0.35

type RecommendGroupsRequestFilterVisitor interface {
	VisitFilter(*Filter) error
	VisitUnknown(interface{}) error
}

type RecommendGroupsRequestLookupFrom added in v0.0.35

type RecommendGroupsRequestLookupFrom struct {
	LookupLocation *LookupLocation
	Unknown        interface{}
	// contains filtered or unexported fields
}

The location used to lookup vectors. If not specified - use current collection. Note: the other collection should have the same vector size as the current collection

func NewRecommendGroupsRequestLookupFromFromLookupLocation added in v0.0.35

func NewRecommendGroupsRequestLookupFromFromLookupLocation(value *LookupLocation) *RecommendGroupsRequestLookupFrom

func NewRecommendGroupsRequestLookupFromFromUnknown added in v0.0.35

func NewRecommendGroupsRequestLookupFromFromUnknown(value interface{}) *RecommendGroupsRequestLookupFrom

func (*RecommendGroupsRequestLookupFrom) Accept added in v0.0.35

func (RecommendGroupsRequestLookupFrom) MarshalJSON added in v0.0.35

func (r RecommendGroupsRequestLookupFrom) MarshalJSON() ([]byte, error)

func (*RecommendGroupsRequestLookupFrom) UnmarshalJSON added in v0.0.35

func (r *RecommendGroupsRequestLookupFrom) UnmarshalJSON(data []byte) error

type RecommendGroupsRequestLookupFromVisitor added in v0.0.35

type RecommendGroupsRequestLookupFromVisitor interface {
	VisitLookupLocation(*LookupLocation) error
	VisitUnknown(interface{}) error
}

type RecommendGroupsRequestParams added in v0.0.35

type RecommendGroupsRequestParams struct {
	SearchParams *SearchParams
	Unknown      interface{}
	// contains filtered or unexported fields
}

Additional search params

func NewRecommendGroupsRequestParamsFromSearchParams added in v0.0.35

func NewRecommendGroupsRequestParamsFromSearchParams(value *SearchParams) *RecommendGroupsRequestParams

func NewRecommendGroupsRequestParamsFromUnknown added in v0.0.35

func NewRecommendGroupsRequestParamsFromUnknown(value interface{}) *RecommendGroupsRequestParams

func (*RecommendGroupsRequestParams) Accept added in v0.0.35

func (RecommendGroupsRequestParams) MarshalJSON added in v0.0.35

func (r RecommendGroupsRequestParams) MarshalJSON() ([]byte, error)

func (*RecommendGroupsRequestParams) UnmarshalJSON added in v0.0.35

func (r *RecommendGroupsRequestParams) UnmarshalJSON(data []byte) error

type RecommendGroupsRequestParamsVisitor added in v0.0.35

type RecommendGroupsRequestParamsVisitor interface {
	VisitSearchParams(*SearchParams) error
	VisitUnknown(interface{}) error
}

type RecommendGroupsRequestShardKey added in v0.0.35

type RecommendGroupsRequestShardKey struct {
	ShardKeySelector *ShardKeySelector
	Unknown          interface{}
	// contains filtered or unexported fields
}

Specify in which shards to look for the points, if not specified - look in all shards

func NewRecommendGroupsRequestShardKeyFromShardKeySelector added in v0.0.35

func NewRecommendGroupsRequestShardKeyFromShardKeySelector(value *ShardKeySelector) *RecommendGroupsRequestShardKey

func NewRecommendGroupsRequestShardKeyFromUnknown added in v0.0.35

func NewRecommendGroupsRequestShardKeyFromUnknown(value interface{}) *RecommendGroupsRequestShardKey

func (*RecommendGroupsRequestShardKey) Accept added in v0.0.35

func (RecommendGroupsRequestShardKey) MarshalJSON added in v0.0.35

func (r RecommendGroupsRequestShardKey) MarshalJSON() ([]byte, error)

func (*RecommendGroupsRequestShardKey) UnmarshalJSON added in v0.0.35

func (r *RecommendGroupsRequestShardKey) UnmarshalJSON(data []byte) error

type RecommendGroupsRequestShardKeyVisitor added in v0.0.35

type RecommendGroupsRequestShardKeyVisitor interface {
	VisitShardKeySelector(*ShardKeySelector) error
	VisitUnknown(interface{}) error
}

type RecommendGroupsRequestStrategy added in v0.0.35

type RecommendGroupsRequestStrategy struct {
	RecommendStrategy RecommendStrategy
	Unknown           interface{}
	// contains filtered or unexported fields
}

How to use positive and negative examples to find the results

func NewRecommendGroupsRequestStrategyFromRecommendStrategy added in v0.0.35

func NewRecommendGroupsRequestStrategyFromRecommendStrategy(value RecommendStrategy) *RecommendGroupsRequestStrategy

func NewRecommendGroupsRequestStrategyFromUnknown added in v0.0.35

func NewRecommendGroupsRequestStrategyFromUnknown(value interface{}) *RecommendGroupsRequestStrategy

func (*RecommendGroupsRequestStrategy) Accept added in v0.0.35

func (RecommendGroupsRequestStrategy) MarshalJSON added in v0.0.35

func (r RecommendGroupsRequestStrategy) MarshalJSON() ([]byte, error)

func (*RecommendGroupsRequestStrategy) UnmarshalJSON added in v0.0.35

func (r *RecommendGroupsRequestStrategy) UnmarshalJSON(data []byte) error

type RecommendGroupsRequestStrategyVisitor added in v0.0.35

type RecommendGroupsRequestStrategyVisitor interface {
	VisitRecommendStrategy(RecommendStrategy) error
	VisitUnknown(interface{}) error
}

type RecommendGroupsRequestUsing added in v0.0.35

type RecommendGroupsRequestUsing struct {
	UsingVector UsingVector
	Unknown     interface{}
	// contains filtered or unexported fields
}

Define which vector to use for recommendation, if not specified - try to use default vector

func NewRecommendGroupsRequestUsingFromUnknown added in v0.0.35

func NewRecommendGroupsRequestUsingFromUnknown(value interface{}) *RecommendGroupsRequestUsing

func NewRecommendGroupsRequestUsingFromUsingVector added in v0.0.35

func NewRecommendGroupsRequestUsingFromUsingVector(value UsingVector) *RecommendGroupsRequestUsing

func (*RecommendGroupsRequestUsing) Accept added in v0.0.35

func (RecommendGroupsRequestUsing) MarshalJSON added in v0.0.35

func (r RecommendGroupsRequestUsing) MarshalJSON() ([]byte, error)

func (*RecommendGroupsRequestUsing) UnmarshalJSON added in v0.0.35

func (r *RecommendGroupsRequestUsing) UnmarshalJSON(data []byte) error

type RecommendGroupsRequestUsingVisitor added in v0.0.35

type RecommendGroupsRequestUsingVisitor interface {
	VisitUsingVector(UsingVector) error
	VisitUnknown(interface{}) error
}

type RecommendGroupsRequestWithLookup added in v0.0.35

type RecommendGroupsRequestWithLookup struct {
	WithLookupInterface *WithLookupInterface
	Unknown             interface{}
	// contains filtered or unexported fields
}

Look for points in another collection using the group ids

func NewRecommendGroupsRequestWithLookupFromUnknown added in v0.0.35

func NewRecommendGroupsRequestWithLookupFromUnknown(value interface{}) *RecommendGroupsRequestWithLookup

func NewRecommendGroupsRequestWithLookupFromWithLookupInterface added in v0.0.35

func NewRecommendGroupsRequestWithLookupFromWithLookupInterface(value *WithLookupInterface) *RecommendGroupsRequestWithLookup

func (*RecommendGroupsRequestWithLookup) Accept added in v0.0.35

func (RecommendGroupsRequestWithLookup) MarshalJSON added in v0.0.35

func (r RecommendGroupsRequestWithLookup) MarshalJSON() ([]byte, error)

func (*RecommendGroupsRequestWithLookup) UnmarshalJSON added in v0.0.35

func (r *RecommendGroupsRequestWithLookup) UnmarshalJSON(data []byte) error

type RecommendGroupsRequestWithLookupVisitor added in v0.0.35

type RecommendGroupsRequestWithLookupVisitor interface {
	VisitWithLookupInterface(*WithLookupInterface) error
	VisitUnknown(interface{}) error
}

type RecommendGroupsRequestWithPayload added in v0.0.35

type RecommendGroupsRequestWithPayload struct {
	WithPayloadInterface *WithPayloadInterface
	Unknown              interface{}
	// contains filtered or unexported fields
}

Select which payload to return with the response. Default: None

func NewRecommendGroupsRequestWithPayloadFromUnknown added in v0.0.35

func NewRecommendGroupsRequestWithPayloadFromUnknown(value interface{}) *RecommendGroupsRequestWithPayload

func NewRecommendGroupsRequestWithPayloadFromWithPayloadInterface added in v0.0.35

func NewRecommendGroupsRequestWithPayloadFromWithPayloadInterface(value *WithPayloadInterface) *RecommendGroupsRequestWithPayload

func (*RecommendGroupsRequestWithPayload) Accept added in v0.0.35

func (RecommendGroupsRequestWithPayload) MarshalJSON added in v0.0.35

func (r RecommendGroupsRequestWithPayload) MarshalJSON() ([]byte, error)

func (*RecommendGroupsRequestWithPayload) UnmarshalJSON added in v0.0.35

func (r *RecommendGroupsRequestWithPayload) UnmarshalJSON(data []byte) error

type RecommendGroupsRequestWithPayloadVisitor added in v0.0.35

type RecommendGroupsRequestWithPayloadVisitor interface {
	VisitWithPayloadInterface(*WithPayloadInterface) error
	VisitUnknown(interface{}) error
}

type RecommendGroupsRequestWithVector added in v0.0.35

type RecommendGroupsRequestWithVector struct {
	WithVector *WithVector
	Unknown    interface{}
	// contains filtered or unexported fields
}

Whether to return the point vector with the result?

func NewRecommendGroupsRequestWithVectorFromUnknown added in v0.0.35

func NewRecommendGroupsRequestWithVectorFromUnknown(value interface{}) *RecommendGroupsRequestWithVector

func NewRecommendGroupsRequestWithVectorFromWithVector added in v0.0.35

func NewRecommendGroupsRequestWithVectorFromWithVector(value *WithVector) *RecommendGroupsRequestWithVector

func (*RecommendGroupsRequestWithVector) Accept added in v0.0.35

func (RecommendGroupsRequestWithVector) MarshalJSON added in v0.0.35

func (r RecommendGroupsRequestWithVector) MarshalJSON() ([]byte, error)

func (*RecommendGroupsRequestWithVector) UnmarshalJSON added in v0.0.35

func (r *RecommendGroupsRequestWithVector) UnmarshalJSON(data []byte) error

type RecommendGroupsRequestWithVectorVisitor added in v0.0.35

type RecommendGroupsRequestWithVectorVisitor interface {
	VisitWithVector(*WithVector) error
	VisitUnknown(interface{}) error
}

type RecommendPointGroupsResponse added in v0.0.35

type RecommendPointGroupsResponse struct {
	// Time spent to process this request
	Time   *float64      `json:"time,omitempty"`
	Status *string       `json:"status,omitempty"`
	Result *GroupsResult `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*RecommendPointGroupsResponse) String added in v0.0.35

func (*RecommendPointGroupsResponse) UnmarshalJSON added in v0.0.35

func (r *RecommendPointGroupsResponse) UnmarshalJSON(data []byte) error

type RecommendPointsRequest added in v0.0.35

type RecommendPointsRequest struct {
	// If set, overrides global timeout for this request. Unit is seconds.
	Timeout *int              `json:"-"`
	Body    *RecommendRequest `json:"-"`
}

func (*RecommendPointsRequest) MarshalJSON added in v0.0.35

func (r *RecommendPointsRequest) MarshalJSON() ([]byte, error)

func (*RecommendPointsRequest) UnmarshalJSON added in v0.0.35

func (r *RecommendPointsRequest) UnmarshalJSON(data []byte) error

type RecommendPointsResponse added in v0.0.35

type RecommendPointsResponse struct {
	// Time spent to process this request
	Time   *float64       `json:"time,omitempty"`
	Status *string        `json:"status,omitempty"`
	Result []*ScoredPoint `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*RecommendPointsResponse) String added in v0.0.35

func (r *RecommendPointsResponse) String() string

func (*RecommendPointsResponse) UnmarshalJSON added in v0.0.35

func (r *RecommendPointsResponse) UnmarshalJSON(data []byte) error

type RecommendRequest added in v0.0.35

type RecommendRequest struct {
	// Specify in which shards to look for the points, if not specified - look in all shards
	ShardKey *RecommendRequestShardKey `json:"shard_key,omitempty"`
	// Look for vectors closest to those
	Positive []*RecommendExample `json:"positive,omitempty"`
	// Try to avoid vectors like this
	Negative []*RecommendExample `json:"negative,omitempty"`
	// How to use positive and negative examples to find the results
	Strategy *RecommendRequestStrategy `json:"strategy,omitempty"`
	// Look only for points which satisfies this conditions
	Filter *RecommendRequestFilter `json:"filter,omitempty"`
	// Additional search params
	Params *RecommendRequestParams `json:"params,omitempty"`
	// Max number of result to return
	Limit int `json:"limit"`
	// Offset of the first result to return. May be used to paginate results. Note: large offset values may cause performance issues.
	Offset *int `json:"offset,omitempty"`
	// Select which payload to return with the response. Default: None
	WithPayload *RecommendRequestWithPayload `json:"with_payload,omitempty"`
	// Whether to return the point vector with the result?
	WithVector *RecommendRequestWithVector `json:"with_vector,omitempty"`
	// Define a minimal score threshold for the result. If defined, less similar results will not be returned. Score of the returned result might be higher or smaller than the threshold depending on the Distance function used. E.g. for cosine similarity only higher scores will be returned.
	ScoreThreshold *float64 `json:"score_threshold,omitempty"`
	// Define which vector to use for recommendation, if not specified - try to use default vector
	Using *RecommendRequestUsing `json:"using,omitempty"`
	// The location used to lookup vectors. If not specified - use current collection. Note: the other collection should have the same vector size as the current collection
	LookupFrom *RecommendRequestLookupFrom `json:"lookup_from,omitempty"`
	// contains filtered or unexported fields
}

Recommendation request. Provides positive and negative examples of the vectors, which can be ids of points that are already stored in the collection, raw vectors, or even ids and vectors combined.

Service should look for the points which are closer to positive examples and at the same time further to negative examples. The concrete way of how to compare negative and positive distances is up to the `strategy` chosen.

func (*RecommendRequest) String added in v0.0.35

func (r *RecommendRequest) String() string

func (*RecommendRequest) UnmarshalJSON added in v0.0.35

func (r *RecommendRequest) UnmarshalJSON(data []byte) error

type RecommendRequestBatch added in v0.0.35

type RecommendRequestBatch struct {
	// If set, overrides global timeout for this request. Unit is seconds.
	Timeout  *int                `json:"-"`
	Searches []*RecommendRequest `json:"searches,omitempty"`
}

type RecommendRequestFilter added in v0.0.35

type RecommendRequestFilter struct {
	Filter  *Filter
	Unknown interface{}
	// contains filtered or unexported fields
}

Look only for points which satisfies this conditions

func NewRecommendRequestFilterFromFilter added in v0.0.35

func NewRecommendRequestFilterFromFilter(value *Filter) *RecommendRequestFilter

func NewRecommendRequestFilterFromUnknown added in v0.0.35

func NewRecommendRequestFilterFromUnknown(value interface{}) *RecommendRequestFilter

func (*RecommendRequestFilter) Accept added in v0.0.35

func (RecommendRequestFilter) MarshalJSON added in v0.0.35

func (r RecommendRequestFilter) MarshalJSON() ([]byte, error)

func (*RecommendRequestFilter) UnmarshalJSON added in v0.0.35

func (r *RecommendRequestFilter) UnmarshalJSON(data []byte) error

type RecommendRequestFilterVisitor added in v0.0.35

type RecommendRequestFilterVisitor interface {
	VisitFilter(*Filter) error
	VisitUnknown(interface{}) error
}

type RecommendRequestLookupFrom added in v0.0.35

type RecommendRequestLookupFrom struct {
	LookupLocation *LookupLocation
	Unknown        interface{}
	// contains filtered or unexported fields
}

The location used to lookup vectors. If not specified - use current collection. Note: the other collection should have the same vector size as the current collection

func NewRecommendRequestLookupFromFromLookupLocation added in v0.0.35

func NewRecommendRequestLookupFromFromLookupLocation(value *LookupLocation) *RecommendRequestLookupFrom

func NewRecommendRequestLookupFromFromUnknown added in v0.0.35

func NewRecommendRequestLookupFromFromUnknown(value interface{}) *RecommendRequestLookupFrom

func (*RecommendRequestLookupFrom) Accept added in v0.0.35

func (RecommendRequestLookupFrom) MarshalJSON added in v0.0.35

func (r RecommendRequestLookupFrom) MarshalJSON() ([]byte, error)

func (*RecommendRequestLookupFrom) UnmarshalJSON added in v0.0.35

func (r *RecommendRequestLookupFrom) UnmarshalJSON(data []byte) error

type RecommendRequestLookupFromVisitor added in v0.0.35

type RecommendRequestLookupFromVisitor interface {
	VisitLookupLocation(*LookupLocation) error
	VisitUnknown(interface{}) error
}

type RecommendRequestParams added in v0.0.35

type RecommendRequestParams struct {
	SearchParams *SearchParams
	Unknown      interface{}
	// contains filtered or unexported fields
}

Additional search params

func NewRecommendRequestParamsFromSearchParams added in v0.0.35

func NewRecommendRequestParamsFromSearchParams(value *SearchParams) *RecommendRequestParams

func NewRecommendRequestParamsFromUnknown added in v0.0.35

func NewRecommendRequestParamsFromUnknown(value interface{}) *RecommendRequestParams

func (*RecommendRequestParams) Accept added in v0.0.35

func (RecommendRequestParams) MarshalJSON added in v0.0.35

func (r RecommendRequestParams) MarshalJSON() ([]byte, error)

func (*RecommendRequestParams) UnmarshalJSON added in v0.0.35

func (r *RecommendRequestParams) UnmarshalJSON(data []byte) error

type RecommendRequestParamsVisitor added in v0.0.35

type RecommendRequestParamsVisitor interface {
	VisitSearchParams(*SearchParams) error
	VisitUnknown(interface{}) error
}

type RecommendRequestShardKey added in v0.0.35

type RecommendRequestShardKey struct {
	ShardKeySelector *ShardKeySelector
	Unknown          interface{}
	// contains filtered or unexported fields
}

Specify in which shards to look for the points, if not specified - look in all shards

func NewRecommendRequestShardKeyFromShardKeySelector added in v0.0.35

func NewRecommendRequestShardKeyFromShardKeySelector(value *ShardKeySelector) *RecommendRequestShardKey

func NewRecommendRequestShardKeyFromUnknown added in v0.0.35

func NewRecommendRequestShardKeyFromUnknown(value interface{}) *RecommendRequestShardKey

func (*RecommendRequestShardKey) Accept added in v0.0.35

func (RecommendRequestShardKey) MarshalJSON added in v0.0.35

func (r RecommendRequestShardKey) MarshalJSON() ([]byte, error)

func (*RecommendRequestShardKey) UnmarshalJSON added in v0.0.35

func (r *RecommendRequestShardKey) UnmarshalJSON(data []byte) error

type RecommendRequestShardKeyVisitor added in v0.0.35

type RecommendRequestShardKeyVisitor interface {
	VisitShardKeySelector(*ShardKeySelector) error
	VisitUnknown(interface{}) error
}

type RecommendRequestStrategy added in v0.0.35

type RecommendRequestStrategy struct {
	RecommendStrategy RecommendStrategy
	Unknown           interface{}
	// contains filtered or unexported fields
}

How to use positive and negative examples to find the results

func NewRecommendRequestStrategyFromRecommendStrategy added in v0.0.35

func NewRecommendRequestStrategyFromRecommendStrategy(value RecommendStrategy) *RecommendRequestStrategy

func NewRecommendRequestStrategyFromUnknown added in v0.0.35

func NewRecommendRequestStrategyFromUnknown(value interface{}) *RecommendRequestStrategy

func (*RecommendRequestStrategy) Accept added in v0.0.35

func (RecommendRequestStrategy) MarshalJSON added in v0.0.35

func (r RecommendRequestStrategy) MarshalJSON() ([]byte, error)

func (*RecommendRequestStrategy) UnmarshalJSON added in v0.0.35

func (r *RecommendRequestStrategy) UnmarshalJSON(data []byte) error

type RecommendRequestStrategyVisitor added in v0.0.35

type RecommendRequestStrategyVisitor interface {
	VisitRecommendStrategy(RecommendStrategy) error
	VisitUnknown(interface{}) error
}

type RecommendRequestUsing added in v0.0.35

type RecommendRequestUsing struct {
	UsingVector UsingVector
	Unknown     interface{}
	// contains filtered or unexported fields
}

Define which vector to use for recommendation, if not specified - try to use default vector

func NewRecommendRequestUsingFromUnknown added in v0.0.35

func NewRecommendRequestUsingFromUnknown(value interface{}) *RecommendRequestUsing

func NewRecommendRequestUsingFromUsingVector added in v0.0.35

func NewRecommendRequestUsingFromUsingVector(value UsingVector) *RecommendRequestUsing

func (*RecommendRequestUsing) Accept added in v0.0.35

func (RecommendRequestUsing) MarshalJSON added in v0.0.35

func (r RecommendRequestUsing) MarshalJSON() ([]byte, error)

func (*RecommendRequestUsing) UnmarshalJSON added in v0.0.35

func (r *RecommendRequestUsing) UnmarshalJSON(data []byte) error

type RecommendRequestUsingVisitor added in v0.0.35

type RecommendRequestUsingVisitor interface {
	VisitUsingVector(UsingVector) error
	VisitUnknown(interface{}) error
}

type RecommendRequestWithPayload added in v0.0.35

type RecommendRequestWithPayload struct {
	WithPayloadInterface *WithPayloadInterface
	Unknown              interface{}
	// contains filtered or unexported fields
}

Select which payload to return with the response. Default: None

func NewRecommendRequestWithPayloadFromUnknown added in v0.0.35

func NewRecommendRequestWithPayloadFromUnknown(value interface{}) *RecommendRequestWithPayload

func NewRecommendRequestWithPayloadFromWithPayloadInterface added in v0.0.35

func NewRecommendRequestWithPayloadFromWithPayloadInterface(value *WithPayloadInterface) *RecommendRequestWithPayload

func (*RecommendRequestWithPayload) Accept added in v0.0.35

func (RecommendRequestWithPayload) MarshalJSON added in v0.0.35

func (r RecommendRequestWithPayload) MarshalJSON() ([]byte, error)

func (*RecommendRequestWithPayload) UnmarshalJSON added in v0.0.35

func (r *RecommendRequestWithPayload) UnmarshalJSON(data []byte) error

type RecommendRequestWithPayloadVisitor added in v0.0.35

type RecommendRequestWithPayloadVisitor interface {
	VisitWithPayloadInterface(*WithPayloadInterface) error
	VisitUnknown(interface{}) error
}

type RecommendRequestWithVector added in v0.0.35

type RecommendRequestWithVector struct {
	WithVector *WithVector
	Unknown    interface{}
	// contains filtered or unexported fields
}

Whether to return the point vector with the result?

func NewRecommendRequestWithVectorFromUnknown added in v0.0.35

func NewRecommendRequestWithVectorFromUnknown(value interface{}) *RecommendRequestWithVector

func NewRecommendRequestWithVectorFromWithVector added in v0.0.35

func NewRecommendRequestWithVectorFromWithVector(value *WithVector) *RecommendRequestWithVector

func (*RecommendRequestWithVector) Accept added in v0.0.35

func (RecommendRequestWithVector) MarshalJSON added in v0.0.35

func (r RecommendRequestWithVector) MarshalJSON() ([]byte, error)

func (*RecommendRequestWithVector) UnmarshalJSON added in v0.0.35

func (r *RecommendRequestWithVector) UnmarshalJSON(data []byte) error

type RecommendRequestWithVectorVisitor added in v0.0.35

type RecommendRequestWithVectorVisitor interface {
	VisitWithVector(*WithVector) error
	VisitUnknown(interface{}) error
}

type RecommendStrategy added in v0.0.35

type RecommendStrategy string

How to use positive and negative examples to find the results, default is `average_vector`:

- `average_vector` - Average positive and negative vectors and create a single query with the formula `query = avg_pos + avg_pos - avg_neg`. Then performs normal search.

- `best_score` - Uses custom search objective. Each candidate is compared against all examples, its score is then chosen from the `max(max_pos_score, max_neg_score)`. If the `max_neg_score` is chosen then it is squared and negated, otherwise it is just the `max_pos_score`.

const (
	RecommendStrategyAverageVector RecommendStrategy = "average_vector"
	RecommendStrategyBestScore     RecommendStrategy = "best_score"
)

func NewRecommendStrategyFromString added in v0.0.35

func NewRecommendStrategyFromString(s string) (RecommendStrategy, error)

func (RecommendStrategy) Ptr added in v0.0.35

type Record added in v0.0.35

type Record struct {
	Id *ExtendedPointId `json:"id,omitempty"`
	// Payload - values assigned to the point
	Payload *RecordPayload `json:"payload,omitempty"`
	// Vector of the point
	Vector *RecordVector `json:"vector,omitempty"`
	// Shard Key
	ShardKey *RecordShardKey `json:"shard_key,omitempty"`
	// contains filtered or unexported fields
}

Point data

func (*Record) String added in v0.0.35

func (r *Record) String() string

func (*Record) UnmarshalJSON added in v0.0.35

func (r *Record) UnmarshalJSON(data []byte) error

type RecordPayload added in v0.0.35

type RecordPayload struct {
	Payload Payload
	Unknown interface{}
	// contains filtered or unexported fields
}

Payload - values assigned to the point

func NewRecordPayloadFromPayload added in v0.0.35

func NewRecordPayloadFromPayload(value Payload) *RecordPayload

func NewRecordPayloadFromUnknown added in v0.0.35

func NewRecordPayloadFromUnknown(value interface{}) *RecordPayload

func (*RecordPayload) Accept added in v0.0.35

func (r *RecordPayload) Accept(visitor RecordPayloadVisitor) error

func (RecordPayload) MarshalJSON added in v0.0.35

func (r RecordPayload) MarshalJSON() ([]byte, error)

func (*RecordPayload) UnmarshalJSON added in v0.0.35

func (r *RecordPayload) UnmarshalJSON(data []byte) error

type RecordPayloadVisitor added in v0.0.35

type RecordPayloadVisitor interface {
	VisitPayload(Payload) error
	VisitUnknown(interface{}) error
}

type RecordShardKey added in v0.0.35

type RecordShardKey struct {
	ShardKey *ShardKey
	Unknown  interface{}
	// contains filtered or unexported fields
}

Shard Key

func NewRecordShardKeyFromShardKey added in v0.0.35

func NewRecordShardKeyFromShardKey(value *ShardKey) *RecordShardKey

func NewRecordShardKeyFromUnknown added in v0.0.35

func NewRecordShardKeyFromUnknown(value interface{}) *RecordShardKey

func (*RecordShardKey) Accept added in v0.0.35

func (r *RecordShardKey) Accept(visitor RecordShardKeyVisitor) error

func (RecordShardKey) MarshalJSON added in v0.0.35

func (r RecordShardKey) MarshalJSON() ([]byte, error)

func (*RecordShardKey) UnmarshalJSON added in v0.0.35

func (r *RecordShardKey) UnmarshalJSON(data []byte) error

type RecordShardKeyVisitor added in v0.0.35

type RecordShardKeyVisitor interface {
	VisitShardKey(*ShardKey) error
	VisitUnknown(interface{}) error
}

type RecordVector added in v0.0.35

type RecordVector struct {
	VectorStruct *VectorStruct
	Unknown      interface{}
	// contains filtered or unexported fields
}

Vector of the point

func NewRecordVectorFromUnknown added in v0.0.35

func NewRecordVectorFromUnknown(value interface{}) *RecordVector

func NewRecordVectorFromVectorStruct added in v0.0.35

func NewRecordVectorFromVectorStruct(value *VectorStruct) *RecordVector

func (*RecordVector) Accept added in v0.0.35

func (r *RecordVector) Accept(visitor RecordVectorVisitor) error

func (RecordVector) MarshalJSON added in v0.0.35

func (r RecordVector) MarshalJSON() ([]byte, error)

func (*RecordVector) UnmarshalJSON added in v0.0.35

func (r *RecordVector) UnmarshalJSON(data []byte) error

type RecordVectorVisitor added in v0.0.35

type RecordVectorVisitor interface {
	VisitVectorStruct(*VectorStruct) error
	VisitUnknown(interface{}) error
}

type RecoverCurrentPeerResponse added in v0.0.35

type RecoverCurrentPeerResponse struct {
	// Time spent to process this request
	Time   *float64 `json:"time,omitempty"`
	Status *string  `json:"status,omitempty"`
	Result *bool    `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*RecoverCurrentPeerResponse) String added in v0.0.35

func (r *RecoverCurrentPeerResponse) String() string

func (*RecoverCurrentPeerResponse) UnmarshalJSON added in v0.0.35

func (r *RecoverCurrentPeerResponse) UnmarshalJSON(data []byte) error

type RecoverFromSnapshotResponse added in v0.0.35

type RecoverFromSnapshotResponse struct {
	// Time spent to process this request
	Time   *float64 `json:"time,omitempty"`
	Status *string  `json:"status,omitempty"`
	Result *bool    `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*RecoverFromSnapshotResponse) String added in v0.0.35

func (r *RecoverFromSnapshotResponse) String() string

func (*RecoverFromSnapshotResponse) UnmarshalJSON added in v0.0.35

func (r *RecoverFromSnapshotResponse) UnmarshalJSON(data []byte) error

type RecoverFromUploadedSnapshotRequest added in v0.0.35

type RecoverFromUploadedSnapshotRequest struct {
	// If true, wait for changes to actually happen. If false - let changes happen in background. Default is true.
	Wait *bool `json:"-"`
	// Defines source of truth for snapshot recovery
	Priority *SnapshotPriority `json:"-"`
}

type RecoverFromUploadedSnapshotResponse added in v0.0.35

type RecoverFromUploadedSnapshotResponse struct {
	// Time spent to process this request
	Time   *float64 `json:"time,omitempty"`
	Status *string  `json:"status,omitempty"`
	Result *bool    `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*RecoverFromUploadedSnapshotResponse) String added in v0.0.35

func (*RecoverFromUploadedSnapshotResponse) UnmarshalJSON added in v0.0.35

func (r *RecoverFromUploadedSnapshotResponse) UnmarshalJSON(data []byte) error

type RecoverShardFromSnapshotResponse added in v0.0.35

type RecoverShardFromSnapshotResponse struct {
	// Time spent to process this request
	Time   *float64 `json:"time,omitempty"`
	Status *string  `json:"status,omitempty"`
	Result *bool    `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*RecoverShardFromSnapshotResponse) String added in v0.0.35

func (*RecoverShardFromSnapshotResponse) UnmarshalJSON added in v0.0.35

func (r *RecoverShardFromSnapshotResponse) UnmarshalJSON(data []byte) error

type RecoverShardFromUploadedSnapshotRequest added in v0.0.35

type RecoverShardFromUploadedSnapshotRequest struct {
	// If true, wait for changes to actually happen. If false - let changes happen in background. Default is true.
	Wait *bool `json:"-"`
	// Defines source of truth for snapshot recovery
	Priority *SnapshotPriority `json:"-"`
}

type RecoverShardFromUploadedSnapshotResponse added in v0.0.35

type RecoverShardFromUploadedSnapshotResponse struct {
	// Time spent to process this request
	Time   *float64 `json:"time,omitempty"`
	Status *string  `json:"status,omitempty"`
	Result *bool    `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*RecoverShardFromUploadedSnapshotResponse) String added in v0.0.35

func (*RecoverShardFromUploadedSnapshotResponse) UnmarshalJSON added in v0.0.35

func (r *RecoverShardFromUploadedSnapshotResponse) UnmarshalJSON(data []byte) error

type RemoteShardInfo added in v0.0.35

type RemoteShardInfo struct {
	// Remote shard id
	ShardId int `json:"shard_id"`
	// User-defined sharding key
	ShardKey *RemoteShardInfoShardKey `json:"shard_key,omitempty"`
	// Remote peer id
	PeerId int          `json:"peer_id"`
	State  ReplicaState `json:"state,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoteShardInfo) String added in v0.0.35

func (r *RemoteShardInfo) String() string

func (*RemoteShardInfo) UnmarshalJSON added in v0.0.35

func (r *RemoteShardInfo) UnmarshalJSON(data []byte) error

type RemoteShardInfoShardKey added in v0.0.35

type RemoteShardInfoShardKey struct {
	ShardKey *ShardKey
	Unknown  interface{}
	// contains filtered or unexported fields
}

User-defined sharding key

func NewRemoteShardInfoShardKeyFromShardKey added in v0.0.35

func NewRemoteShardInfoShardKeyFromShardKey(value *ShardKey) *RemoteShardInfoShardKey

func NewRemoteShardInfoShardKeyFromUnknown added in v0.0.35

func NewRemoteShardInfoShardKeyFromUnknown(value interface{}) *RemoteShardInfoShardKey

func (*RemoteShardInfoShardKey) Accept added in v0.0.35

func (RemoteShardInfoShardKey) MarshalJSON added in v0.0.35

func (r RemoteShardInfoShardKey) MarshalJSON() ([]byte, error)

func (*RemoteShardInfoShardKey) UnmarshalJSON added in v0.0.35

func (r *RemoteShardInfoShardKey) UnmarshalJSON(data []byte) error

type RemoteShardInfoShardKeyVisitor added in v0.0.35

type RemoteShardInfoShardKeyVisitor interface {
	VisitShardKey(*ShardKey) error
	VisitUnknown(interface{}) error
}

type RemoteShardTelemetry added in v0.0.35

type RemoteShardTelemetry struct {
	ShardId  int                          `json:"shard_id"`
	PeerId   *int                         `json:"peer_id,omitempty"`
	Searches *OperationDurationStatistics `json:"searches,omitempty"`
	Updates  *OperationDurationStatistics `json:"updates,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoteShardTelemetry) String added in v0.0.35

func (r *RemoteShardTelemetry) String() string

func (*RemoteShardTelemetry) UnmarshalJSON added in v0.0.35

func (r *RemoteShardTelemetry) UnmarshalJSON(data []byte) error

type RemovePeerRequest added in v0.0.35

type RemovePeerRequest struct {
	// If true - removes peer even if it has shards/replicas on it.
	Force *bool `json:"-"`
}

type RemovePeerResponse added in v0.0.35

type RemovePeerResponse struct {
	// Time spent to process this request
	Time   *float64 `json:"time,omitempty"`
	Status *string  `json:"status,omitempty"`
	Result *bool    `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*RemovePeerResponse) String added in v0.0.35

func (r *RemovePeerResponse) String() string

func (*RemovePeerResponse) UnmarshalJSON added in v0.0.35

func (r *RemovePeerResponse) UnmarshalJSON(data []byte) error

type RenameAlias added in v0.0.35

type RenameAlias struct {
	OldAliasName string `json:"old_alias_name"`
	NewAliasName string `json:"new_alias_name"`
	// contains filtered or unexported fields
}

Change alias to a new one

func (*RenameAlias) String added in v0.0.35

func (r *RenameAlias) String() string

func (*RenameAlias) UnmarshalJSON added in v0.0.35

func (r *RenameAlias) UnmarshalJSON(data []byte) error

type RenameAliasOperation added in v0.0.35

type RenameAliasOperation struct {
	RenameAlias *RenameAlias `json:"rename_alias,omitempty"`
	// contains filtered or unexported fields
}

Change alias to a new one

func (*RenameAliasOperation) String added in v0.0.35

func (r *RenameAliasOperation) String() string

func (*RenameAliasOperation) UnmarshalJSON added in v0.0.35

func (r *RenameAliasOperation) UnmarshalJSON(data []byte) error

type Replica added in v0.0.35

type Replica struct {
	ShardId int `json:"shard_id"`
	PeerId  int `json:"peer_id"`
	// contains filtered or unexported fields
}

func (*Replica) String added in v0.0.35

func (r *Replica) String() string

func (*Replica) UnmarshalJSON added in v0.0.35

func (r *Replica) UnmarshalJSON(data []byte) error

type ReplicaSetTelemetry added in v0.0.35

type ReplicaSetTelemetry struct {
	Id              int                       `json:"id"`
	Local           *ReplicaSetTelemetryLocal `json:"local,omitempty"`
	Remote          []*RemoteShardTelemetry   `json:"remote,omitempty"`
	ReplicateStates map[string]ReplicaState   `json:"replicate_states,omitempty"`
	// contains filtered or unexported fields
}

func (*ReplicaSetTelemetry) String added in v0.0.35

func (r *ReplicaSetTelemetry) String() string

func (*ReplicaSetTelemetry) UnmarshalJSON added in v0.0.35

func (r *ReplicaSetTelemetry) UnmarshalJSON(data []byte) error

type ReplicaSetTelemetryLocal added in v0.0.35

type ReplicaSetTelemetryLocal struct {
	LocalShardTelemetry *LocalShardTelemetry
	Unknown             interface{}
	// contains filtered or unexported fields
}

func NewReplicaSetTelemetryLocalFromLocalShardTelemetry added in v0.0.35

func NewReplicaSetTelemetryLocalFromLocalShardTelemetry(value *LocalShardTelemetry) *ReplicaSetTelemetryLocal

func NewReplicaSetTelemetryLocalFromUnknown added in v0.0.35

func NewReplicaSetTelemetryLocalFromUnknown(value interface{}) *ReplicaSetTelemetryLocal

func (*ReplicaSetTelemetryLocal) Accept added in v0.0.35

func (ReplicaSetTelemetryLocal) MarshalJSON added in v0.0.35

func (r ReplicaSetTelemetryLocal) MarshalJSON() ([]byte, error)

func (*ReplicaSetTelemetryLocal) UnmarshalJSON added in v0.0.35

func (r *ReplicaSetTelemetryLocal) UnmarshalJSON(data []byte) error

type ReplicaSetTelemetryLocalVisitor added in v0.0.35

type ReplicaSetTelemetryLocalVisitor interface {
	VisitLocalShardTelemetry(*LocalShardTelemetry) error
	VisitUnknown(interface{}) error
}

type ReplicaState added in v0.0.35

type ReplicaState string

State of the single shard within a replica set.

const (
	ReplicaStateActive          ReplicaState = "Active"
	ReplicaStateDead            ReplicaState = "Dead"
	ReplicaStatePartial         ReplicaState = "Partial"
	ReplicaStateInitializing    ReplicaState = "Initializing"
	ReplicaStateListener        ReplicaState = "Listener"
	ReplicaStatePartialSnapshot ReplicaState = "PartialSnapshot"
)

func NewReplicaStateFromString added in v0.0.35

func NewReplicaStateFromString(s string) (ReplicaState, error)

func (ReplicaState) Ptr added in v0.0.35

func (r ReplicaState) Ptr() *ReplicaState

type ReplicateShardOperation added in v0.0.35

type ReplicateShardOperation struct {
	ReplicateShard *MoveShard `json:"replicate_shard,omitempty"`
	// contains filtered or unexported fields
}

func (*ReplicateShardOperation) String added in v0.0.35

func (r *ReplicateShardOperation) String() string

func (*ReplicateShardOperation) UnmarshalJSON added in v0.0.35

func (r *ReplicateShardOperation) UnmarshalJSON(data []byte) error

type RequestsTelemetry added in v0.0.35

type RequestsTelemetry struct {
	Rest *WebApiTelemetry `json:"rest,omitempty"`
	Grpc *GrpcTelemetry   `json:"grpc,omitempty"`
	// contains filtered or unexported fields
}

func (*RequestsTelemetry) String added in v0.0.35

func (r *RequestsTelemetry) String() string

func (*RequestsTelemetry) UnmarshalJSON added in v0.0.35

func (r *RequestsTelemetry) UnmarshalJSON(data []byte) error

type RunningEnvironmentTelemetry added in v0.0.35

type RunningEnvironmentTelemetry struct {
	Distribution        *string `json:"distribution,omitempty"`
	DistributionVersion *string `json:"distribution_version,omitempty"`
	IsDocker            bool    `json:"is_docker"`
	Cores               *int    `json:"cores,omitempty"`
	RamSize             *int    `json:"ram_size,omitempty"`
	DiskSize            *int    `json:"disk_size,omitempty"`
	CpuFlags            string  `json:"cpu_flags"`
	// contains filtered or unexported fields
}

func (*RunningEnvironmentTelemetry) String added in v0.0.35

func (r *RunningEnvironmentTelemetry) String() string

func (*RunningEnvironmentTelemetry) UnmarshalJSON added in v0.0.35

func (r *RunningEnvironmentTelemetry) UnmarshalJSON(data []byte) error

type ScalarQuantization added in v0.0.35

type ScalarQuantization struct {
	Scalar *ScalarQuantizationConfig `json:"scalar,omitempty"`
	// contains filtered or unexported fields
}

func (*ScalarQuantization) String added in v0.0.35

func (s *ScalarQuantization) String() string

func (*ScalarQuantization) UnmarshalJSON added in v0.0.35

func (s *ScalarQuantization) UnmarshalJSON(data []byte) error

type ScalarQuantizationConfig added in v0.0.35

type ScalarQuantizationConfig struct {
	Type ScalarType `json:"type,omitempty"`
	// Quantile for quantization. Expected value range in [0.5, 1.0]. If not set - use the whole range of values
	Quantile *float64 `json:"quantile,omitempty"`
	// If true - quantized vectors always will be stored in RAM, ignoring the config of main storage
	AlwaysRam *bool `json:"always_ram,omitempty"`
	// contains filtered or unexported fields
}

func (*ScalarQuantizationConfig) String added in v0.0.35

func (s *ScalarQuantizationConfig) String() string

func (*ScalarQuantizationConfig) UnmarshalJSON added in v0.0.35

func (s *ScalarQuantizationConfig) UnmarshalJSON(data []byte) error

type ScalarType added in v0.0.35

type ScalarType = string

type ScoredPoint added in v0.0.35

type ScoredPoint struct {
	Id *ExtendedPointId `json:"id,omitempty"`
	// Point version
	Version int `json:"version"`
	// Points vector distance to the query vector
	Score float64 `json:"score"`
	// Payload - values assigned to the point
	Payload *ScoredPointPayload `json:"payload,omitempty"`
	// Vector of the point
	Vector *ScoredPointVector `json:"vector,omitempty"`
	// Shard Key
	ShardKey *ScoredPointShardKey `json:"shard_key,omitempty"`
	// contains filtered or unexported fields
}

Search result

func (*ScoredPoint) String added in v0.0.35

func (s *ScoredPoint) String() string

func (*ScoredPoint) UnmarshalJSON added in v0.0.35

func (s *ScoredPoint) UnmarshalJSON(data []byte) error

type ScoredPointPayload added in v0.0.35

type ScoredPointPayload struct {
	Payload Payload
	Unknown interface{}
	// contains filtered or unexported fields
}

Payload - values assigned to the point

func NewScoredPointPayloadFromPayload added in v0.0.35

func NewScoredPointPayloadFromPayload(value Payload) *ScoredPointPayload

func NewScoredPointPayloadFromUnknown added in v0.0.35

func NewScoredPointPayloadFromUnknown(value interface{}) *ScoredPointPayload

func (*ScoredPointPayload) Accept added in v0.0.35

func (ScoredPointPayload) MarshalJSON added in v0.0.35

func (s ScoredPointPayload) MarshalJSON() ([]byte, error)

func (*ScoredPointPayload) UnmarshalJSON added in v0.0.35

func (s *ScoredPointPayload) UnmarshalJSON(data []byte) error

type ScoredPointPayloadVisitor added in v0.0.35

type ScoredPointPayloadVisitor interface {
	VisitPayload(Payload) error
	VisitUnknown(interface{}) error
}

type ScoredPointShardKey added in v0.0.35

type ScoredPointShardKey struct {
	ShardKey *ShardKey
	Unknown  interface{}
	// contains filtered or unexported fields
}

Shard Key

func NewScoredPointShardKeyFromShardKey added in v0.0.35

func NewScoredPointShardKeyFromShardKey(value *ShardKey) *ScoredPointShardKey

func NewScoredPointShardKeyFromUnknown added in v0.0.35

func NewScoredPointShardKeyFromUnknown(value interface{}) *ScoredPointShardKey

func (*ScoredPointShardKey) Accept added in v0.0.35

func (ScoredPointShardKey) MarshalJSON added in v0.0.35

func (s ScoredPointShardKey) MarshalJSON() ([]byte, error)

func (*ScoredPointShardKey) UnmarshalJSON added in v0.0.35

func (s *ScoredPointShardKey) UnmarshalJSON(data []byte) error

type ScoredPointShardKeyVisitor added in v0.0.35

type ScoredPointShardKeyVisitor interface {
	VisitShardKey(*ShardKey) error
	VisitUnknown(interface{}) error
}

type ScoredPointVector added in v0.0.35

type ScoredPointVector struct {
	VectorStruct *VectorStruct
	Unknown      interface{}
	// contains filtered or unexported fields
}

Vector of the point

func NewScoredPointVectorFromUnknown added in v0.0.35

func NewScoredPointVectorFromUnknown(value interface{}) *ScoredPointVector

func NewScoredPointVectorFromVectorStruct added in v0.0.35

func NewScoredPointVectorFromVectorStruct(value *VectorStruct) *ScoredPointVector

func (*ScoredPointVector) Accept added in v0.0.35

func (ScoredPointVector) MarshalJSON added in v0.0.35

func (s ScoredPointVector) MarshalJSON() ([]byte, error)

func (*ScoredPointVector) UnmarshalJSON added in v0.0.35

func (s *ScoredPointVector) UnmarshalJSON(data []byte) error

type ScoredPointVectorVisitor added in v0.0.35

type ScoredPointVectorVisitor interface {
	VisitVectorStruct(*VectorStruct) error
	VisitUnknown(interface{}) error
}

type ScrollPointsResponse added in v0.0.35

type ScrollPointsResponse struct {
	// Time spent to process this request
	Time   *float64      `json:"time,omitempty"`
	Status *string       `json:"status,omitempty"`
	Result *ScrollResult `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*ScrollPointsResponse) String added in v0.0.35

func (s *ScrollPointsResponse) String() string

func (*ScrollPointsResponse) UnmarshalJSON added in v0.0.35

func (s *ScrollPointsResponse) UnmarshalJSON(data []byte) error

type ScrollRequest added in v0.0.35

type ScrollRequest struct {
	// Specify in which shards to look for the points, if not specified - look in all shards
	ShardKey *core.Optional[ScrollRequestShardKey] `json:"shard_key,omitempty"`
	// Start ID to read points from.
	Offset *core.Optional[ScrollRequestOffset] `json:"offset,omitempty"`
	// Page size. Default: 10
	Limit *core.Optional[int] `json:"limit,omitempty"`
	// Look only for points which satisfies this conditions. If not provided - all points.
	Filter *core.Optional[ScrollRequestFilter] `json:"filter,omitempty"`
	// Select which payload to return with the response. Default: All
	WithPayload *core.Optional[ScrollRequestWithPayload] `json:"with_payload,omitempty"`
	WithVector  *core.Optional[WithVector]               `json:"with_vector,omitempty"`
}

type ScrollRequestFilter added in v0.0.35

type ScrollRequestFilter struct {
	Filter  *Filter
	Unknown interface{}
	// contains filtered or unexported fields
}

Look only for points which satisfies this conditions. If not provided - all points.

func NewScrollRequestFilterFromFilter added in v0.0.35

func NewScrollRequestFilterFromFilter(value *Filter) *ScrollRequestFilter

func NewScrollRequestFilterFromUnknown added in v0.0.35

func NewScrollRequestFilterFromUnknown(value interface{}) *ScrollRequestFilter

func (*ScrollRequestFilter) Accept added in v0.0.35

func (ScrollRequestFilter) MarshalJSON added in v0.0.35

func (s ScrollRequestFilter) MarshalJSON() ([]byte, error)

func (*ScrollRequestFilter) UnmarshalJSON added in v0.0.35

func (s *ScrollRequestFilter) UnmarshalJSON(data []byte) error

type ScrollRequestFilterVisitor added in v0.0.35

type ScrollRequestFilterVisitor interface {
	VisitFilter(*Filter) error
	VisitUnknown(interface{}) error
}

type ScrollRequestOffset added in v0.0.35

type ScrollRequestOffset struct {
	ExtendedPointId *ExtendedPointId
	Unknown         interface{}
	// contains filtered or unexported fields
}

Start ID to read points from.

func NewScrollRequestOffsetFromExtendedPointId added in v0.0.35

func NewScrollRequestOffsetFromExtendedPointId(value *ExtendedPointId) *ScrollRequestOffset

func NewScrollRequestOffsetFromUnknown added in v0.0.35

func NewScrollRequestOffsetFromUnknown(value interface{}) *ScrollRequestOffset

func (*ScrollRequestOffset) Accept added in v0.0.35

func (ScrollRequestOffset) MarshalJSON added in v0.0.35

func (s ScrollRequestOffset) MarshalJSON() ([]byte, error)

func (*ScrollRequestOffset) UnmarshalJSON added in v0.0.35

func (s *ScrollRequestOffset) UnmarshalJSON(data []byte) error

type ScrollRequestOffsetVisitor added in v0.0.35

type ScrollRequestOffsetVisitor interface {
	VisitExtendedPointId(*ExtendedPointId) error
	VisitUnknown(interface{}) error
}

type ScrollRequestShardKey added in v0.0.35

type ScrollRequestShardKey struct {
	ShardKeySelector *ShardKeySelector
	Unknown          interface{}
	// contains filtered or unexported fields
}

Specify in which shards to look for the points, if not specified - look in all shards

func NewScrollRequestShardKeyFromShardKeySelector added in v0.0.35

func NewScrollRequestShardKeyFromShardKeySelector(value *ShardKeySelector) *ScrollRequestShardKey

func NewScrollRequestShardKeyFromUnknown added in v0.0.35

func NewScrollRequestShardKeyFromUnknown(value interface{}) *ScrollRequestShardKey

func (*ScrollRequestShardKey) Accept added in v0.0.35

func (ScrollRequestShardKey) MarshalJSON added in v0.0.35

func (s ScrollRequestShardKey) MarshalJSON() ([]byte, error)

func (*ScrollRequestShardKey) UnmarshalJSON added in v0.0.35

func (s *ScrollRequestShardKey) UnmarshalJSON(data []byte) error

type ScrollRequestShardKeyVisitor added in v0.0.35

type ScrollRequestShardKeyVisitor interface {
	VisitShardKeySelector(*ShardKeySelector) error
	VisitUnknown(interface{}) error
}

type ScrollRequestWithPayload added in v0.0.35

type ScrollRequestWithPayload struct {
	WithPayloadInterface *WithPayloadInterface
	Unknown              interface{}
	// contains filtered or unexported fields
}

Select which payload to return with the response. Default: All

func NewScrollRequestWithPayloadFromUnknown added in v0.0.35

func NewScrollRequestWithPayloadFromUnknown(value interface{}) *ScrollRequestWithPayload

func NewScrollRequestWithPayloadFromWithPayloadInterface added in v0.0.35

func NewScrollRequestWithPayloadFromWithPayloadInterface(value *WithPayloadInterface) *ScrollRequestWithPayload

func (*ScrollRequestWithPayload) Accept added in v0.0.35

func (ScrollRequestWithPayload) MarshalJSON added in v0.0.35

func (s ScrollRequestWithPayload) MarshalJSON() ([]byte, error)

func (*ScrollRequestWithPayload) UnmarshalJSON added in v0.0.35

func (s *ScrollRequestWithPayload) UnmarshalJSON(data []byte) error

type ScrollRequestWithPayloadVisitor added in v0.0.35

type ScrollRequestWithPayloadVisitor interface {
	VisitWithPayloadInterface(*WithPayloadInterface) error
	VisitUnknown(interface{}) error
}

type ScrollResult added in v0.0.35

type ScrollResult struct {
	// List of retrieved points
	Points []*Record `json:"points,omitempty"`
	// Offset which should be used to retrieve a next page result
	NextPageOffset *ScrollResultNextPageOffset `json:"next_page_offset,omitempty"`
	// contains filtered or unexported fields
}

Result of the points read request

func (*ScrollResult) String added in v0.0.35

func (s *ScrollResult) String() string

func (*ScrollResult) UnmarshalJSON added in v0.0.35

func (s *ScrollResult) UnmarshalJSON(data []byte) error

type ScrollResultNextPageOffset added in v0.0.35

type ScrollResultNextPageOffset struct {
	ExtendedPointId *ExtendedPointId
	Unknown         interface{}
	// contains filtered or unexported fields
}

Offset which should be used to retrieve a next page result

func NewScrollResultNextPageOffsetFromExtendedPointId added in v0.0.35

func NewScrollResultNextPageOffsetFromExtendedPointId(value *ExtendedPointId) *ScrollResultNextPageOffset

func NewScrollResultNextPageOffsetFromUnknown added in v0.0.35

func NewScrollResultNextPageOffsetFromUnknown(value interface{}) *ScrollResultNextPageOffset

func (*ScrollResultNextPageOffset) Accept added in v0.0.35

func (ScrollResultNextPageOffset) MarshalJSON added in v0.0.35

func (s ScrollResultNextPageOffset) MarshalJSON() ([]byte, error)

func (*ScrollResultNextPageOffset) UnmarshalJSON added in v0.0.35

func (s *ScrollResultNextPageOffset) UnmarshalJSON(data []byte) error

type ScrollResultNextPageOffsetVisitor added in v0.0.35

type ScrollResultNextPageOffsetVisitor interface {
	VisitExtendedPointId(*ExtendedPointId) error
	VisitUnknown(interface{}) error
}

type SearchBatchPointsResponse added in v0.0.35

type SearchBatchPointsResponse struct {
	// Time spent to process this request
	Time   *float64         `json:"time,omitempty"`
	Status *string          `json:"status,omitempty"`
	Result [][]*ScoredPoint `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchBatchPointsResponse) String added in v0.0.35

func (s *SearchBatchPointsResponse) String() string

func (*SearchBatchPointsResponse) UnmarshalJSON added in v0.0.35

func (s *SearchBatchPointsResponse) UnmarshalJSON(data []byte) error

type SearchGroupsRequest added in v0.0.35

type SearchGroupsRequest struct {
	// If set, overrides global timeout for this request. Unit is seconds.
	Timeout *int `json:"-"`
	// Specify in which shards to look for the points, if not specified - look in all shards
	ShardKey *core.Optional[SearchGroupsRequestShardKey] `json:"shard_key,omitempty"`
	Vector   *NamedVectorStruct                          `json:"vector,omitempty"`
	// Look only for points which satisfies this conditions
	Filter *core.Optional[SearchGroupsRequestFilter] `json:"filter,omitempty"`
	// Additional search params
	Params *core.Optional[SearchGroupsRequestParams] `json:"params,omitempty"`
	// Select which payload to return with the response. Default: None
	WithPayload *core.Optional[SearchGroupsRequestWithPayload] `json:"with_payload,omitempty"`
	// Whether to return the point vector with the result?
	WithVector *core.Optional[SearchGroupsRequestWithVector] `json:"with_vector,omitempty"`
	// Define a minimal score threshold for the result. If defined, less similar results will not be returned. Score of the returned result might be higher or smaller than the threshold depending on the Distance function used. E.g. for cosine similarity only higher scores will be returned.
	ScoreThreshold *core.Optional[float64] `json:"score_threshold,omitempty"`
	// Payload field to group by, must be a string or number field. If the field contains more than 1 value, all values will be used for grouping. One point can be in multiple groups.
	GroupBy string `json:"group_by"`
	// Maximum amount of points to return per group
	GroupSize int `json:"group_size"`
	// Maximum amount of groups to return
	Limit int `json:"limit"`
	// Look for points in another collection using the group ids
	WithLookup *core.Optional[SearchGroupsRequestWithLookup] `json:"with_lookup,omitempty"`
}

type SearchGroupsRequestFilter added in v0.0.35

type SearchGroupsRequestFilter struct {
	Filter  *Filter
	Unknown interface{}
	// contains filtered or unexported fields
}

Look only for points which satisfies this conditions

func NewSearchGroupsRequestFilterFromFilter added in v0.0.35

func NewSearchGroupsRequestFilterFromFilter(value *Filter) *SearchGroupsRequestFilter

func NewSearchGroupsRequestFilterFromUnknown added in v0.0.35

func NewSearchGroupsRequestFilterFromUnknown(value interface{}) *SearchGroupsRequestFilter

func (*SearchGroupsRequestFilter) Accept added in v0.0.35

func (SearchGroupsRequestFilter) MarshalJSON added in v0.0.35

func (s SearchGroupsRequestFilter) MarshalJSON() ([]byte, error)

func (*SearchGroupsRequestFilter) UnmarshalJSON added in v0.0.35

func (s *SearchGroupsRequestFilter) UnmarshalJSON(data []byte) error

type SearchGroupsRequestFilterVisitor added in v0.0.35

type SearchGroupsRequestFilterVisitor interface {
	VisitFilter(*Filter) error
	VisitUnknown(interface{}) error
}

type SearchGroupsRequestParams added in v0.0.35

type SearchGroupsRequestParams struct {
	SearchParams *SearchParams
	Unknown      interface{}
	// contains filtered or unexported fields
}

Additional search params

func NewSearchGroupsRequestParamsFromSearchParams added in v0.0.35

func NewSearchGroupsRequestParamsFromSearchParams(value *SearchParams) *SearchGroupsRequestParams

func NewSearchGroupsRequestParamsFromUnknown added in v0.0.35

func NewSearchGroupsRequestParamsFromUnknown(value interface{}) *SearchGroupsRequestParams

func (*SearchGroupsRequestParams) Accept added in v0.0.35

func (SearchGroupsRequestParams) MarshalJSON added in v0.0.35

func (s SearchGroupsRequestParams) MarshalJSON() ([]byte, error)

func (*SearchGroupsRequestParams) UnmarshalJSON added in v0.0.35

func (s *SearchGroupsRequestParams) UnmarshalJSON(data []byte) error

type SearchGroupsRequestParamsVisitor added in v0.0.35

type SearchGroupsRequestParamsVisitor interface {
	VisitSearchParams(*SearchParams) error
	VisitUnknown(interface{}) error
}

type SearchGroupsRequestShardKey added in v0.0.35

type SearchGroupsRequestShardKey struct {
	ShardKeySelector *ShardKeySelector
	Unknown          interface{}
	// contains filtered or unexported fields
}

Specify in which shards to look for the points, if not specified - look in all shards

func NewSearchGroupsRequestShardKeyFromShardKeySelector added in v0.0.35

func NewSearchGroupsRequestShardKeyFromShardKeySelector(value *ShardKeySelector) *SearchGroupsRequestShardKey

func NewSearchGroupsRequestShardKeyFromUnknown added in v0.0.35

func NewSearchGroupsRequestShardKeyFromUnknown(value interface{}) *SearchGroupsRequestShardKey

func (*SearchGroupsRequestShardKey) Accept added in v0.0.35

func (SearchGroupsRequestShardKey) MarshalJSON added in v0.0.35

func (s SearchGroupsRequestShardKey) MarshalJSON() ([]byte, error)

func (*SearchGroupsRequestShardKey) UnmarshalJSON added in v0.0.35

func (s *SearchGroupsRequestShardKey) UnmarshalJSON(data []byte) error

type SearchGroupsRequestShardKeyVisitor added in v0.0.35

type SearchGroupsRequestShardKeyVisitor interface {
	VisitShardKeySelector(*ShardKeySelector) error
	VisitUnknown(interface{}) error
}

type SearchGroupsRequestWithLookup added in v0.0.35

type SearchGroupsRequestWithLookup struct {
	WithLookupInterface *WithLookupInterface
	Unknown             interface{}
	// contains filtered or unexported fields
}

Look for points in another collection using the group ids

func NewSearchGroupsRequestWithLookupFromUnknown added in v0.0.35

func NewSearchGroupsRequestWithLookupFromUnknown(value interface{}) *SearchGroupsRequestWithLookup

func NewSearchGroupsRequestWithLookupFromWithLookupInterface added in v0.0.35

func NewSearchGroupsRequestWithLookupFromWithLookupInterface(value *WithLookupInterface) *SearchGroupsRequestWithLookup

func (*SearchGroupsRequestWithLookup) Accept added in v0.0.35

func (SearchGroupsRequestWithLookup) MarshalJSON added in v0.0.35

func (s SearchGroupsRequestWithLookup) MarshalJSON() ([]byte, error)

func (*SearchGroupsRequestWithLookup) UnmarshalJSON added in v0.0.35

func (s *SearchGroupsRequestWithLookup) UnmarshalJSON(data []byte) error

type SearchGroupsRequestWithLookupVisitor added in v0.0.35

type SearchGroupsRequestWithLookupVisitor interface {
	VisitWithLookupInterface(*WithLookupInterface) error
	VisitUnknown(interface{}) error
}

type SearchGroupsRequestWithPayload added in v0.0.35

type SearchGroupsRequestWithPayload struct {
	WithPayloadInterface *WithPayloadInterface
	Unknown              interface{}
	// contains filtered or unexported fields
}

Select which payload to return with the response. Default: None

func NewSearchGroupsRequestWithPayloadFromUnknown added in v0.0.35

func NewSearchGroupsRequestWithPayloadFromUnknown(value interface{}) *SearchGroupsRequestWithPayload

func NewSearchGroupsRequestWithPayloadFromWithPayloadInterface added in v0.0.35

func NewSearchGroupsRequestWithPayloadFromWithPayloadInterface(value *WithPayloadInterface) *SearchGroupsRequestWithPayload

func (*SearchGroupsRequestWithPayload) Accept added in v0.0.35

func (SearchGroupsRequestWithPayload) MarshalJSON added in v0.0.35

func (s SearchGroupsRequestWithPayload) MarshalJSON() ([]byte, error)

func (*SearchGroupsRequestWithPayload) UnmarshalJSON added in v0.0.35

func (s *SearchGroupsRequestWithPayload) UnmarshalJSON(data []byte) error

type SearchGroupsRequestWithPayloadVisitor added in v0.0.35

type SearchGroupsRequestWithPayloadVisitor interface {
	VisitWithPayloadInterface(*WithPayloadInterface) error
	VisitUnknown(interface{}) error
}

type SearchGroupsRequestWithVector added in v0.0.35

type SearchGroupsRequestWithVector struct {
	WithVector *WithVector
	Unknown    interface{}
	// contains filtered or unexported fields
}

Whether to return the point vector with the result?

func NewSearchGroupsRequestWithVectorFromUnknown added in v0.0.35

func NewSearchGroupsRequestWithVectorFromUnknown(value interface{}) *SearchGroupsRequestWithVector

func NewSearchGroupsRequestWithVectorFromWithVector added in v0.0.35

func NewSearchGroupsRequestWithVectorFromWithVector(value *WithVector) *SearchGroupsRequestWithVector

func (*SearchGroupsRequestWithVector) Accept added in v0.0.35

func (SearchGroupsRequestWithVector) MarshalJSON added in v0.0.35

func (s SearchGroupsRequestWithVector) MarshalJSON() ([]byte, error)

func (*SearchGroupsRequestWithVector) UnmarshalJSON added in v0.0.35

func (s *SearchGroupsRequestWithVector) UnmarshalJSON(data []byte) error

type SearchGroupsRequestWithVectorVisitor added in v0.0.35

type SearchGroupsRequestWithVectorVisitor interface {
	VisitWithVector(*WithVector) error
	VisitUnknown(interface{}) error
}

type SearchParams added in v0.0.35

type SearchParams struct {
	// Params relevant to HNSW index Size of the beam in a beam-search. Larger the value - more accurate the result, more time required for search.
	HnswEf *int `json:"hnsw_ef,omitempty"`
	// Search without approximation. If set to true, search may run long but with exact results.
	Exact *bool `json:"exact,omitempty"`
	// Quantization params
	Quantization *SearchParamsQuantization `json:"quantization,omitempty"`
	// If enabled, the engine will only perform search among indexed or small segments. Using this option prevents slow searches in case of delayed index, but does not guarantee that all uploaded vectors will be included in search results
	IndexedOnly *bool `json:"indexed_only,omitempty"`
	// contains filtered or unexported fields
}

Additional parameters of the search

func (*SearchParams) String added in v0.0.35

func (s *SearchParams) String() string

func (*SearchParams) UnmarshalJSON added in v0.0.35

func (s *SearchParams) UnmarshalJSON(data []byte) error

type SearchParamsQuantization added in v0.0.35

type SearchParamsQuantization struct {
	QuantizationSearchParams *QuantizationSearchParams
	Unknown                  interface{}
	// contains filtered or unexported fields
}

Quantization params

func NewSearchParamsQuantizationFromQuantizationSearchParams added in v0.0.35

func NewSearchParamsQuantizationFromQuantizationSearchParams(value *QuantizationSearchParams) *SearchParamsQuantization

func NewSearchParamsQuantizationFromUnknown added in v0.0.35

func NewSearchParamsQuantizationFromUnknown(value interface{}) *SearchParamsQuantization

func (*SearchParamsQuantization) Accept added in v0.0.35

func (SearchParamsQuantization) MarshalJSON added in v0.0.35

func (s SearchParamsQuantization) MarshalJSON() ([]byte, error)

func (*SearchParamsQuantization) UnmarshalJSON added in v0.0.35

func (s *SearchParamsQuantization) UnmarshalJSON(data []byte) error

type SearchParamsQuantizationVisitor added in v0.0.35

type SearchParamsQuantizationVisitor interface {
	VisitQuantizationSearchParams(*QuantizationSearchParams) error
	VisitUnknown(interface{}) error
}

type SearchPointGroupsResponse added in v0.0.35

type SearchPointGroupsResponse struct {
	// Time spent to process this request
	Time   *float64      `json:"time,omitempty"`
	Status *string       `json:"status,omitempty"`
	Result *GroupsResult `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchPointGroupsResponse) String added in v0.0.35

func (s *SearchPointGroupsResponse) String() string

func (*SearchPointGroupsResponse) UnmarshalJSON added in v0.0.35

func (s *SearchPointGroupsResponse) UnmarshalJSON(data []byte) error

type SearchPointsRequest added in v0.0.35

type SearchPointsRequest struct {
	// If set, overrides global timeout for this request. Unit is seconds.
	Timeout *int           `json:"-"`
	Body    *SearchRequest `json:"-"`
}

func (*SearchPointsRequest) MarshalJSON added in v0.0.35

func (s *SearchPointsRequest) MarshalJSON() ([]byte, error)

func (*SearchPointsRequest) UnmarshalJSON added in v0.0.35

func (s *SearchPointsRequest) UnmarshalJSON(data []byte) error

type SearchPointsResponse added in v0.0.35

type SearchPointsResponse struct {
	// Time spent to process this request
	Time   *float64       `json:"time,omitempty"`
	Status *string        `json:"status,omitempty"`
	Result []*ScoredPoint `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchPointsResponse) String added in v0.0.35

func (s *SearchPointsResponse) String() string

func (*SearchPointsResponse) UnmarshalJSON added in v0.0.35

func (s *SearchPointsResponse) UnmarshalJSON(data []byte) error

type SearchRequest added in v0.0.35

type SearchRequest struct {
	// Specify in which shards to look for the points, if not specified - look in all shards
	ShardKey *SearchRequestShardKey `json:"shard_key,omitempty"`
	Vector   *NamedVectorStruct     `json:"vector,omitempty"`
	// Look only for points which satisfies this conditions
	Filter *SearchRequestFilter `json:"filter,omitempty"`
	// Additional search params
	Params *SearchRequestParams `json:"params,omitempty"`
	// Max number of result to return
	Limit int `json:"limit"`
	// Offset of the first result to return. May be used to paginate results. Note: large offset values may cause performance issues.
	Offset *int `json:"offset,omitempty"`
	// Select which payload to return with the response. Default: None
	WithPayload *SearchRequestWithPayload `json:"with_payload,omitempty"`
	// Whether to return the point vector with the result?
	WithVector *SearchRequestWithVector `json:"with_vector,omitempty"`
	// Define a minimal score threshold for the result. If defined, less similar results will not be returned. Score of the returned result might be higher or smaller than the threshold depending on the Distance function used. E.g. for cosine similarity only higher scores will be returned.
	ScoreThreshold *float64 `json:"score_threshold,omitempty"`
	// contains filtered or unexported fields
}

Search request. Holds all conditions and parameters for the search of most similar points by vector similarity given the filtering restrictions.

func (*SearchRequest) String added in v0.0.35

func (s *SearchRequest) String() string

func (*SearchRequest) UnmarshalJSON added in v0.0.35

func (s *SearchRequest) UnmarshalJSON(data []byte) error

type SearchRequestBatch added in v0.0.35

type SearchRequestBatch struct {
	// If set, overrides global timeout for this request. Unit is seconds.
	Timeout  *int             `json:"-"`
	Searches []*SearchRequest `json:"searches,omitempty"`
}

type SearchRequestFilter added in v0.0.35

type SearchRequestFilter struct {
	Filter  *Filter
	Unknown interface{}
	// contains filtered or unexported fields
}

Look only for points which satisfies this conditions

func NewSearchRequestFilterFromFilter added in v0.0.35

func NewSearchRequestFilterFromFilter(value *Filter) *SearchRequestFilter

func NewSearchRequestFilterFromUnknown added in v0.0.35

func NewSearchRequestFilterFromUnknown(value interface{}) *SearchRequestFilter

func (*SearchRequestFilter) Accept added in v0.0.35

func (SearchRequestFilter) MarshalJSON added in v0.0.35

func (s SearchRequestFilter) MarshalJSON() ([]byte, error)

func (*SearchRequestFilter) UnmarshalJSON added in v0.0.35

func (s *SearchRequestFilter) UnmarshalJSON(data []byte) error

type SearchRequestFilterVisitor added in v0.0.35

type SearchRequestFilterVisitor interface {
	VisitFilter(*Filter) error
	VisitUnknown(interface{}) error
}

type SearchRequestParams added in v0.0.35

type SearchRequestParams struct {
	SearchParams *SearchParams
	Unknown      interface{}
	// contains filtered or unexported fields
}

Additional search params

func NewSearchRequestParamsFromSearchParams added in v0.0.35

func NewSearchRequestParamsFromSearchParams(value *SearchParams) *SearchRequestParams

func NewSearchRequestParamsFromUnknown added in v0.0.35

func NewSearchRequestParamsFromUnknown(value interface{}) *SearchRequestParams

func (*SearchRequestParams) Accept added in v0.0.35

func (SearchRequestParams) MarshalJSON added in v0.0.35

func (s SearchRequestParams) MarshalJSON() ([]byte, error)

func (*SearchRequestParams) UnmarshalJSON added in v0.0.35

func (s *SearchRequestParams) UnmarshalJSON(data []byte) error

type SearchRequestParamsVisitor added in v0.0.35

type SearchRequestParamsVisitor interface {
	VisitSearchParams(*SearchParams) error
	VisitUnknown(interface{}) error
}

type SearchRequestShardKey added in v0.0.35

type SearchRequestShardKey struct {
	ShardKeySelector *ShardKeySelector
	Unknown          interface{}
	// contains filtered or unexported fields
}

Specify in which shards to look for the points, if not specified - look in all shards

func NewSearchRequestShardKeyFromShardKeySelector added in v0.0.35

func NewSearchRequestShardKeyFromShardKeySelector(value *ShardKeySelector) *SearchRequestShardKey

func NewSearchRequestShardKeyFromUnknown added in v0.0.35

func NewSearchRequestShardKeyFromUnknown(value interface{}) *SearchRequestShardKey

func (*SearchRequestShardKey) Accept added in v0.0.35

func (SearchRequestShardKey) MarshalJSON added in v0.0.35

func (s SearchRequestShardKey) MarshalJSON() ([]byte, error)

func (*SearchRequestShardKey) UnmarshalJSON added in v0.0.35

func (s *SearchRequestShardKey) UnmarshalJSON(data []byte) error

type SearchRequestShardKeyVisitor added in v0.0.35

type SearchRequestShardKeyVisitor interface {
	VisitShardKeySelector(*ShardKeySelector) error
	VisitUnknown(interface{}) error
}

type SearchRequestWithPayload added in v0.0.35

type SearchRequestWithPayload struct {
	WithPayloadInterface *WithPayloadInterface
	Unknown              interface{}
	// contains filtered or unexported fields
}

Select which payload to return with the response. Default: None

func NewSearchRequestWithPayloadFromUnknown added in v0.0.35

func NewSearchRequestWithPayloadFromUnknown(value interface{}) *SearchRequestWithPayload

func NewSearchRequestWithPayloadFromWithPayloadInterface added in v0.0.35

func NewSearchRequestWithPayloadFromWithPayloadInterface(value *WithPayloadInterface) *SearchRequestWithPayload

func (*SearchRequestWithPayload) Accept added in v0.0.35

func (SearchRequestWithPayload) MarshalJSON added in v0.0.35

func (s SearchRequestWithPayload) MarshalJSON() ([]byte, error)

func (*SearchRequestWithPayload) UnmarshalJSON added in v0.0.35

func (s *SearchRequestWithPayload) UnmarshalJSON(data []byte) error

type SearchRequestWithPayloadVisitor added in v0.0.35

type SearchRequestWithPayloadVisitor interface {
	VisitWithPayloadInterface(*WithPayloadInterface) error
	VisitUnknown(interface{}) error
}

type SearchRequestWithVector added in v0.0.35

type SearchRequestWithVector struct {
	WithVector *WithVector
	Unknown    interface{}
	// contains filtered or unexported fields
}

Whether to return the point vector with the result?

func NewSearchRequestWithVectorFromUnknown added in v0.0.35

func NewSearchRequestWithVectorFromUnknown(value interface{}) *SearchRequestWithVector

func NewSearchRequestWithVectorFromWithVector added in v0.0.35

func NewSearchRequestWithVectorFromWithVector(value *WithVector) *SearchRequestWithVector

func (*SearchRequestWithVector) Accept added in v0.0.35

func (SearchRequestWithVector) MarshalJSON added in v0.0.35

func (s SearchRequestWithVector) MarshalJSON() ([]byte, error)

func (*SearchRequestWithVector) UnmarshalJSON added in v0.0.35

func (s *SearchRequestWithVector) UnmarshalJSON(data []byte) error

type SearchRequestWithVectorVisitor added in v0.0.35

type SearchRequestWithVectorVisitor interface {
	VisitWithVector(*WithVector) error
	VisitUnknown(interface{}) error
}

type SegmentConfig added in v0.0.35

type SegmentConfig struct {
	VectorData         map[string]*VectorDataConfig       `json:"vector_data,omitempty"`
	SparseVectorData   map[string]*SparseVectorDataConfig `json:"sparse_vector_data,omitempty"`
	PayloadStorageType *PayloadStorageType                `json:"payload_storage_type,omitempty"`
	// contains filtered or unexported fields
}

func (*SegmentConfig) String added in v0.0.35

func (s *SegmentConfig) String() string

func (*SegmentConfig) UnmarshalJSON added in v0.0.35

func (s *SegmentConfig) UnmarshalJSON(data []byte) error

type SegmentInfo added in v0.0.35

type SegmentInfo struct {
	SegmentType       SegmentType                  `json:"segment_type,omitempty"`
	NumVectors        int                          `json:"num_vectors"`
	NumPoints         int                          `json:"num_points"`
	NumIndexedVectors int                          `json:"num_indexed_vectors"`
	NumDeletedVectors int                          `json:"num_deleted_vectors"`
	RamUsageBytes     int                          `json:"ram_usage_bytes"`
	DiskUsageBytes    int                          `json:"disk_usage_bytes"`
	IsAppendable      bool                         `json:"is_appendable"`
	IndexSchema       map[string]*PayloadIndexInfo `json:"index_schema,omitempty"`
	VectorData        map[string]*VectorDataInfo   `json:"vector_data,omitempty"`
	// contains filtered or unexported fields
}

Aggregated information about segment

func (*SegmentInfo) String added in v0.0.35

func (s *SegmentInfo) String() string

func (*SegmentInfo) UnmarshalJSON added in v0.0.35

func (s *SegmentInfo) UnmarshalJSON(data []byte) error

type SegmentTelemetry added in v0.0.35

type SegmentTelemetry struct {
	Info                *SegmentInfo                    `json:"info,omitempty"`
	Config              *SegmentConfig                  `json:"config,omitempty"`
	VectorIndexSearches []*VectorIndexSearchesTelemetry `json:"vector_index_searches,omitempty"`
	PayloadFieldIndices []*PayloadIndexTelemetry        `json:"payload_field_indices,omitempty"`
	// contains filtered or unexported fields
}

func (*SegmentTelemetry) String added in v0.0.35

func (s *SegmentTelemetry) String() string

func (*SegmentTelemetry) UnmarshalJSON added in v0.0.35

func (s *SegmentTelemetry) UnmarshalJSON(data []byte) error

type SegmentType added in v0.0.35

type SegmentType string

Type of segment

const (
	SegmentTypePlain   SegmentType = "plain"
	SegmentTypeIndexed SegmentType = "indexed"
	SegmentTypeSpecial SegmentType = "special"
)

func NewSegmentTypeFromString added in v0.0.35

func NewSegmentTypeFromString(s string) (SegmentType, error)

func (SegmentType) Ptr added in v0.0.35

func (s SegmentType) Ptr() *SegmentType

type SetPayload added in v0.0.35

type SetPayload struct {
	Payload Payload `json:"payload,omitempty"`
	// Assigns payload to each point in this list
	Points []*ExtendedPointId `json:"points,omitempty"`
	// Assigns payload to each point that satisfy this filter condition
	Filter   *SetPayloadFilter   `json:"filter,omitempty"`
	ShardKey *SetPayloadShardKey `json:"shard_key,omitempty"`
	// contains filtered or unexported fields
}

This data structure is used in API interface and applied across multiple shards

func (*SetPayload) String added in v0.0.35

func (s *SetPayload) String() string

func (*SetPayload) UnmarshalJSON added in v0.0.35

func (s *SetPayload) UnmarshalJSON(data []byte) error

type SetPayloadFilter added in v0.0.35

type SetPayloadFilter struct {
	Filter  *Filter
	Unknown interface{}
	// contains filtered or unexported fields
}

Assigns payload to each point that satisfy this filter condition

func NewSetPayloadFilterFromFilter added in v0.0.35

func NewSetPayloadFilterFromFilter(value *Filter) *SetPayloadFilter

func NewSetPayloadFilterFromUnknown added in v0.0.35

func NewSetPayloadFilterFromUnknown(value interface{}) *SetPayloadFilter

func (*SetPayloadFilter) Accept added in v0.0.35

func (s *SetPayloadFilter) Accept(visitor SetPayloadFilterVisitor) error

func (SetPayloadFilter) MarshalJSON added in v0.0.35

func (s SetPayloadFilter) MarshalJSON() ([]byte, error)

func (*SetPayloadFilter) UnmarshalJSON added in v0.0.35

func (s *SetPayloadFilter) UnmarshalJSON(data []byte) error

type SetPayloadFilterVisitor added in v0.0.35

type SetPayloadFilterVisitor interface {
	VisitFilter(*Filter) error
	VisitUnknown(interface{}) error
}

type SetPayloadOperation added in v0.0.35

type SetPayloadOperation struct {
	SetPayload *SetPayload `json:"set_payload,omitempty"`
	// contains filtered or unexported fields
}

func (*SetPayloadOperation) String added in v0.0.35

func (s *SetPayloadOperation) String() string

func (*SetPayloadOperation) UnmarshalJSON added in v0.0.35

func (s *SetPayloadOperation) UnmarshalJSON(data []byte) error

type SetPayloadRequest added in v0.0.35

type SetPayloadRequest struct {
	// If true, wait for changes to actually happen
	Wait *bool `json:"-"`
	// define ordering guarantees for the operation
	Ordering *WriteOrdering `json:"-"`
	Body     *SetPayload    `json:"-"`
}

func (*SetPayloadRequest) MarshalJSON added in v0.0.35

func (s *SetPayloadRequest) MarshalJSON() ([]byte, error)

func (*SetPayloadRequest) UnmarshalJSON added in v0.0.35

func (s *SetPayloadRequest) UnmarshalJSON(data []byte) error

type SetPayloadResponse added in v0.0.35

type SetPayloadResponse struct {
	// Time spent to process this request
	Time   *float64      `json:"time,omitempty"`
	Status *string       `json:"status,omitempty"`
	Result *UpdateResult `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*SetPayloadResponse) String added in v0.0.35

func (s *SetPayloadResponse) String() string

func (*SetPayloadResponse) UnmarshalJSON added in v0.0.35

func (s *SetPayloadResponse) UnmarshalJSON(data []byte) error

type SetPayloadShardKey added in v0.0.35

type SetPayloadShardKey struct {
	ShardKeySelector *ShardKeySelector
	Unknown          interface{}
	// contains filtered or unexported fields
}

func NewSetPayloadShardKeyFromShardKeySelector added in v0.0.35

func NewSetPayloadShardKeyFromShardKeySelector(value *ShardKeySelector) *SetPayloadShardKey

func NewSetPayloadShardKeyFromUnknown added in v0.0.35

func NewSetPayloadShardKeyFromUnknown(value interface{}) *SetPayloadShardKey

func (*SetPayloadShardKey) Accept added in v0.0.35

func (SetPayloadShardKey) MarshalJSON added in v0.0.35

func (s SetPayloadShardKey) MarshalJSON() ([]byte, error)

func (*SetPayloadShardKey) UnmarshalJSON added in v0.0.35

func (s *SetPayloadShardKey) UnmarshalJSON(data []byte) error

type SetPayloadShardKeyVisitor added in v0.0.35

type SetPayloadShardKeyVisitor interface {
	VisitShardKeySelector(*ShardKeySelector) error
	VisitUnknown(interface{}) error
}

type ShardKey added in v0.0.35

type ShardKey struct {
	String  string
	Integer int
	// contains filtered or unexported fields
}

func NewShardKeyFromInteger added in v0.0.35

func NewShardKeyFromInteger(value int) *ShardKey

func NewShardKeyFromString added in v0.0.35

func NewShardKeyFromString(value string) *ShardKey

func (*ShardKey) Accept added in v0.0.35

func (s *ShardKey) Accept(visitor ShardKeyVisitor) error

func (ShardKey) MarshalJSON added in v0.0.35

func (s ShardKey) MarshalJSON() ([]byte, error)

func (*ShardKey) UnmarshalJSON added in v0.0.35

func (s *ShardKey) UnmarshalJSON(data []byte) error

type ShardKeySelector added in v0.0.35

type ShardKeySelector struct {
	ShardKey     *ShardKey
	ShardKeyList []*ShardKey
	// contains filtered or unexported fields
}

func NewShardKeySelectorFromShardKey added in v0.0.35

func NewShardKeySelectorFromShardKey(value *ShardKey) *ShardKeySelector

func NewShardKeySelectorFromShardKeyList added in v0.0.35

func NewShardKeySelectorFromShardKeyList(value []*ShardKey) *ShardKeySelector

func (*ShardKeySelector) Accept added in v0.0.35

func (s *ShardKeySelector) Accept(visitor ShardKeySelectorVisitor) error

func (ShardKeySelector) MarshalJSON added in v0.0.35

func (s ShardKeySelector) MarshalJSON() ([]byte, error)

func (*ShardKeySelector) UnmarshalJSON added in v0.0.35

func (s *ShardKeySelector) UnmarshalJSON(data []byte) error

type ShardKeySelectorVisitor added in v0.0.35

type ShardKeySelectorVisitor interface {
	VisitShardKey(*ShardKey) error
	VisitShardKeyList([]*ShardKey) error
}

type ShardKeyVisitor added in v0.0.35

type ShardKeyVisitor interface {
	VisitString(string) error
	VisitInteger(int) error
}

type ShardSnapshotLocation added in v0.0.35

type ShardSnapshotLocation = string

type ShardSnapshotRecover added in v0.0.35

type ShardSnapshotRecover struct {
	// If true, wait for changes to actually happen. If false - let changes happen in background. Default is true.
	Wait     *bool                                        `json:"-"`
	Location ShardSnapshotLocation                        `json:"location"`
	Priority *core.Optional[ShardSnapshotRecoverPriority] `json:"priority,omitempty"`
}

type ShardSnapshotRecoverPriority added in v0.0.35

type ShardSnapshotRecoverPriority struct {
	SnapshotPriority SnapshotPriority
	Unknown          interface{}
	// contains filtered or unexported fields
}

func NewShardSnapshotRecoverPriorityFromSnapshotPriority added in v0.0.35

func NewShardSnapshotRecoverPriorityFromSnapshotPriority(value SnapshotPriority) *ShardSnapshotRecoverPriority

func NewShardSnapshotRecoverPriorityFromUnknown added in v0.0.35

func NewShardSnapshotRecoverPriorityFromUnknown(value interface{}) *ShardSnapshotRecoverPriority

func (*ShardSnapshotRecoverPriority) Accept added in v0.0.35

func (ShardSnapshotRecoverPriority) MarshalJSON added in v0.0.35

func (s ShardSnapshotRecoverPriority) MarshalJSON() ([]byte, error)

func (*ShardSnapshotRecoverPriority) UnmarshalJSON added in v0.0.35

func (s *ShardSnapshotRecoverPriority) UnmarshalJSON(data []byte) error

type ShardSnapshotRecoverPriorityVisitor added in v0.0.35

type ShardSnapshotRecoverPriorityVisitor interface {
	VisitSnapshotPriority(SnapshotPriority) error
	VisitUnknown(interface{}) error
}

type ShardTransferInfo added in v0.0.35

type ShardTransferInfo struct {
	ShardId int `json:"shard_id"`
	From    int `json:"from"`
	To      int `json:"to"`
	// If `true` transfer is a synchronization of a replicas If `false` transfer is a moving of a shard from one peer to another
	Sync   bool                     `json:"sync"`
	Method *ShardTransferInfoMethod `json:"method,omitempty"`
	// contains filtered or unexported fields
}

func (*ShardTransferInfo) String added in v0.0.35

func (s *ShardTransferInfo) String() string

func (*ShardTransferInfo) UnmarshalJSON added in v0.0.35

func (s *ShardTransferInfo) UnmarshalJSON(data []byte) error

type ShardTransferInfoMethod added in v0.0.35

type ShardTransferInfoMethod struct {
	ShardTransferMethod ShardTransferMethod
	Unknown             interface{}
	// contains filtered or unexported fields
}

func NewShardTransferInfoMethodFromShardTransferMethod added in v0.0.35

func NewShardTransferInfoMethodFromShardTransferMethod(value ShardTransferMethod) *ShardTransferInfoMethod

func NewShardTransferInfoMethodFromUnknown added in v0.0.35

func NewShardTransferInfoMethodFromUnknown(value interface{}) *ShardTransferInfoMethod

func (*ShardTransferInfoMethod) Accept added in v0.0.35

func (ShardTransferInfoMethod) MarshalJSON added in v0.0.35

func (s ShardTransferInfoMethod) MarshalJSON() ([]byte, error)

func (*ShardTransferInfoMethod) UnmarshalJSON added in v0.0.35

func (s *ShardTransferInfoMethod) UnmarshalJSON(data []byte) error

type ShardTransferInfoMethodVisitor added in v0.0.35

type ShardTransferInfoMethodVisitor interface {
	VisitShardTransferMethod(ShardTransferMethod) error
	VisitUnknown(interface{}) error
}

type ShardTransferMethod added in v0.0.35

type ShardTransferMethod string

Methods for transferring a shard from one node to another.

const (
	ShardTransferMethodStreamRecords ShardTransferMethod = "stream_records"
	ShardTransferMethodSnapshot      ShardTransferMethod = "snapshot"
)

func NewShardTransferMethodFromString added in v0.0.35

func NewShardTransferMethodFromString(s string) (ShardTransferMethod, error)

func (ShardTransferMethod) Ptr added in v0.0.35

type ShardingMethod added in v0.0.35

type ShardingMethod string
const (
	ShardingMethodAuto   ShardingMethod = "auto"
	ShardingMethodCustom ShardingMethod = "custom"
)

func NewShardingMethodFromString added in v0.0.35

func NewShardingMethodFromString(s string) (ShardingMethod, error)

func (ShardingMethod) Ptr added in v0.0.35

func (s ShardingMethod) Ptr() *ShardingMethod

type SnapshotDescription added in v0.0.35

type SnapshotDescription struct {
	Name         string  `json:"name"`
	CreationTime *string `json:"creation_time,omitempty"`
	Size         int     `json:"size"`
	// contains filtered or unexported fields
}

func (*SnapshotDescription) String added in v0.0.35

func (s *SnapshotDescription) String() string

func (*SnapshotDescription) UnmarshalJSON added in v0.0.35

func (s *SnapshotDescription) UnmarshalJSON(data []byte) error

type SnapshotPriority added in v0.0.35

type SnapshotPriority string

Defines source of truth for snapshot recovery: `NoSync` means - restore snapshot without _any_ additional synchronization. `Snapshot` means - prefer snapshot data over the current state. `Replica` means - prefer existing data over the snapshot.

const (
	SnapshotPriorityNoSync   SnapshotPriority = "no_sync"
	SnapshotPrioritySnapshot SnapshotPriority = "snapshot"
	SnapshotPriorityReplica  SnapshotPriority = "replica"
)

func NewSnapshotPriorityFromString added in v0.0.35

func NewSnapshotPriorityFromString(s string) (SnapshotPriority, error)

func (SnapshotPriority) Ptr added in v0.0.35

type SnapshotRecover added in v0.0.35

type SnapshotRecover struct {
	// If true, wait for changes to actually happen. If false - let changes happen in background. Default is true.
	Wait *bool `json:"-"`
	// Examples: - URL `http://localhost:8080/collections/my_collection/snapshots/my_snapshot` - Local path `file:///qdrant/snapshots/test_collection-2022-08-04-10-49-10.snapshot`
	Location string `json:"location"`
	// Defines which data should be used as a source of truth if there are other replicas in the cluster. If set to `Snapshot`, the snapshot will be used as a source of truth, and the current state will be overwritten. If set to `Replica`, the current state will be used as a source of truth, and after recovery if will be synchronized with the snapshot.
	Priority *core.Optional[SnapshotRecoverPriority] `json:"priority,omitempty"`
}

type SnapshotRecoverPriority added in v0.0.35

type SnapshotRecoverPriority struct {
	SnapshotPriority SnapshotPriority
	Unknown          interface{}
	// contains filtered or unexported fields
}

Defines which data should be used as a source of truth if there are other replicas in the cluster. If set to `Snapshot`, the snapshot will be used as a source of truth, and the current state will be overwritten. If set to `Replica`, the current state will be used as a source of truth, and after recovery if will be synchronized with the snapshot.

func NewSnapshotRecoverPriorityFromSnapshotPriority added in v0.0.35

func NewSnapshotRecoverPriorityFromSnapshotPriority(value SnapshotPriority) *SnapshotRecoverPriority

func NewSnapshotRecoverPriorityFromUnknown added in v0.0.35

func NewSnapshotRecoverPriorityFromUnknown(value interface{}) *SnapshotRecoverPriority

func (*SnapshotRecoverPriority) Accept added in v0.0.35

func (SnapshotRecoverPriority) MarshalJSON added in v0.0.35

func (s SnapshotRecoverPriority) MarshalJSON() ([]byte, error)

func (*SnapshotRecoverPriority) UnmarshalJSON added in v0.0.35

func (s *SnapshotRecoverPriority) UnmarshalJSON(data []byte) error

type SnapshotRecoverPriorityVisitor added in v0.0.35

type SnapshotRecoverPriorityVisitor interface {
	VisitSnapshotPriority(SnapshotPriority) error
	VisitUnknown(interface{}) error
}

type SparseIndexConfig added in v0.0.35

type SparseIndexConfig struct {
	// We prefer a full scan search upto (excluding) this number of vectors.
	//
	// Note: this is number of vectors, not KiloBytes.
	FullScanThreshold *int            `json:"full_scan_threshold,omitempty"`
	IndexType         SparseIndexType `json:"index_type,omitempty"`
	// contains filtered or unexported fields
}

Configuration for sparse inverted index.

func (*SparseIndexConfig) String added in v0.0.35

func (s *SparseIndexConfig) String() string

func (*SparseIndexConfig) UnmarshalJSON added in v0.0.35

func (s *SparseIndexConfig) UnmarshalJSON(data []byte) error

type SparseIndexParams added in v0.0.35

type SparseIndexParams struct {
	// We prefer a full scan search upto (excluding) this number of vectors.
	//
	// Note: this is number of vectors, not KiloBytes.
	FullScanThreshold *int `json:"full_scan_threshold,omitempty"`
	// Store index on disk. If set to false, the index will be stored in RAM. Default: false
	OnDisk *bool `json:"on_disk,omitempty"`
	// contains filtered or unexported fields
}

Configuration for sparse inverted index.

func (*SparseIndexParams) String added in v0.0.35

func (s *SparseIndexParams) String() string

func (*SparseIndexParams) UnmarshalJSON added in v0.0.35

func (s *SparseIndexParams) UnmarshalJSON(data []byte) error

type SparseIndexType added in v0.0.35

type SparseIndexType string

Sparse index types

const (
	SparseIndexTypeMutableRam   SparseIndexType = "MutableRam"
	SparseIndexTypeImmutableRam SparseIndexType = "ImmutableRam"
	SparseIndexTypeMmap         SparseIndexType = "Mmap"
)

func NewSparseIndexTypeFromString added in v0.0.35

func NewSparseIndexTypeFromString(s string) (SparseIndexType, error)

func (SparseIndexType) Ptr added in v0.0.35

type SparseVector added in v0.0.35

type SparseVector struct {
	// indices must be unique
	Indices []int `json:"indices,omitempty"`
	// values and indices must be the same length
	Values []float64 `json:"values,omitempty"`
	// contains filtered or unexported fields
}

Sparse vector structure

func (*SparseVector) String added in v0.0.35

func (s *SparseVector) String() string

func (*SparseVector) UnmarshalJSON added in v0.0.35

func (s *SparseVector) UnmarshalJSON(data []byte) error

type SparseVectorDataConfig added in v0.0.35

type SparseVectorDataConfig struct {
	Index *SparseIndexConfig `json:"index,omitempty"`
	// contains filtered or unexported fields
}

Config of single sparse vector data storage

func (*SparseVectorDataConfig) String added in v0.0.35

func (s *SparseVectorDataConfig) String() string

func (*SparseVectorDataConfig) UnmarshalJSON added in v0.0.35

func (s *SparseVectorDataConfig) UnmarshalJSON(data []byte) error

type SparseVectorParams added in v0.0.35

type SparseVectorParams struct {
	// Custom params for index. If none - values from collection configuration are used.
	Index *SparseVectorParamsIndex `json:"index,omitempty"`
	// contains filtered or unexported fields
}

Params of single sparse vector data storage

func (*SparseVectorParams) String added in v0.0.35

func (s *SparseVectorParams) String() string

func (*SparseVectorParams) UnmarshalJSON added in v0.0.35

func (s *SparseVectorParams) UnmarshalJSON(data []byte) error

type SparseVectorParamsIndex added in v0.0.35

type SparseVectorParamsIndex struct {
	SparseIndexParams *SparseIndexParams
	Unknown           interface{}
	// contains filtered or unexported fields
}

Custom params for index. If none - values from collection configuration are used.

func NewSparseVectorParamsIndexFromSparseIndexParams added in v0.0.35

func NewSparseVectorParamsIndexFromSparseIndexParams(value *SparseIndexParams) *SparseVectorParamsIndex

func NewSparseVectorParamsIndexFromUnknown added in v0.0.35

func NewSparseVectorParamsIndexFromUnknown(value interface{}) *SparseVectorParamsIndex

func (*SparseVectorParamsIndex) Accept added in v0.0.35

func (SparseVectorParamsIndex) MarshalJSON added in v0.0.35

func (s SparseVectorParamsIndex) MarshalJSON() ([]byte, error)

func (*SparseVectorParamsIndex) UnmarshalJSON added in v0.0.35

func (s *SparseVectorParamsIndex) UnmarshalJSON(data []byte) error

type SparseVectorParamsIndexVisitor added in v0.0.35

type SparseVectorParamsIndexVisitor interface {
	VisitSparseIndexParams(*SparseIndexParams) error
	VisitUnknown(interface{}) error
}

type SparseVectorsConfig added in v0.0.35

type SparseVectorsConfig = map[string]*SparseVectorParams

type StateRole added in v0.0.35

type StateRole string

Role of the peer in the consensus

const (
	StateRoleFollower     StateRole = "Follower"
	StateRoleCandidate    StateRole = "Candidate"
	StateRoleLeader       StateRole = "Leader"
	StateRolePreCandidate StateRole = "PreCandidate"
)

func NewStateRoleFromString added in v0.0.35

func NewStateRoleFromString(s string) (StateRole, error)

func (StateRole) Ptr added in v0.0.35

func (s StateRole) Ptr() *StateRole

type TelemetryData added in v0.0.35

type TelemetryData struct {
	Id          string                `json:"id"`
	App         *AppBuildTelemetry    `json:"app,omitempty"`
	Collections *CollectionsTelemetry `json:"collections,omitempty"`
	Cluster     *ClusterTelemetry     `json:"cluster,omitempty"`
	Requests    *RequestsTelemetry    `json:"requests,omitempty"`
	// contains filtered or unexported fields
}

func (*TelemetryData) String added in v0.0.35

func (t *TelemetryData) String() string

func (*TelemetryData) UnmarshalJSON added in v0.0.35

func (t *TelemetryData) UnmarshalJSON(data []byte) error

type TelemetryRequest added in v0.0.35

type TelemetryRequest struct {
	// If true, anonymize result
	Anonymize *bool `json:"-"`
}

type TelemetryResponse added in v0.0.35

type TelemetryResponse struct {
	// Time spent to process this request
	Time   *float64       `json:"time,omitempty"`
	Status *string        `json:"status,omitempty"`
	Result *TelemetryData `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*TelemetryResponse) String added in v0.0.35

func (t *TelemetryResponse) String() string

func (*TelemetryResponse) UnmarshalJSON added in v0.0.35

func (t *TelemetryResponse) UnmarshalJSON(data []byte) error

type TextIndexParams added in v0.0.35

type TextIndexParams struct {
	Type        TextIndexType  `json:"type,omitempty"`
	Tokenizer   *TokenizerType `json:"tokenizer,omitempty"`
	MinTokenLen *int           `json:"min_token_len,omitempty"`
	MaxTokenLen *int           `json:"max_token_len,omitempty"`
	// If true, lowercase all tokens. Default: true
	Lowercase *bool `json:"lowercase,omitempty"`
	// contains filtered or unexported fields
}

func (*TextIndexParams) String added in v0.0.35

func (t *TextIndexParams) String() string

func (*TextIndexParams) UnmarshalJSON added in v0.0.35

func (t *TextIndexParams) UnmarshalJSON(data []byte) error

type TextIndexType added in v0.0.35

type TextIndexType = string

type TokenizerType added in v0.0.35

type TokenizerType string
const (
	TokenizerTypePrefix       TokenizerType = "prefix"
	TokenizerTypeWhitespace   TokenizerType = "whitespace"
	TokenizerTypeWord         TokenizerType = "word"
	TokenizerTypeMultilingual TokenizerType = "multilingual"
)

func NewTokenizerTypeFromString added in v0.0.35

func NewTokenizerTypeFromString(s string) (TokenizerType, error)

func (TokenizerType) Ptr added in v0.0.35

func (t TokenizerType) Ptr() *TokenizerType

type TrackerStatus added in v0.0.35

type TrackerStatus struct {
	TrackerStatusCancelled *TrackerStatusCancelled
	TrackerStatusError     *TrackerStatusError
	// contains filtered or unexported fields
}

Represents the current state of the optimizer being tracked

func NewTrackerStatusFromTrackerStatusCancelled added in v0.0.35

func NewTrackerStatusFromTrackerStatusCancelled(value *TrackerStatusCancelled) *TrackerStatus

func NewTrackerStatusFromTrackerStatusError added in v0.0.35

func NewTrackerStatusFromTrackerStatusError(value *TrackerStatusError) *TrackerStatus

func NewTrackerStatusWithStringLiteral added in v0.0.35

func NewTrackerStatusWithStringLiteral() *TrackerStatus

func (*TrackerStatus) Accept added in v0.0.35

func (t *TrackerStatus) Accept(visitor TrackerStatusVisitor) error

func (TrackerStatus) MarshalJSON added in v0.0.35

func (t TrackerStatus) MarshalJSON() ([]byte, error)

func (*TrackerStatus) StringLiteral added in v0.0.35

func (t *TrackerStatus) StringLiteral() string

func (*TrackerStatus) UnmarshalJSON added in v0.0.35

func (t *TrackerStatus) UnmarshalJSON(data []byte) error

type TrackerStatusCancelled added in v0.0.35

type TrackerStatusCancelled struct {
	Cancelled string `json:"cancelled"`
	// contains filtered or unexported fields
}

func (*TrackerStatusCancelled) String added in v0.0.35

func (t *TrackerStatusCancelled) String() string

func (*TrackerStatusCancelled) UnmarshalJSON added in v0.0.35

func (t *TrackerStatusCancelled) UnmarshalJSON(data []byte) error

type TrackerStatusError added in v0.0.35

type TrackerStatusError struct {
	Error string `json:"error"`
	// contains filtered or unexported fields
}

func (*TrackerStatusError) String added in v0.0.35

func (t *TrackerStatusError) String() string

func (*TrackerStatusError) UnmarshalJSON added in v0.0.35

func (t *TrackerStatusError) UnmarshalJSON(data []byte) error

type TrackerStatusVisitor added in v0.0.35

type TrackerStatusVisitor interface {
	VisitStringLiteral(string) error
	VisitStringLiteral(string) error
	VisitTrackerStatusCancelled(*TrackerStatusCancelled) error
	VisitTrackerStatusError(*TrackerStatusError) error
}

type TrackerTelemetry added in v0.0.35

type TrackerTelemetry struct {
	// Name of the optimizer
	Name string `json:"name"`
	// Segment IDs being optimized
	SegmentIds []int          `json:"segment_ids,omitempty"`
	Status     *TrackerStatus `json:"status,omitempty"`
	// Start time of the optimizer
	StartAt time.Time `json:"start_at"`
	// End time of the optimizer
	EndAt *time.Time `json:"end_at,omitempty"`
	// contains filtered or unexported fields
}

Tracker object used in telemetry

func (*TrackerTelemetry) String added in v0.0.35

func (t *TrackerTelemetry) String() string

func (*TrackerTelemetry) UnmarshalJSON added in v0.0.35

func (t *TrackerTelemetry) UnmarshalJSON(data []byte) error

type UpdateAliasesResponse added in v0.0.35

type UpdateAliasesResponse struct {
	// Time spent to process this request
	Time   *float64 `json:"time,omitempty"`
	Status *string  `json:"status,omitempty"`
	Result *bool    `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateAliasesResponse) String added in v0.0.35

func (u *UpdateAliasesResponse) String() string

func (*UpdateAliasesResponse) UnmarshalJSON added in v0.0.35

func (u *UpdateAliasesResponse) UnmarshalJSON(data []byte) error

type UpdateCollection added in v0.0.35

type UpdateCollection struct {
	// Wait for operation commit timeout in seconds.
	// If timeout is reached - request will return with service error.
	Timeout *int `json:"-"`
	// Map of vector data parameters to update for each named vector. To update parameters in a collection having a single unnamed vector, use an empty string as name.
	Vectors *core.Optional[UpdateCollectionVectors] `json:"vectors,omitempty"`
	// Custom params for Optimizers.  If none - it is left unchanged. This operation is blocking, it will only proceed once all current optimizations are complete
	OptimizersConfig *core.Optional[UpdateCollectionOptimizersConfig] `json:"optimizers_config,omitempty"`
	// Collection base params. If none - it is left unchanged.
	Params *core.Optional[UpdateCollectionParams] `json:"params,omitempty"`
	// HNSW parameters to update for the collection index. If none - it is left unchanged.
	HnswConfig *core.Optional[UpdateCollectionHnswConfig] `json:"hnsw_config,omitempty"`
	// Quantization parameters to update. If none - it is left unchanged.
	QuantizationConfig *core.Optional[UpdateCollectionQuantizationConfig] `json:"quantization_config,omitempty"`
	// Map of sparse vector data parameters to update for each sparse vector.
	SparseVectors *core.Optional[UpdateCollectionSparseVectors] `json:"sparse_vectors,omitempty"`
}

type UpdateCollectionClusterRequest added in v0.0.35

type UpdateCollectionClusterRequest struct {
	// Wait for operation commit timeout in seconds.
	// If timeout is reached - request will return with service error.
	Timeout *int               `json:"-"`
	Body    *ClusterOperations `json:"-"`
}

func (*UpdateCollectionClusterRequest) MarshalJSON added in v0.0.35

func (u *UpdateCollectionClusterRequest) MarshalJSON() ([]byte, error)

func (*UpdateCollectionClusterRequest) UnmarshalJSON added in v0.0.35

func (u *UpdateCollectionClusterRequest) UnmarshalJSON(data []byte) error

type UpdateCollectionClusterResponse added in v0.0.35

type UpdateCollectionClusterResponse struct {
	// Time spent to process this request
	Time   *float64 `json:"time,omitempty"`
	Status *string  `json:"status,omitempty"`
	Result *bool    `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateCollectionClusterResponse) String added in v0.0.35

func (*UpdateCollectionClusterResponse) UnmarshalJSON added in v0.0.35

func (u *UpdateCollectionClusterResponse) UnmarshalJSON(data []byte) error

type UpdateCollectionHnswConfig added in v0.0.35

type UpdateCollectionHnswConfig struct {
	HnswConfigDiff *HnswConfigDiff
	Unknown        interface{}
	// contains filtered or unexported fields
}

HNSW parameters to update for the collection index. If none - it is left unchanged.

func NewUpdateCollectionHnswConfigFromHnswConfigDiff added in v0.0.35

func NewUpdateCollectionHnswConfigFromHnswConfigDiff(value *HnswConfigDiff) *UpdateCollectionHnswConfig

func NewUpdateCollectionHnswConfigFromUnknown added in v0.0.35

func NewUpdateCollectionHnswConfigFromUnknown(value interface{}) *UpdateCollectionHnswConfig

func (*UpdateCollectionHnswConfig) Accept added in v0.0.35

func (UpdateCollectionHnswConfig) MarshalJSON added in v0.0.35

func (u UpdateCollectionHnswConfig) MarshalJSON() ([]byte, error)

func (*UpdateCollectionHnswConfig) UnmarshalJSON added in v0.0.35

func (u *UpdateCollectionHnswConfig) UnmarshalJSON(data []byte) error

type UpdateCollectionHnswConfigVisitor added in v0.0.35

type UpdateCollectionHnswConfigVisitor interface {
	VisitHnswConfigDiff(*HnswConfigDiff) error
	VisitUnknown(interface{}) error
}

type UpdateCollectionOptimizersConfig added in v0.0.35

type UpdateCollectionOptimizersConfig struct {
	OptimizersConfigDiff *OptimizersConfigDiff
	Unknown              interface{}
	// contains filtered or unexported fields
}

Custom params for Optimizers. If none - it is left unchanged. This operation is blocking, it will only proceed once all current optimizations are complete

func NewUpdateCollectionOptimizersConfigFromOptimizersConfigDiff added in v0.0.35

func NewUpdateCollectionOptimizersConfigFromOptimizersConfigDiff(value *OptimizersConfigDiff) *UpdateCollectionOptimizersConfig

func NewUpdateCollectionOptimizersConfigFromUnknown added in v0.0.35

func NewUpdateCollectionOptimizersConfigFromUnknown(value interface{}) *UpdateCollectionOptimizersConfig

func (*UpdateCollectionOptimizersConfig) Accept added in v0.0.35

func (UpdateCollectionOptimizersConfig) MarshalJSON added in v0.0.35

func (u UpdateCollectionOptimizersConfig) MarshalJSON() ([]byte, error)

func (*UpdateCollectionOptimizersConfig) UnmarshalJSON added in v0.0.35

func (u *UpdateCollectionOptimizersConfig) UnmarshalJSON(data []byte) error

type UpdateCollectionOptimizersConfigVisitor added in v0.0.35

type UpdateCollectionOptimizersConfigVisitor interface {
	VisitOptimizersConfigDiff(*OptimizersConfigDiff) error
	VisitUnknown(interface{}) error
}

type UpdateCollectionParams added in v0.0.35

type UpdateCollectionParams struct {
	CollectionParamsDiff *CollectionParamsDiff
	Unknown              interface{}
	// contains filtered or unexported fields
}

Collection base params. If none - it is left unchanged.

func NewUpdateCollectionParamsFromCollectionParamsDiff added in v0.0.35

func NewUpdateCollectionParamsFromCollectionParamsDiff(value *CollectionParamsDiff) *UpdateCollectionParams

func NewUpdateCollectionParamsFromUnknown added in v0.0.35

func NewUpdateCollectionParamsFromUnknown(value interface{}) *UpdateCollectionParams

func (*UpdateCollectionParams) Accept added in v0.0.35

func (UpdateCollectionParams) MarshalJSON added in v0.0.35

func (u UpdateCollectionParams) MarshalJSON() ([]byte, error)

func (*UpdateCollectionParams) UnmarshalJSON added in v0.0.35

func (u *UpdateCollectionParams) UnmarshalJSON(data []byte) error

type UpdateCollectionParamsVisitor added in v0.0.35

type UpdateCollectionParamsVisitor interface {
	VisitCollectionParamsDiff(*CollectionParamsDiff) error
	VisitUnknown(interface{}) error
}

type UpdateCollectionQuantizationConfig added in v0.0.35

type UpdateCollectionQuantizationConfig struct {
	QuantizationConfigDiff *QuantizationConfigDiff
	Unknown                interface{}
	// contains filtered or unexported fields
}

Quantization parameters to update. If none - it is left unchanged.

func NewUpdateCollectionQuantizationConfigFromQuantizationConfigDiff added in v0.0.35

func NewUpdateCollectionQuantizationConfigFromQuantizationConfigDiff(value *QuantizationConfigDiff) *UpdateCollectionQuantizationConfig

func NewUpdateCollectionQuantizationConfigFromUnknown added in v0.0.35

func NewUpdateCollectionQuantizationConfigFromUnknown(value interface{}) *UpdateCollectionQuantizationConfig

func (*UpdateCollectionQuantizationConfig) Accept added in v0.0.35

func (UpdateCollectionQuantizationConfig) MarshalJSON added in v0.0.35

func (u UpdateCollectionQuantizationConfig) MarshalJSON() ([]byte, error)

func (*UpdateCollectionQuantizationConfig) UnmarshalJSON added in v0.0.35

func (u *UpdateCollectionQuantizationConfig) UnmarshalJSON(data []byte) error

type UpdateCollectionQuantizationConfigVisitor added in v0.0.35

type UpdateCollectionQuantizationConfigVisitor interface {
	VisitQuantizationConfigDiff(*QuantizationConfigDiff) error
	VisitUnknown(interface{}) error
}

type UpdateCollectionResponse added in v0.0.35

type UpdateCollectionResponse struct {
	// Time spent to process this request
	Time   *float64 `json:"time,omitempty"`
	Status *string  `json:"status,omitempty"`
	Result *bool    `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateCollectionResponse) String added in v0.0.35

func (u *UpdateCollectionResponse) String() string

func (*UpdateCollectionResponse) UnmarshalJSON added in v0.0.35

func (u *UpdateCollectionResponse) UnmarshalJSON(data []byte) error

type UpdateCollectionSparseVectors added in v0.0.35

type UpdateCollectionSparseVectors struct {
	SparseVectorsConfig SparseVectorsConfig
	Unknown             interface{}
	// contains filtered or unexported fields
}

Map of sparse vector data parameters to update for each sparse vector.

func NewUpdateCollectionSparseVectorsFromSparseVectorsConfig added in v0.0.35

func NewUpdateCollectionSparseVectorsFromSparseVectorsConfig(value SparseVectorsConfig) *UpdateCollectionSparseVectors

func NewUpdateCollectionSparseVectorsFromUnknown added in v0.0.35

func NewUpdateCollectionSparseVectorsFromUnknown(value interface{}) *UpdateCollectionSparseVectors

func (*UpdateCollectionSparseVectors) Accept added in v0.0.35

func (UpdateCollectionSparseVectors) MarshalJSON added in v0.0.35

func (u UpdateCollectionSparseVectors) MarshalJSON() ([]byte, error)

func (*UpdateCollectionSparseVectors) UnmarshalJSON added in v0.0.35

func (u *UpdateCollectionSparseVectors) UnmarshalJSON(data []byte) error

type UpdateCollectionSparseVectorsVisitor added in v0.0.35

type UpdateCollectionSparseVectorsVisitor interface {
	VisitSparseVectorsConfig(SparseVectorsConfig) error
	VisitUnknown(interface{}) error
}

type UpdateCollectionVectors added in v0.0.35

type UpdateCollectionVectors struct {
	VectorsConfigDiff VectorsConfigDiff
	Unknown           interface{}
	// contains filtered or unexported fields
}

Map of vector data parameters to update for each named vector. To update parameters in a collection having a single unnamed vector, use an empty string as name.

func NewUpdateCollectionVectorsFromUnknown added in v0.0.35

func NewUpdateCollectionVectorsFromUnknown(value interface{}) *UpdateCollectionVectors

func NewUpdateCollectionVectorsFromVectorsConfigDiff added in v0.0.35

func NewUpdateCollectionVectorsFromVectorsConfigDiff(value VectorsConfigDiff) *UpdateCollectionVectors

func (*UpdateCollectionVectors) Accept added in v0.0.35

func (UpdateCollectionVectors) MarshalJSON added in v0.0.35

func (u UpdateCollectionVectors) MarshalJSON() ([]byte, error)

func (*UpdateCollectionVectors) UnmarshalJSON added in v0.0.35

func (u *UpdateCollectionVectors) UnmarshalJSON(data []byte) error

type UpdateCollectionVectorsVisitor added in v0.0.35

type UpdateCollectionVectorsVisitor interface {
	VisitVectorsConfigDiff(VectorsConfigDiff) error
	VisitUnknown(interface{}) error
}

type UpdateOperation added in v0.0.35

type UpdateOperation struct {
	UpsertOperation           *UpsertOperation
	DeleteOperation           *DeleteOperation
	SetPayloadOperation       *SetPayloadOperation
	OverwritePayloadOperation *OverwritePayloadOperation
	DeletePayloadOperation    *DeletePayloadOperation
	ClearPayloadOperation     *ClearPayloadOperation
	UpdateVectorsOperation    *UpdateVectorsOperation
	DeleteVectorsOperation    *DeleteVectorsOperation
	// contains filtered or unexported fields
}

func NewUpdateOperationFromClearPayloadOperation added in v0.0.35

func NewUpdateOperationFromClearPayloadOperation(value *ClearPayloadOperation) *UpdateOperation

func NewUpdateOperationFromDeleteOperation added in v0.0.35

func NewUpdateOperationFromDeleteOperation(value *DeleteOperation) *UpdateOperation

func NewUpdateOperationFromDeletePayloadOperation added in v0.0.35

func NewUpdateOperationFromDeletePayloadOperation(value *DeletePayloadOperation) *UpdateOperation

func NewUpdateOperationFromDeleteVectorsOperation added in v0.0.35

func NewUpdateOperationFromDeleteVectorsOperation(value *DeleteVectorsOperation) *UpdateOperation

func NewUpdateOperationFromOverwritePayloadOperation added in v0.0.35

func NewUpdateOperationFromOverwritePayloadOperation(value *OverwritePayloadOperation) *UpdateOperation

func NewUpdateOperationFromSetPayloadOperation added in v0.0.35

func NewUpdateOperationFromSetPayloadOperation(value *SetPayloadOperation) *UpdateOperation

func NewUpdateOperationFromUpdateVectorsOperation added in v0.0.35

func NewUpdateOperationFromUpdateVectorsOperation(value *UpdateVectorsOperation) *UpdateOperation

func NewUpdateOperationFromUpsertOperation added in v0.0.35

func NewUpdateOperationFromUpsertOperation(value *UpsertOperation) *UpdateOperation

func (*UpdateOperation) Accept added in v0.0.35

func (u *UpdateOperation) Accept(visitor UpdateOperationVisitor) error

func (UpdateOperation) MarshalJSON added in v0.0.35

func (u UpdateOperation) MarshalJSON() ([]byte, error)

func (*UpdateOperation) UnmarshalJSON added in v0.0.35

func (u *UpdateOperation) UnmarshalJSON(data []byte) error

type UpdateOperationVisitor added in v0.0.35

type UpdateOperationVisitor interface {
	VisitUpsertOperation(*UpsertOperation) error
	VisitDeleteOperation(*DeleteOperation) error
	VisitSetPayloadOperation(*SetPayloadOperation) error
	VisitOverwritePayloadOperation(*OverwritePayloadOperation) error
	VisitDeletePayloadOperation(*DeletePayloadOperation) error
	VisitClearPayloadOperation(*ClearPayloadOperation) error
	VisitUpdateVectorsOperation(*UpdateVectorsOperation) error
	VisitDeleteVectorsOperation(*DeleteVectorsOperation) error
}

type UpdateOperations added in v0.0.35

type UpdateOperations struct {
	// If true, wait for changes to actually happen
	Wait *bool `json:"-"`
	// define ordering guarantees for the operation
	Ordering   *WriteOrdering     `json:"-"`
	Operations []*UpdateOperation `json:"operations,omitempty"`
}

type UpdateResult added in v0.0.35

type UpdateResult struct {
	// Sequential number of the operation
	OperationId *int         `json:"operation_id,omitempty"`
	Status      UpdateStatus `json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateResult) String added in v0.0.35

func (u *UpdateResult) String() string

func (*UpdateResult) UnmarshalJSON added in v0.0.35

func (u *UpdateResult) UnmarshalJSON(data []byte) error

type UpdateStatus added in v0.0.35

type UpdateStatus string

`Acknowledged` - Request is saved to WAL and will be process in a queue. `Completed` - Request is completed, changes are actual.

const (
	UpdateStatusAcknowledged UpdateStatus = "acknowledged"
	UpdateStatusCompleted    UpdateStatus = "completed"
)

func NewUpdateStatusFromString added in v0.0.35

func NewUpdateStatusFromString(s string) (UpdateStatus, error)

func (UpdateStatus) Ptr added in v0.0.35

func (u UpdateStatus) Ptr() *UpdateStatus

type UpdateVectors added in v0.0.35

type UpdateVectors struct {
	// Points with named vectors
	Points   []*PointVectors        `json:"points,omitempty"`
	ShardKey *UpdateVectorsShardKey `json:"shard_key,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateVectors) String added in v0.0.35

func (u *UpdateVectors) String() string

func (*UpdateVectors) UnmarshalJSON added in v0.0.35

func (u *UpdateVectors) UnmarshalJSON(data []byte) error

type UpdateVectorsOperation added in v0.0.35

type UpdateVectorsOperation struct {
	UpdateVectors *UpdateVectors `json:"update_vectors,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateVectorsOperation) String added in v0.0.35

func (u *UpdateVectorsOperation) String() string

func (*UpdateVectorsOperation) UnmarshalJSON added in v0.0.35

func (u *UpdateVectorsOperation) UnmarshalJSON(data []byte) error

type UpdateVectorsRequest added in v0.0.35

type UpdateVectorsRequest struct {
	// If true, wait for changes to actually happen
	Wait *bool `json:"-"`
	// define ordering guarantees for the operation
	Ordering *WriteOrdering `json:"-"`
	Body     *UpdateVectors `json:"-"`
}

func (*UpdateVectorsRequest) MarshalJSON added in v0.0.35

func (u *UpdateVectorsRequest) MarshalJSON() ([]byte, error)

func (*UpdateVectorsRequest) UnmarshalJSON added in v0.0.35

func (u *UpdateVectorsRequest) UnmarshalJSON(data []byte) error

type UpdateVectorsResponse added in v0.0.35

type UpdateVectorsResponse struct {
	// Time spent to process this request
	Time   *float64      `json:"time,omitempty"`
	Status *string       `json:"status,omitempty"`
	Result *UpdateResult `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateVectorsResponse) String added in v0.0.35

func (u *UpdateVectorsResponse) String() string

func (*UpdateVectorsResponse) UnmarshalJSON added in v0.0.35

func (u *UpdateVectorsResponse) UnmarshalJSON(data []byte) error

type UpdateVectorsShardKey added in v0.0.35

type UpdateVectorsShardKey struct {
	ShardKeySelector *ShardKeySelector
	Unknown          interface{}
	// contains filtered or unexported fields
}

func NewUpdateVectorsShardKeyFromShardKeySelector added in v0.0.35

func NewUpdateVectorsShardKeyFromShardKeySelector(value *ShardKeySelector) *UpdateVectorsShardKey

func NewUpdateVectorsShardKeyFromUnknown added in v0.0.35

func NewUpdateVectorsShardKeyFromUnknown(value interface{}) *UpdateVectorsShardKey

func (*UpdateVectorsShardKey) Accept added in v0.0.35

func (UpdateVectorsShardKey) MarshalJSON added in v0.0.35

func (u UpdateVectorsShardKey) MarshalJSON() ([]byte, error)

func (*UpdateVectorsShardKey) UnmarshalJSON added in v0.0.35

func (u *UpdateVectorsShardKey) UnmarshalJSON(data []byte) error

type UpdateVectorsShardKeyVisitor added in v0.0.35

type UpdateVectorsShardKeyVisitor interface {
	VisitShardKeySelector(*ShardKeySelector) error
	VisitUnknown(interface{}) error
}

type UpsertOperation added in v0.0.35

type UpsertOperation struct {
	Upsert *PointInsertOperations `json:"upsert,omitempty"`
	// contains filtered or unexported fields
}

func (*UpsertOperation) String added in v0.0.35

func (u *UpsertOperation) String() string

func (*UpsertOperation) UnmarshalJSON added in v0.0.35

func (u *UpsertOperation) UnmarshalJSON(data []byte) error

type UpsertPointsRequest added in v0.0.35

type UpsertPointsRequest struct {
	// If true, wait for changes to actually happen
	Wait *bool `json:"-"`
	// define ordering guarantees for the operation
	Ordering *WriteOrdering         `json:"-"`
	Body     *PointInsertOperations `json:"-"`
}

func (*UpsertPointsRequest) MarshalJSON added in v0.0.35

func (u *UpsertPointsRequest) MarshalJSON() ([]byte, error)

func (*UpsertPointsRequest) UnmarshalJSON added in v0.0.35

func (u *UpsertPointsRequest) UnmarshalJSON(data []byte) error

type UpsertPointsResponse added in v0.0.35

type UpsertPointsResponse struct {
	// Time spent to process this request
	Time   *float64      `json:"time,omitempty"`
	Status *string       `json:"status,omitempty"`
	Result *UpdateResult `json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*UpsertPointsResponse) String added in v0.0.35

func (u *UpsertPointsResponse) String() string

func (*UpsertPointsResponse) UnmarshalJSON added in v0.0.35

func (u *UpsertPointsResponse) UnmarshalJSON(data []byte) error

type UsingVector added in v0.0.35

type UsingVector = string

type ValueVariants added in v0.0.35

type ValueVariants struct {
	String  string
	Integer int
	Boolean bool
	// contains filtered or unexported fields
}

func NewValueVariantsFromBoolean added in v0.0.35

func NewValueVariantsFromBoolean(value bool) *ValueVariants

func NewValueVariantsFromInteger added in v0.0.35

func NewValueVariantsFromInteger(value int) *ValueVariants

func NewValueVariantsFromString added in v0.0.35

func NewValueVariantsFromString(value string) *ValueVariants

func (*ValueVariants) Accept added in v0.0.35

func (v *ValueVariants) Accept(visitor ValueVariantsVisitor) error

func (ValueVariants) MarshalJSON added in v0.0.35

func (v ValueVariants) MarshalJSON() ([]byte, error)

func (*ValueVariants) UnmarshalJSON added in v0.0.35

func (v *ValueVariants) UnmarshalJSON(data []byte) error

type ValueVariantsVisitor added in v0.0.35

type ValueVariantsVisitor interface {
	VisitString(string) error
	VisitInteger(int) error
	VisitBoolean(bool) error
}

type ValuesCount added in v0.0.35

type ValuesCount struct {
	// point.key.length() < values_count.lt
	Lt *int `json:"lt,omitempty"`
	// point.key.length() > values_count.gt
	Gt *int `json:"gt,omitempty"`
	// point.key.length() >= values_count.gte
	Gte *int `json:"gte,omitempty"`
	// point.key.length() <= values_count.lte
	Lte *int `json:"lte,omitempty"`
	// contains filtered or unexported fields
}

Values count filter request

func (*ValuesCount) String added in v0.0.35

func (v *ValuesCount) String() string

func (*ValuesCount) UnmarshalJSON added in v0.0.35

func (v *ValuesCount) UnmarshalJSON(data []byte) error

type Vector added in v0.0.35

type Vector struct {
	DoubleList   []float64
	SparseVector *SparseVector
	// contains filtered or unexported fields
}

func NewVectorFromDoubleList added in v0.0.35

func NewVectorFromDoubleList(value []float64) *Vector

func NewVectorFromSparseVector added in v0.0.35

func NewVectorFromSparseVector(value *SparseVector) *Vector

func (*Vector) Accept added in v0.0.35

func (v *Vector) Accept(visitor VectorVisitor) error

func (Vector) MarshalJSON added in v0.0.35

func (v Vector) MarshalJSON() ([]byte, error)

func (*Vector) UnmarshalJSON added in v0.0.35

func (v *Vector) UnmarshalJSON(data []byte) error

type VectorDataConfig added in v0.0.35

type VectorDataConfig struct {
	// Size/dimensionality of the vectors used
	Size        int               `json:"size"`
	Distance    Distance          `json:"distance,omitempty"`
	StorageType VectorStorageType `json:"storage_type,omitempty"`
	Index       *Indexes          `json:"index,omitempty"`
	// Vector specific quantization config that overrides collection config
	QuantizationConfig *VectorDataConfigQuantizationConfig `json:"quantization_config,omitempty"`
	// contains filtered or unexported fields
}

Config of single vector data storage

func (*VectorDataConfig) String added in v0.0.35

func (v *VectorDataConfig) String() string

func (*VectorDataConfig) UnmarshalJSON added in v0.0.35

func (v *VectorDataConfig) UnmarshalJSON(data []byte) error

type VectorDataConfigQuantizationConfig added in v0.0.35

type VectorDataConfigQuantizationConfig struct {
	QuantizationConfig *QuantizationConfig
	Unknown            interface{}
	// contains filtered or unexported fields
}

Vector specific quantization config that overrides collection config

func NewVectorDataConfigQuantizationConfigFromQuantizationConfig added in v0.0.35

func NewVectorDataConfigQuantizationConfigFromQuantizationConfig(value *QuantizationConfig) *VectorDataConfigQuantizationConfig

func NewVectorDataConfigQuantizationConfigFromUnknown added in v0.0.35

func NewVectorDataConfigQuantizationConfigFromUnknown(value interface{}) *VectorDataConfigQuantizationConfig

func (*VectorDataConfigQuantizationConfig) Accept added in v0.0.35

func (VectorDataConfigQuantizationConfig) MarshalJSON added in v0.0.35

func (v VectorDataConfigQuantizationConfig) MarshalJSON() ([]byte, error)

func (*VectorDataConfigQuantizationConfig) UnmarshalJSON added in v0.0.35

func (v *VectorDataConfigQuantizationConfig) UnmarshalJSON(data []byte) error

type VectorDataConfigQuantizationConfigVisitor added in v0.0.35

type VectorDataConfigQuantizationConfigVisitor interface {
	VisitQuantizationConfig(*QuantizationConfig) error
	VisitUnknown(interface{}) error
}

type VectorDataInfo added in v0.0.35

type VectorDataInfo struct {
	NumVectors        int `json:"num_vectors"`
	NumIndexedVectors int `json:"num_indexed_vectors"`
	NumDeletedVectors int `json:"num_deleted_vectors"`
	// contains filtered or unexported fields
}

func (*VectorDataInfo) String added in v0.0.35

func (v *VectorDataInfo) String() string

func (*VectorDataInfo) UnmarshalJSON added in v0.0.35

func (v *VectorDataInfo) UnmarshalJSON(data []byte) error

type VectorIndexSearchesTelemetry added in v0.0.35

type VectorIndexSearchesTelemetry struct {
	IndexName                *string                      `json:"index_name,omitempty"`
	UnfilteredPlain          *OperationDurationStatistics `json:"unfiltered_plain,omitempty"`
	UnfilteredHnsw           *OperationDurationStatistics `json:"unfiltered_hnsw,omitempty"`
	UnfilteredSparse         *OperationDurationStatistics `json:"unfiltered_sparse,omitempty"`
	FilteredPlain            *OperationDurationStatistics `json:"filtered_plain,omitempty"`
	FilteredSmallCardinality *OperationDurationStatistics `json:"filtered_small_cardinality,omitempty"`
	FilteredLargeCardinality *OperationDurationStatistics `json:"filtered_large_cardinality,omitempty"`
	FilteredExact            *OperationDurationStatistics `json:"filtered_exact,omitempty"`
	FilteredSparse           *OperationDurationStatistics `json:"filtered_sparse,omitempty"`
	UnfilteredExact          *OperationDurationStatistics `json:"unfiltered_exact,omitempty"`
	// contains filtered or unexported fields
}

func (*VectorIndexSearchesTelemetry) String added in v0.0.35

func (*VectorIndexSearchesTelemetry) UnmarshalJSON added in v0.0.35

func (v *VectorIndexSearchesTelemetry) UnmarshalJSON(data []byte) error

type VectorParams added in v0.0.35

type VectorParams struct {
	// Size of a vectors used
	Size     int      `json:"size"`
	Distance Distance `json:"distance,omitempty"`
	// Custom params for HNSW index. If none - values from collection configuration are used.
	HnswConfig *VectorParamsHnswConfig `json:"hnsw_config,omitempty"`
	// Custom params for quantization. If none - values from collection configuration are used.
	QuantizationConfig *VectorParamsQuantizationConfig `json:"quantization_config,omitempty"`
	// If true, vectors are served from disk, improving RAM usage at the cost of latency Default: false
	OnDisk *bool `json:"on_disk,omitempty"`
	// contains filtered or unexported fields
}

Params of single vector data storage

func (*VectorParams) String added in v0.0.35

func (v *VectorParams) String() string

func (*VectorParams) UnmarshalJSON added in v0.0.35

func (v *VectorParams) UnmarshalJSON(data []byte) error

type VectorParamsDiff added in v0.0.35

type VectorParamsDiff struct {
	// Update params for HNSW index. If empty object - it will be unset.
	HnswConfig *VectorParamsDiffHnswConfig `json:"hnsw_config,omitempty"`
	// Update params for quantization. If none - it is left unchanged.
	QuantizationConfig *VectorParamsDiffQuantizationConfig `json:"quantization_config,omitempty"`
	// If true, vectors are served from disk, improving RAM usage at the cost of latency
	OnDisk *bool `json:"on_disk,omitempty"`
	// contains filtered or unexported fields
}

func (*VectorParamsDiff) String added in v0.0.35

func (v *VectorParamsDiff) String() string

func (*VectorParamsDiff) UnmarshalJSON added in v0.0.35

func (v *VectorParamsDiff) UnmarshalJSON(data []byte) error

type VectorParamsDiffHnswConfig added in v0.0.35

type VectorParamsDiffHnswConfig struct {
	HnswConfigDiff *HnswConfigDiff
	Unknown        interface{}
	// contains filtered or unexported fields
}

Update params for HNSW index. If empty object - it will be unset.

func NewVectorParamsDiffHnswConfigFromHnswConfigDiff added in v0.0.35

func NewVectorParamsDiffHnswConfigFromHnswConfigDiff(value *HnswConfigDiff) *VectorParamsDiffHnswConfig

func NewVectorParamsDiffHnswConfigFromUnknown added in v0.0.35

func NewVectorParamsDiffHnswConfigFromUnknown(value interface{}) *VectorParamsDiffHnswConfig

func (*VectorParamsDiffHnswConfig) Accept added in v0.0.35

func (VectorParamsDiffHnswConfig) MarshalJSON added in v0.0.35

func (v VectorParamsDiffHnswConfig) MarshalJSON() ([]byte, error)

func (*VectorParamsDiffHnswConfig) UnmarshalJSON added in v0.0.35

func (v *VectorParamsDiffHnswConfig) UnmarshalJSON(data []byte) error

type VectorParamsDiffHnswConfigVisitor added in v0.0.35

type VectorParamsDiffHnswConfigVisitor interface {
	VisitHnswConfigDiff(*HnswConfigDiff) error
	VisitUnknown(interface{}) error
}

type VectorParamsDiffQuantizationConfig added in v0.0.35

type VectorParamsDiffQuantizationConfig struct {
	QuantizationConfigDiff *QuantizationConfigDiff
	Unknown                interface{}
	// contains filtered or unexported fields
}

Update params for quantization. If none - it is left unchanged.

func NewVectorParamsDiffQuantizationConfigFromQuantizationConfigDiff added in v0.0.35

func NewVectorParamsDiffQuantizationConfigFromQuantizationConfigDiff(value *QuantizationConfigDiff) *VectorParamsDiffQuantizationConfig

func NewVectorParamsDiffQuantizationConfigFromUnknown added in v0.0.35

func NewVectorParamsDiffQuantizationConfigFromUnknown(value interface{}) *VectorParamsDiffQuantizationConfig

func (*VectorParamsDiffQuantizationConfig) Accept added in v0.0.35

func (VectorParamsDiffQuantizationConfig) MarshalJSON added in v0.0.35

func (v VectorParamsDiffQuantizationConfig) MarshalJSON() ([]byte, error)

func (*VectorParamsDiffQuantizationConfig) UnmarshalJSON added in v0.0.35

func (v *VectorParamsDiffQuantizationConfig) UnmarshalJSON(data []byte) error

type VectorParamsDiffQuantizationConfigVisitor added in v0.0.35

type VectorParamsDiffQuantizationConfigVisitor interface {
	VisitQuantizationConfigDiff(*QuantizationConfigDiff) error
	VisitUnknown(interface{}) error
}

type VectorParamsHnswConfig added in v0.0.35

type VectorParamsHnswConfig struct {
	HnswConfigDiff *HnswConfigDiff
	Unknown        interface{}
	// contains filtered or unexported fields
}

Custom params for HNSW index. If none - values from collection configuration are used.

func NewVectorParamsHnswConfigFromHnswConfigDiff added in v0.0.35

func NewVectorParamsHnswConfigFromHnswConfigDiff(value *HnswConfigDiff) *VectorParamsHnswConfig

func NewVectorParamsHnswConfigFromUnknown added in v0.0.35

func NewVectorParamsHnswConfigFromUnknown(value interface{}) *VectorParamsHnswConfig

func (*VectorParamsHnswConfig) Accept added in v0.0.35

func (VectorParamsHnswConfig) MarshalJSON added in v0.0.35

func (v VectorParamsHnswConfig) MarshalJSON() ([]byte, error)

func (*VectorParamsHnswConfig) UnmarshalJSON added in v0.0.35

func (v *VectorParamsHnswConfig) UnmarshalJSON(data []byte) error

type VectorParamsHnswConfigVisitor added in v0.0.35

type VectorParamsHnswConfigVisitor interface {
	VisitHnswConfigDiff(*HnswConfigDiff) error
	VisitUnknown(interface{}) error
}

type VectorParamsQuantizationConfig added in v0.0.35

type VectorParamsQuantizationConfig struct {
	QuantizationConfig *QuantizationConfig
	Unknown            interface{}
	// contains filtered or unexported fields
}

Custom params for quantization. If none - values from collection configuration are used.

func NewVectorParamsQuantizationConfigFromQuantizationConfig added in v0.0.35

func NewVectorParamsQuantizationConfigFromQuantizationConfig(value *QuantizationConfig) *VectorParamsQuantizationConfig

func NewVectorParamsQuantizationConfigFromUnknown added in v0.0.35

func NewVectorParamsQuantizationConfigFromUnknown(value interface{}) *VectorParamsQuantizationConfig

func (*VectorParamsQuantizationConfig) Accept added in v0.0.35

func (VectorParamsQuantizationConfig) MarshalJSON added in v0.0.35

func (v VectorParamsQuantizationConfig) MarshalJSON() ([]byte, error)

func (*VectorParamsQuantizationConfig) UnmarshalJSON added in v0.0.35

func (v *VectorParamsQuantizationConfig) UnmarshalJSON(data []byte) error

type VectorParamsQuantizationConfigVisitor added in v0.0.35

type VectorParamsQuantizationConfigVisitor interface {
	VisitQuantizationConfig(*QuantizationConfig) error
	VisitUnknown(interface{}) error
}

type VectorStorageType added in v0.0.35

type VectorStorageType string

Storage types for vectors

const (
	VectorStorageTypeMemory      VectorStorageType = "Memory"
	VectorStorageTypeMmap        VectorStorageType = "Mmap"
	VectorStorageTypeChunkedMmap VectorStorageType = "ChunkedMmap"
)

func NewVectorStorageTypeFromString added in v0.0.35

func NewVectorStorageTypeFromString(s string) (VectorStorageType, error)

func (VectorStorageType) Ptr added in v0.0.35

type VectorStruct added in v0.0.35

type VectorStruct struct {
	DoubleList      []float64
	StringVectorMap map[string]*Vector
	// contains filtered or unexported fields
}

Full vector data per point separator with single and multiple vector modes

func NewVectorStructFromDoubleList added in v0.0.35

func NewVectorStructFromDoubleList(value []float64) *VectorStruct

func NewVectorStructFromStringVectorMap added in v0.0.35

func NewVectorStructFromStringVectorMap(value map[string]*Vector) *VectorStruct

func (*VectorStruct) Accept added in v0.0.35

func (v *VectorStruct) Accept(visitor VectorStructVisitor) error

func (VectorStruct) MarshalJSON added in v0.0.35

func (v VectorStruct) MarshalJSON() ([]byte, error)

func (*VectorStruct) UnmarshalJSON added in v0.0.35

func (v *VectorStruct) UnmarshalJSON(data []byte) error

type VectorStructVisitor added in v0.0.35

type VectorStructVisitor interface {
	VisitDoubleList([]float64) error
	VisitStringVectorMap(map[string]*Vector) error
}

type VectorVisitor added in v0.0.35

type VectorVisitor interface {
	VisitDoubleList([]float64) error
	VisitSparseVector(*SparseVector) error
}

type VectorsConfig added in v0.0.35

type VectorsConfig struct {
	VectorParams          *VectorParams
	StringVectorParamsMap map[string]*VectorParams
	// contains filtered or unexported fields
}

Vector params separator for single and multiple vector modes Single mode:

{ "size": 128, "distance": "Cosine" }

or multiple mode:

{ "default": { "size": 128, "distance": "Cosine" } }

func NewVectorsConfigFromStringVectorParamsMap added in v0.0.35

func NewVectorsConfigFromStringVectorParamsMap(value map[string]*VectorParams) *VectorsConfig

func NewVectorsConfigFromVectorParams added in v0.0.35

func NewVectorsConfigFromVectorParams(value *VectorParams) *VectorsConfig

func (*VectorsConfig) Accept added in v0.0.35

func (v *VectorsConfig) Accept(visitor VectorsConfigVisitor) error

func (VectorsConfig) MarshalJSON added in v0.0.35

func (v VectorsConfig) MarshalJSON() ([]byte, error)

func (*VectorsConfig) UnmarshalJSON added in v0.0.35

func (v *VectorsConfig) UnmarshalJSON(data []byte) error

type VectorsConfigDiff added in v0.0.35

type VectorsConfigDiff = map[string]*VectorParamsDiff

Vector update params for multiple vectors

{ "vector_name": { "hnsw_config": { "m": 8 } } }

type VectorsConfigVisitor added in v0.0.35

type VectorsConfigVisitor interface {
	VisitVectorParams(*VectorParams) error
	VisitStringVectorParamsMap(map[string]*VectorParams) error
}

type WalConfig added in v0.0.35

type WalConfig struct {
	// Size of a single WAL segment in MB
	WalCapacityMb int `json:"wal_capacity_mb"`
	// Number of WAL segments to create ahead of actually used ones
	WalSegmentsAhead int `json:"wal_segments_ahead"`
	// contains filtered or unexported fields
}

func (*WalConfig) String added in v0.0.35

func (w *WalConfig) String() string

func (*WalConfig) UnmarshalJSON added in v0.0.35

func (w *WalConfig) UnmarshalJSON(data []byte) error

type WalConfigDiff added in v0.0.35

type WalConfigDiff struct {
	// Size of a single WAL segment in MB
	WalCapacityMb *int `json:"wal_capacity_mb,omitempty"`
	// Number of WAL segments to create ahead of actually used ones
	WalSegmentsAhead *int `json:"wal_segments_ahead,omitempty"`
	// contains filtered or unexported fields
}

func (*WalConfigDiff) String added in v0.0.35

func (w *WalConfigDiff) String() string

func (*WalConfigDiff) UnmarshalJSON added in v0.0.35

func (w *WalConfigDiff) UnmarshalJSON(data []byte) error

type WebApiTelemetry added in v0.0.35

type WebApiTelemetry struct {
	Responses map[string]map[string]*OperationDurationStatistics `json:"responses,omitempty"`
	// contains filtered or unexported fields
}

func (*WebApiTelemetry) String added in v0.0.35

func (w *WebApiTelemetry) String() string

func (*WebApiTelemetry) UnmarshalJSON added in v0.0.35

func (w *WebApiTelemetry) UnmarshalJSON(data []byte) error

type WithLookup added in v0.0.35

type WithLookup struct {
	// Name of the collection to use for points lookup
	Collection string `json:"collection"`
	// Options for specifying which payload to include (or not)
	WithPayload *WithLookupWithPayload `json:"with_payload,omitempty"`
	// Options for specifying which vectors to include (or not)
	WithVectors *WithLookupWithVectors `json:"with_vectors,omitempty"`
	// contains filtered or unexported fields
}

func (*WithLookup) String added in v0.0.35

func (w *WithLookup) String() string

func (*WithLookup) UnmarshalJSON added in v0.0.35

func (w *WithLookup) UnmarshalJSON(data []byte) error

type WithLookupInterface added in v0.0.35

type WithLookupInterface struct {
	String     string
	WithLookup *WithLookup
	// contains filtered or unexported fields
}

func NewWithLookupInterfaceFromString added in v0.0.35

func NewWithLookupInterfaceFromString(value string) *WithLookupInterface

func NewWithLookupInterfaceFromWithLookup added in v0.0.35

func NewWithLookupInterfaceFromWithLookup(value *WithLookup) *WithLookupInterface

func (*WithLookupInterface) Accept added in v0.0.35

func (WithLookupInterface) MarshalJSON added in v0.0.35

func (w WithLookupInterface) MarshalJSON() ([]byte, error)

func (*WithLookupInterface) UnmarshalJSON added in v0.0.35

func (w *WithLookupInterface) UnmarshalJSON(data []byte) error

type WithLookupInterfaceVisitor added in v0.0.35

type WithLookupInterfaceVisitor interface {
	VisitString(string) error
	VisitWithLookup(*WithLookup) error
}

type WithLookupWithPayload added in v0.0.35

type WithLookupWithPayload struct {
	WithPayloadInterface *WithPayloadInterface
	Unknown              interface{}
	// contains filtered or unexported fields
}

Options for specifying which payload to include (or not)

func NewWithLookupWithPayloadFromUnknown added in v0.0.35

func NewWithLookupWithPayloadFromUnknown(value interface{}) *WithLookupWithPayload

func NewWithLookupWithPayloadFromWithPayloadInterface added in v0.0.35

func NewWithLookupWithPayloadFromWithPayloadInterface(value *WithPayloadInterface) *WithLookupWithPayload

func (*WithLookupWithPayload) Accept added in v0.0.35

func (WithLookupWithPayload) MarshalJSON added in v0.0.35

func (w WithLookupWithPayload) MarshalJSON() ([]byte, error)

func (*WithLookupWithPayload) UnmarshalJSON added in v0.0.35

func (w *WithLookupWithPayload) UnmarshalJSON(data []byte) error

type WithLookupWithPayloadVisitor added in v0.0.35

type WithLookupWithPayloadVisitor interface {
	VisitWithPayloadInterface(*WithPayloadInterface) error
	VisitUnknown(interface{}) error
}

type WithLookupWithVectors added in v0.0.35

type WithLookupWithVectors struct {
	WithVector *WithVector
	Unknown    interface{}
	// contains filtered or unexported fields
}

Options for specifying which vectors to include (or not)

func NewWithLookupWithVectorsFromUnknown added in v0.0.35

func NewWithLookupWithVectorsFromUnknown(value interface{}) *WithLookupWithVectors

func NewWithLookupWithVectorsFromWithVector added in v0.0.35

func NewWithLookupWithVectorsFromWithVector(value *WithVector) *WithLookupWithVectors

func (*WithLookupWithVectors) Accept added in v0.0.35

func (WithLookupWithVectors) MarshalJSON added in v0.0.35

func (w WithLookupWithVectors) MarshalJSON() ([]byte, error)

func (*WithLookupWithVectors) UnmarshalJSON added in v0.0.35

func (w *WithLookupWithVectors) UnmarshalJSON(data []byte) error

type WithLookupWithVectorsVisitor added in v0.0.35

type WithLookupWithVectorsVisitor interface {
	VisitWithVector(*WithVector) error
	VisitUnknown(interface{}) error
}

type WithPayloadInterface added in v0.0.35

type WithPayloadInterface struct {

	// If `true` - return all payload, If `false` - do not return payload
	Boolean bool
	// Specify which fields to return
	StringList      []string
	PayloadSelector *PayloadSelector
	// contains filtered or unexported fields
}

Options for specifying which payload to include or not

func NewWithPayloadInterfaceFromBoolean added in v0.0.35

func NewWithPayloadInterfaceFromBoolean(value bool) *WithPayloadInterface

func NewWithPayloadInterfaceFromPayloadSelector added in v0.0.35

func NewWithPayloadInterfaceFromPayloadSelector(value *PayloadSelector) *WithPayloadInterface

func NewWithPayloadInterfaceFromStringList added in v0.0.35

func NewWithPayloadInterfaceFromStringList(value []string) *WithPayloadInterface

func (*WithPayloadInterface) Accept added in v0.0.35

func (WithPayloadInterface) MarshalJSON added in v0.0.35

func (w WithPayloadInterface) MarshalJSON() ([]byte, error)

func (*WithPayloadInterface) UnmarshalJSON added in v0.0.35

func (w *WithPayloadInterface) UnmarshalJSON(data []byte) error

type WithPayloadInterfaceVisitor added in v0.0.35

type WithPayloadInterfaceVisitor interface {
	VisitBoolean(bool) error
	VisitStringList([]string) error
	VisitPayloadSelector(*PayloadSelector) error
}

type WithVector added in v0.0.35

type WithVector struct {

	// If `true` - return all vector, If `false` - do not return vector
	Boolean bool
	// Specify which vector to return
	StringList []string
	// contains filtered or unexported fields
}

Options for specifying which vector to include

func NewWithVectorFromBoolean added in v0.0.35

func NewWithVectorFromBoolean(value bool) *WithVector

func NewWithVectorFromStringList added in v0.0.35

func NewWithVectorFromStringList(value []string) *WithVector

func (*WithVector) Accept added in v0.0.35

func (w *WithVector) Accept(visitor WithVectorVisitor) error

func (WithVector) MarshalJSON added in v0.0.35

func (w WithVector) MarshalJSON() ([]byte, error)

func (*WithVector) UnmarshalJSON added in v0.0.35

func (w *WithVector) UnmarshalJSON(data []byte) error

type WithVectorVisitor added in v0.0.35

type WithVectorVisitor interface {
	VisitBoolean(bool) error
	VisitStringList([]string) error
}

type WriteOrdering added in v0.0.35

type WriteOrdering string

Defines write ordering guarantees for collection operations

- `weak` - write operations may be reordered, works faster, default

- `medium` - write operations go through dynamically selected leader, may be inconsistent for a short period of time in case of leader change

- `strong` - Write operations go through the permanent leader, consistent, but may be unavailable if leader is down

const (
	WriteOrderingWeak   WriteOrdering = "weak"
	WriteOrderingMedium WriteOrdering = "medium"
	WriteOrderingStrong WriteOrdering = "strong"
)

func NewWriteOrderingFromString added in v0.0.35

func NewWriteOrderingFromString(s string) (WriteOrdering, error)

func (WriteOrdering) Ptr added in v0.0.35

func (w WriteOrdering) Ptr() *WriteOrdering

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL