typesense/pkg/vo.go
2025-02-19 16:51:47 +01:00

28 lines
456 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
}