mirror of
https://github.com/foomo/typesense.git
synced 2025-10-16 12:45:37 +00:00
29 lines
490 B
Go
29 lines
490 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,
|
|
urlsByIDs map[DocumentID]string,
|
|
) (*indexDocument, error)
|
|
|
|
type DocumentInfo struct {
|
|
DocumentType DocumentType
|
|
DocumentID DocumentID
|
|
}
|