Documentation ¶
Index ¶
- type Connector
- func (c *Connector[T]) CheckIndex(def *conf.DataSourceDefinition) error
- func (c *Connector[T]) CloseConnection()
- func (c *Connector[T]) Delete(id string) error
- func (c *Connector[T]) DeleteByQuery(body *bytes.Buffer) error
- func (c *Connector[T]) InitConnection(def *conf.DataSourceDefinition)
- func (c *Connector[T]) Search(buf *bytes.Buffer) (*SearchResponse[T], error)
- func (c *Connector[T]) SimilarToThis(vectorFieldName string, vector []float32, k int, numCandidates int, ...) (*SearchResponse[T], error)
- type Hits
- type ResponseDoc
- type SearchResponse
- type Shards
- type Total
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connector ¶
Connector ... Connector type
func NewElasticConnector ¶
NewElasticConnector factory
func (*Connector[T]) CheckIndex ¶
func (c *Connector[T]) CheckIndex(def *conf.DataSourceDefinition) error
func (*Connector[T]) CloseConnection ¶
func (c *Connector[T]) CloseConnection()
func (*Connector[T]) InitConnection ¶
func (c *Connector[T]) InitConnection(def *conf.DataSourceDefinition)
InitConnection ... Starts a connection with Elastic Search
type Hits ¶
type Hits[T any] struct { Total Total `json:"total,omitempty"` MaxScore float64 `json:"max_score,omitempty"` Hits []ResponseDoc[T] `json:"hits,omitempty"` }
type ResponseDoc ¶
type SearchResponse ¶
Click to show internal directories.
Click to hide internal directories.