typesense/pkg/vo.go
2025-02-07 13:26:09 +01:00

28 lines
455 B
Go

package typesense
import "context"
type RevisionID string
type Query string
type IndexID string
type DocumentID string
type DocumentType string
type Scores map[DocumentID]Score
type Score struct {
ID DocumentID
Index int
}
type DocumentProviderFunc[indexDocument any] func(
ctx context.Context,
indexID IndexID,
documentID DocumentID,
) (indexDocument, error)
type DocumentInfo struct {
DocumentType DocumentType
DocumentID DocumentID
}