Documentation
¶
Index ¶
- type Client
- func (c *Client) AddDocuments(collection string, propertiesToIndex []string, documents ...*Document) error
- func (c *Client) CreateCollection(col *Collection) error
- func (c *Client) DeleteCollection(collection string) error
- func (c *Client) GetCollections() ([]*Collection, error)
- func (c *Client) GetDocument(collection, property, value string) ([]byte, error)
- func (c *Client) GetNearDocuments(collection, text string, distance float32, limit int) ([][]byte, []float32, error)
- func (c *Client) GetNearDocumentsByVector(collection string, vector []float32, distance float32, limit int) ([][]byte, []float32, error)
- func (c *Client) Login(username, password string) error
- func (c *Client) OpenPod(pod string) error
- type Collection
- type Config
- type Document
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AddDocuments ¶
func (*Client) CreateCollection ¶
func (c *Client) CreateCollection(col *Collection) error
func (*Client) DeleteCollection ¶
func (*Client) GetCollections ¶
func (c *Client) GetCollections() ([]*Collection, error)
func (*Client) GetDocument ¶
func (*Client) GetNearDocuments ¶
func (*Client) GetNearDocumentsByVector ¶ added in v0.1.5
type Collection ¶
type Collection struct {
Name string
Indexes map[string]collection.IndexType
}
Click to show internal directories.
Click to hide internal directories.