Documentation ¶
Index ¶
- func GetContactCollection() string
- func New(host string, apiKey string) *typesense.Client
- type ContactSearch
- func (c *ContactSearch) CreateCollection() (err error)
- func (c *ContactSearch) Search(userId domain.UserID, searchParams domain.SearchParams) (documents []domain.UnifiedSearch, err error)
- func (c *ContactSearch) Upsert(userId domain.UserID, unified domain.UnifiedSearch) (unifiedIds []domain.UnifiedId, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetContactCollection ¶
func GetContactCollection() string
Types ¶
type ContactSearch ¶
type ContactSearch struct {
// contains filtered or unexported fields
}
func NewContactSearch ¶
func NewContactSearch(client *typesense.Client) *ContactSearch
func (*ContactSearch) CreateCollection ¶
func (c *ContactSearch) CreateCollection() (err error)
func (*ContactSearch) Search ¶
func (c *ContactSearch) Search(userId domain.UserID, searchParams domain.SearchParams) (documents []domain.UnifiedSearch, err error)
func (*ContactSearch) Upsert ¶
func (c *ContactSearch) Upsert(userId domain.UserID, unified domain.UnifiedSearch) (unifiedIds []domain.UnifiedId, err error)
Click to show internal directories.
Click to hide internal directories.