Versions in this module Expand all Collapse all v0 v0.24.1 Apr 27, 2023 Changes in this version + const DefaultLimit + const VERSION + func GetQualifiedVersion() (qualifiedVersion string) + func IsValidUUID(uuid string) bool + type CancelTasksQuery struct + AfterEnqueuedAt time.Time + AfterStartedAt time.Time + BeforeEnqueuedAt time.Time + BeforeStartedAt time.Time + IndexUIDS []string + Statuses []string + Types []string + UIDS []int64 + func (v *CancelTasksQuery) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *CancelTasksQuery) UnmarshalJSON(data []byte) error + func (v CancelTasksQuery) MarshalEasyJSON(w *jwriter.Writer) + func (v CancelTasksQuery) MarshalJSON() ([]byte, error) + type Client struct + func NewClient(config ClientConfig) *Client + func NewFastHTTPCustomClient(config ClientConfig, client *fasthttp.Client) *Client + func (c *Client) CancelTasks(param *CancelTasksQuery) (resp *TaskInfo, err error) + func (c *Client) CreateDump() (resp *TaskInfo, err error) + func (c *Client) CreateIndex(config *IndexConfig) (resp *TaskInfo, err error) + func (c *Client) CreateKey(request *Key) (resp *Key, err error) + func (c *Client) DeleteIndex(uid string) (resp *TaskInfo, err error) + func (c *Client) DeleteKey(keyOrUID string) (resp bool, err error) + func (c *Client) DeleteTasks(param *DeleteTasksQuery) (resp *TaskInfo, err error) + func (c *Client) GenerateTenantToken(APIKeyUID string, SearchRules map[string]interface{}, ...) (resp string, err error) + func (c *Client) GetIndex(uid string) (resp *Index, err error) + func (c *Client) GetIndexes(param *IndexesQuery) (resp *IndexesResults, err error) + func (c *Client) GetKey(identifier string) (resp *Key, err error) + func (c *Client) GetKeys(param *KeysQuery) (resp *KeysResults, err error) + func (c *Client) GetRawIndex(uid string) (resp map[string]interface{}, err error) + func (c *Client) GetRawIndexes(param *IndexesQuery) (resp map[string]interface{}, err error) + func (c *Client) GetStats() (resp *Stats, err error) + func (c *Client) GetTask(taskUID int64) (resp *Task, err error) + func (c *Client) GetTasks(param *TasksQuery) (resp *TaskResult, err error) + func (c *Client) GetVersion() (resp *Version, err error) + func (c *Client) Health() (resp *Health, err error) + func (c *Client) Index(uid string) *Index + func (c *Client) IsHealthy() bool + func (c *Client) MultiSearch(queries *MultiSearchRequest) (*MultiSearchResponse, error) + func (c *Client) SwapIndexes(param []SwapIndexesParams) (resp *TaskInfo, err error) + func (c *Client) UpdateKey(keyOrUID string, request *Key) (resp *Key, err error) + func (c *Client) Version() (resp *Version, err error) + func (c *Client) WaitForTask(taskUID int64, options ...WaitParams) (*Task, error) + func (v *Client) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *Client) UnmarshalJSON(data []byte) error + func (v Client) MarshalEasyJSON(w *jwriter.Writer) + func (v Client) MarshalJSON() ([]byte, error) + type ClientConfig struct + APIKey string + Host string + Timeout time.Duration + type ClientInterface interface + CancelTasks func(param *CancelTasksQuery) (resp *TaskInfo, err error) + CreateDump func() (resp *TaskInfo, err error) + CreateIndex func(config *IndexConfig) (resp *TaskInfo, err error) + CreateKey func(request *Key) (resp *Key, err error) + DeleteIndex func(uid string) (resp *TaskInfo, err error) + DeleteKey func(keyOrUID string) (resp bool, err error) + DeleteTasks func(param *DeleteTasksQuery) (resp *TaskInfo, err error) + GenerateTenantToken func(APIKeyUID string, searchRules map[string]interface{}, ...) (resp string, err error) + GetIndex func(indexID string) (resp *Index, err error) + GetIndexes func(param *IndexesQuery) (resp *IndexesResults, err error) + GetKey func(identifier string) (resp *Key, err error) + GetKeys func(param *KeysQuery) (resp *KeysResults, err error) + GetRawIndex func(uid string) (resp map[string]interface{}, err error) + GetRawIndexes func(param *IndexesQuery) (resp map[string]interface{}, err error) + GetStats func() (resp *Stats, err error) + GetTask func(taskUID int64) (resp *Task, err error) + GetTasks func(param *TasksQuery) (resp *TaskResult, err error) + GetVersion func() (resp *Version, err error) + Health func() (*Health, error) + Index func(uid string) *Index + IsHealthy func() bool + MultiSearch func(queries *MultiSearchRequest) (*MultiSearchResponse, error) + SwapIndexes func(param []SwapIndexesParams) (resp *TaskInfo, err error) + UpdateKey func(keyOrUID string, request *Key) (resp *Key, err error) + Version func() (*Version, error) + WaitForTask func(taskUID int64, options ...WaitParams) (*Task, error) + type CreateIndexRequest struct + PrimaryKey string + UID string + func (v *CreateIndexRequest) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *CreateIndexRequest) UnmarshalJSON(data []byte) error + func (v CreateIndexRequest) MarshalEasyJSON(w *jwriter.Writer) + func (v CreateIndexRequest) MarshalJSON() ([]byte, error) + type CsvDocumentsQuery struct + CsvDelimiter string + PrimaryKey string + func (v *CsvDocumentsQuery) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *CsvDocumentsQuery) UnmarshalJSON(data []byte) error + func (v CsvDocumentsQuery) MarshalEasyJSON(w *jwriter.Writer) + func (v CsvDocumentsQuery) MarshalJSON() ([]byte, error) + type DeleteTasksQuery struct + AfterEnqueuedAt time.Time + AfterFinishedAt time.Time + AfterStartedAt time.Time + BeforeEnqueuedAt time.Time + BeforeFinishedAt time.Time + BeforeStartedAt time.Time + CanceledBy []int64 + IndexUIDS []string + Statuses []string + Types []string + UIDS []int64 + func (v *DeleteTasksQuery) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *DeleteTasksQuery) UnmarshalJSON(data []byte) error + func (v DeleteTasksQuery) MarshalEasyJSON(w *jwriter.Writer) + func (v DeleteTasksQuery) MarshalJSON() ([]byte, error) + type Details struct + CanceledTasks int64 + DeletedDocuments int64 + DeletedTasks int64 + DisplayedAttributes []string + DistinctAttribute *string + Faceting *Faceting + FilterableAttributes []string + IndexedDocuments int64 + MatchedTasks int64 + OriginalFilter string + Pagination *Pagination + PrimaryKey string + ProvidedIds int64 + RankingRules []string + ReceivedDocuments int64 + SearchableAttributes []string + SortableAttributes []string + StopWords []string + Swaps []SwapIndexesParams + Synonyms map[string][]string + TypoTolerance *TypoTolerance + func (v *Details) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *Details) UnmarshalJSON(data []byte) error + func (v Details) MarshalEasyJSON(w *jwriter.Writer) + func (v Details) MarshalJSON() ([]byte, error) + type DocumentQuery struct + Fields []string + func (v *DocumentQuery) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *DocumentQuery) UnmarshalJSON(data []byte) error + func (v DocumentQuery) MarshalEasyJSON(w *jwriter.Writer) + func (v DocumentQuery) MarshalJSON() ([]byte, error) + type DocumentsQuery struct + Fields []string + Limit int64 + Offset int64 + func (v *DocumentsQuery) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *DocumentsQuery) UnmarshalJSON(data []byte) error + func (v DocumentsQuery) MarshalEasyJSON(w *jwriter.Writer) + func (v DocumentsQuery) MarshalJSON() ([]byte, error) + type DocumentsResult struct + Limit int64 + Offset int64 + Results []map[string]interface{} + Total int64 + func (v *DocumentsResult) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *DocumentsResult) UnmarshalJSON(data []byte) error + func (v DocumentsResult) MarshalEasyJSON(w *jwriter.Writer) + func (v DocumentsResult) MarshalJSON() ([]byte, error) + type ErrCode int + const ErrCodeMarshalRequest + const ErrCodeResponseUnmarshalBody + const ErrCodeUnknown + const MeilisearchApiError + const MeilisearchApiErrorWithoutMessage + const MeilisearchCommunicationError + const MeilisearchTimeoutError + type Error struct + Endpoint string + ErrCode ErrCode + Function string + MeilisearchApiError meilisearchApiError + Method string + OriginError error + RequestToString string + ResponseToString string + StatusCode int + StatusCodeExpected []int + func (e *Error) ErrorBody(body []byte) + func (e *Error) WithErrCode(err ErrCode, errs ...error) *Error + func (e Error) Error() string + type Faceting struct + MaxValuesPerFacet int64 + func (v *Faceting) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *Faceting) UnmarshalJSON(data []byte) error + func (v Faceting) MarshalEasyJSON(w *jwriter.Writer) + func (v Faceting) MarshalJSON() ([]byte, error) + type Health struct + Status string + func (v *Health) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *Health) UnmarshalJSON(data []byte) error + func (v Health) MarshalEasyJSON(w *jwriter.Writer) + func (v Health) MarshalJSON() ([]byte, error) + type Index struct + CreatedAt time.Time + PrimaryKey string + UID string + UpdatedAt time.Time + func (i Index) AddDocuments(documentsPtr interface{}, primaryKey ...string) (resp *TaskInfo, err error) + func (i Index) AddDocumentsCsv(documents []byte, options *CsvDocumentsQuery) (resp *TaskInfo, err error) + func (i Index) AddDocumentsCsvFromReader(documents io.Reader, options *CsvDocumentsQuery) (resp *TaskInfo, err error) + func (i Index) AddDocumentsCsvFromReaderInBatches(documents io.Reader, batchSize int, options *CsvDocumentsQuery) (resp []TaskInfo, err error) + func (i Index) AddDocumentsCsvInBatches(documents []byte, batchSize int, options *CsvDocumentsQuery) (resp []TaskInfo, err error) + func (i Index) AddDocumentsInBatches(documentsPtr interface{}, batchSize int, primaryKey ...string) (resp []TaskInfo, err error) + func (i Index) AddDocumentsNdjson(documents []byte, primaryKey ...string) (resp *TaskInfo, err error) + func (i Index) AddDocumentsNdjsonFromReader(documents io.Reader, primaryKey ...string) (resp *TaskInfo, err error) + func (i Index) AddDocumentsNdjsonFromReaderInBatches(documents io.Reader, batchSize int, primaryKey ...string) (resp []TaskInfo, err error) + func (i Index) AddDocumentsNdjsonInBatches(documents []byte, batchSize int, primaryKey ...string) (resp []TaskInfo, err error) + func (i Index) Delete(uid string) (ok bool, err error) + func (i Index) DeleteAllDocuments() (resp *TaskInfo, err error) + func (i Index) DeleteDocument(identifier string) (resp *TaskInfo, err error) + func (i Index) DeleteDocuments(identifier []string) (resp *TaskInfo, err error) + func (i Index) FetchInfo() (resp *Index, err error) + func (i Index) FetchPrimaryKey() (resp *string, err error) + func (i Index) GetDisplayedAttributes() (resp *[]string, err error) + func (i Index) GetDistinctAttribute() (resp *string, err error) + func (i Index) GetDocument(identifier string, request *DocumentQuery, documentPtr interface{}) error + func (i Index) GetDocuments(request *DocumentsQuery, resp *DocumentsResult) error + func (i Index) GetFaceting() (resp *Faceting, err error) + func (i Index) GetFilterableAttributes() (resp *[]string, err error) + func (i Index) GetPagination() (resp *Pagination, err error) + func (i Index) GetRankingRules() (resp *[]string, err error) + func (i Index) GetSearchableAttributes() (resp *[]string, err error) + func (i Index) GetSettings() (resp *Settings, err error) + func (i Index) GetSortableAttributes() (resp *[]string, err error) + func (i Index) GetStats() (resp *StatsIndex, err error) + func (i Index) GetStopWords() (resp *[]string, err error) + func (i Index) GetSynonyms() (resp *map[string][]string, err error) + func (i Index) GetTask(taskUID int64) (resp *Task, err error) + func (i Index) GetTasks(param *TasksQuery) (resp *TaskResult, err error) + func (i Index) GetTypoTolerance() (resp *TypoTolerance, err error) + func (i Index) ResetDisplayedAttributes() (resp *TaskInfo, err error) + func (i Index) ResetDistinctAttribute() (resp *TaskInfo, err error) + func (i Index) ResetFaceting() (resp *TaskInfo, err error) + func (i Index) ResetFilterableAttributes() (resp *TaskInfo, err error) + func (i Index) ResetPagination() (resp *TaskInfo, err error) + func (i Index) ResetRankingRules() (resp *TaskInfo, err error) + func (i Index) ResetSearchableAttributes() (resp *TaskInfo, err error) + func (i Index) ResetSettings() (resp *TaskInfo, err error) + func (i Index) ResetSortableAttributes() (resp *TaskInfo, err error) + func (i Index) ResetStopWords() (resp *TaskInfo, err error) + func (i Index) ResetSynonyms() (resp *TaskInfo, err error) + func (i Index) ResetTypoTolerance() (resp *TaskInfo, err error) + func (i Index) Search(query string, request *SearchRequest) (*SearchResponse, error) + func (i Index) SearchRaw(query string, request *SearchRequest) (*json.RawMessage, error) + func (i Index) UpdateDisplayedAttributes(request *[]string) (resp *TaskInfo, err error) + func (i Index) UpdateDistinctAttribute(request string) (resp *TaskInfo, err error) + func (i Index) UpdateDocuments(documentsPtr interface{}, primaryKey ...string) (resp *TaskInfo, err error) + func (i Index) UpdateDocumentsCsv(documents []byte, options *CsvDocumentsQuery) (resp *TaskInfo, err error) + func (i Index) UpdateDocumentsCsvFromReader(documents io.Reader, options *CsvDocumentsQuery) (resp *TaskInfo, err error) + func (i Index) UpdateDocumentsCsvFromReaderInBatches(documents io.Reader, batchSize int, options *CsvDocumentsQuery) (resp []TaskInfo, err error) + func (i Index) UpdateDocumentsCsvInBatches(documents []byte, batchSize int, options *CsvDocumentsQuery) (resp []TaskInfo, err error) + func (i Index) UpdateDocumentsInBatches(documentsPtr interface{}, batchSize int, primaryKey ...string) (resp []TaskInfo, err error) + func (i Index) UpdateDocumentsNdjson(documents []byte, primaryKey ...string) (resp *TaskInfo, err error) + func (i Index) UpdateDocumentsNdjsonFromReader(documents io.Reader, primaryKey ...string) (resp *TaskInfo, err error) + func (i Index) UpdateDocumentsNdjsonInBatches(documents []byte, batchsize int, primaryKey ...string) (resp []TaskInfo, err error) + func (i Index) UpdateFaceting(request *Faceting) (resp *TaskInfo, err error) + func (i Index) UpdateFilterableAttributes(request *[]string) (resp *TaskInfo, err error) + func (i Index) UpdateIndex(primaryKey string) (resp *TaskInfo, err error) + func (i Index) UpdatePagination(request *Pagination) (resp *TaskInfo, err error) + func (i Index) UpdateRankingRules(request *[]string) (resp *TaskInfo, err error) + func (i Index) UpdateSearchableAttributes(request *[]string) (resp *TaskInfo, err error) + func (i Index) UpdateSettings(request *Settings) (resp *TaskInfo, err error) + func (i Index) UpdateSortableAttributes(request *[]string) (resp *TaskInfo, err error) + func (i Index) UpdateStopWords(request *[]string) (resp *TaskInfo, err error) + func (i Index) UpdateSynonyms(request *map[string][]string) (resp *TaskInfo, err error) + func (i Index) UpdateTypoTolerance(request *TypoTolerance) (resp *TaskInfo, err error) + func (i Index) WaitForTask(taskUID int64, options ...WaitParams) (*Task, error) + func (v *Index) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *Index) UnmarshalJSON(data []byte) error + func (v Index) MarshalEasyJSON(w *jwriter.Writer) + func (v Index) MarshalJSON() ([]byte, error) + type IndexConfig struct + PrimaryKey string + Uid string + type IndexInterface interface + AddDocuments func(documentsPtr interface{}, primaryKey ...string) (resp *TaskInfo, err error) + AddDocumentsCsv func(documents []byte, options *CsvDocumentsQuery) (resp *TaskInfo, err error) + AddDocumentsCsvInBatches func(documents []byte, batchSize int, options *CsvDocumentsQuery) (resp []TaskInfo, err error) + AddDocumentsInBatches func(documentsPtr interface{}, batchSize int, primaryKey ...string) (resp []TaskInfo, err error) + AddDocumentsNdjson func(documents []byte, primaryKey ...string) (resp *TaskInfo, err error) + AddDocumentsNdjsonInBatches func(documents []byte, batchSize int, primaryKey ...string) (resp []TaskInfo, err error) + Delete func(uid string) (ok bool, err error) + DeleteAllDocuments func() (resp *TaskInfo, err error) + DeleteDocument func(uid string) (resp *TaskInfo, err error) + DeleteDocuments func(uid []string) (resp *TaskInfo, err error) + FetchInfo func() (resp *Index, err error) + FetchPrimaryKey func() (resp *string, err error) + GetDisplayedAttributes func() (resp *[]string, err error) + GetDistinctAttribute func() (resp *string, err error) + GetDocument func(uid string, request *DocumentQuery, documentPtr interface{}) error + GetDocuments func(param *DocumentsQuery, resp *DocumentsResult) error + GetFilterableAttributes func() (resp *[]string, err error) + GetRankingRules func() (resp *[]string, err error) + GetSearchableAttributes func() (resp *[]string, err error) + GetSettings func() (resp *Settings, err error) + GetStats func() (resp *StatsIndex, err error) + GetStopWords func() (resp *[]string, err error) + GetSynonyms func() (resp *map[string][]string, err error) + GetTask func(taskUID int64) (resp *Task, err error) + GetTasks func(param *TasksQuery) (resp *TaskResult, err error) + ResetDisplayedAttributes func() (resp *TaskInfo, err error) + ResetDistinctAttribute func() (resp *TaskInfo, err error) + ResetFilterableAttributes func() (resp *TaskInfo, err error) + ResetRankingRules func() (resp *TaskInfo, err error) + ResetSearchableAttributes func() (resp *TaskInfo, err error) + ResetSettings func() (resp *TaskInfo, err error) + ResetStopWords func() (resp *TaskInfo, err error) + ResetSynonyms func() (resp *TaskInfo, err error) + Search func(query string, request *SearchRequest) (*SearchResponse, error) + SearchRaw func(query string, request *SearchRequest) (*json.RawMessage, error) + UpdateDisplayedAttributes func(request *[]string) (resp *TaskInfo, err error) + UpdateDistinctAttribute func(request string) (resp *TaskInfo, err error) + UpdateDocuments func(documentsPtr interface{}, primaryKey ...string) (resp *TaskInfo, err error) + UpdateDocumentsCsv func(documents []byte, options *CsvDocumentsQuery) (resp *TaskInfo, err error) + UpdateDocumentsCsvInBatches func(documents []byte, batchsize int, options *CsvDocumentsQuery) (resp []TaskInfo, err error) + UpdateDocumentsInBatches func(documentsPtr interface{}, batchSize int, primaryKey ...string) (resp []TaskInfo, err error) + UpdateDocumentsNdjson func(documents []byte, primaryKey ...string) (resp *TaskInfo, err error) + UpdateDocumentsNdjsonInBatches func(documents []byte, batchsize int, primaryKey ...string) (resp []TaskInfo, err error) + UpdateFilterableAttributes func(request *[]string) (resp *TaskInfo, err error) + UpdateIndex func(primaryKey string) (resp *TaskInfo, err error) + UpdateRankingRules func(request *[]string) (resp *TaskInfo, err error) + UpdateSearchableAttributes func(request *[]string) (resp *TaskInfo, err error) + UpdateSettings func(request *Settings) (resp *TaskInfo, err error) + UpdateStopWords func(request *[]string) (resp *TaskInfo, err error) + UpdateSynonyms func(request *map[string][]string) (resp *TaskInfo, err error) + WaitForTask func(taskUID int64, options ...WaitParams) (*Task, error) + type IndexesQuery struct + Limit int64 + Offset int64 + func (v *IndexesQuery) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *IndexesQuery) UnmarshalJSON(data []byte) error + func (v IndexesQuery) MarshalEasyJSON(w *jwriter.Writer) + func (v IndexesQuery) MarshalJSON() ([]byte, error) + type IndexesResults struct + Limit int64 + Offset int64 + Results []Index + Total int64 + func (v *IndexesResults) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *IndexesResults) UnmarshalJSON(data []byte) error + func (v IndexesResults) MarshalEasyJSON(w *jwriter.Writer) + func (v IndexesResults) MarshalJSON() ([]byte, error) + type Key struct + Actions []string + CreatedAt time.Time + Description string + ExpiresAt time.Time + Indexes []string + Key string + Name string + UID string + UpdatedAt time.Time + func (v *Key) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *Key) UnmarshalJSON(data []byte) error + func (v Key) MarshalEasyJSON(w *jwriter.Writer) + func (v Key) MarshalJSON() ([]byte, error) + type KeyParsed struct + Actions []string + Description string + ExpiresAt *string + Indexes []string + Name string + UID string + func (v *KeyParsed) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *KeyParsed) UnmarshalJSON(data []byte) error + func (v KeyParsed) MarshalEasyJSON(w *jwriter.Writer) + func (v KeyParsed) MarshalJSON() ([]byte, error) + type KeyUpdate struct + Description string + Name string + func (v *KeyUpdate) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *KeyUpdate) UnmarshalJSON(data []byte) error + func (v KeyUpdate) MarshalEasyJSON(w *jwriter.Writer) + func (v KeyUpdate) MarshalJSON() ([]byte, error) + type KeysQuery struct + Limit int64 + Offset int64 + func (v *KeysQuery) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *KeysQuery) UnmarshalJSON(data []byte) error + func (v KeysQuery) MarshalEasyJSON(w *jwriter.Writer) + func (v KeysQuery) MarshalJSON() ([]byte, error) + type KeysResults struct + Limit int64 + Offset int64 + Results []Key + Total int64 + func (v *KeysResults) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *KeysResults) UnmarshalJSON(data []byte) error + func (v KeysResults) MarshalEasyJSON(w *jwriter.Writer) + func (v KeysResults) MarshalJSON() ([]byte, error) + type MinWordSizeForTypos struct + OneTypo int64 + TwoTypos int64 + func (v *MinWordSizeForTypos) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *MinWordSizeForTypos) UnmarshalJSON(data []byte) error + func (v MinWordSizeForTypos) MarshalEasyJSON(w *jwriter.Writer) + func (v MinWordSizeForTypos) MarshalJSON() ([]byte, error) + type MultiSearchRequest struct + Queries []SearchRequest + func (v *MultiSearchRequest) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *MultiSearchRequest) UnmarshalJSON(data []byte) error + func (v MultiSearchRequest) MarshalEasyJSON(w *jwriter.Writer) + func (v MultiSearchRequest) MarshalJSON() ([]byte, error) + type MultiSearchResponse struct + Results []SearchResponse + func (v *MultiSearchResponse) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *MultiSearchResponse) UnmarshalJSON(data []byte) error + func (v MultiSearchResponse) MarshalEasyJSON(w *jwriter.Writer) + func (v MultiSearchResponse) MarshalJSON() ([]byte, error) + type Pagination struct + MaxTotalHits int64 + func (v *Pagination) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *Pagination) UnmarshalJSON(data []byte) error + func (v Pagination) MarshalEasyJSON(w *jwriter.Writer) + func (v Pagination) MarshalJSON() ([]byte, error) + type RawType []byte + func (b *RawType) UnmarshalJSON(data []byte) error + func (b RawType) MarshalJSON() ([]byte, error) + type SearchRequest struct + AttributesToCrop []string + AttributesToHighlight []string + AttributesToRetrieve []string + CropLength int64 + CropMarker string + Facets []string + Filter interface{} + HighlightPostTag string + HighlightPreTag string + HitsPerPage int64 + IndexUID string + Limit int64 + MatchingStrategy string + Offset int64 + Page int64 + PlaceholderSearch bool + Query string + ShowMatchesPosition bool + Sort []string + func (v *SearchRequest) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *SearchRequest) UnmarshalJSON(data []byte) error + func (v SearchRequest) MarshalEasyJSON(w *jwriter.Writer) + func (v SearchRequest) MarshalJSON() ([]byte, error) + type SearchResponse struct + EstimatedTotalHits int64 + FacetDistribution interface{} + FacetStats interface{} + Hits []interface{} + HitsPerPage int64 + IndexUID string + Limit int64 + Offset int64 + Page int64 + ProcessingTimeMs int64 + Query string + TotalHits int64 + TotalPages int64 + func (v *SearchResponse) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *SearchResponse) UnmarshalJSON(data []byte) error + func (v SearchResponse) MarshalEasyJSON(w *jwriter.Writer) + func (v SearchResponse) MarshalJSON() ([]byte, error) + type Settings struct + DisplayedAttributes []string + DistinctAttribute *string + Faceting *Faceting + FilterableAttributes []string + Pagination *Pagination + RankingRules []string + SearchableAttributes []string + SortableAttributes []string + StopWords []string + Synonyms map[string][]string + TypoTolerance *TypoTolerance + func (v *Settings) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *Settings) UnmarshalJSON(data []byte) error + func (v Settings) MarshalEasyJSON(w *jwriter.Writer) + func (v Settings) MarshalJSON() ([]byte, error) + type Stats struct + DatabaseSize int64 + Indexes map[string]StatsIndex + LastUpdate time.Time + func (v *Stats) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *Stats) UnmarshalJSON(data []byte) error + func (v Stats) MarshalEasyJSON(w *jwriter.Writer) + func (v Stats) MarshalJSON() ([]byte, error) + type StatsIndex struct + FieldDistribution map[string]int64 + IsIndexing bool + NumberOfDocuments int64 + func (v *StatsIndex) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *StatsIndex) UnmarshalJSON(data []byte) error + func (v StatsIndex) MarshalEasyJSON(w *jwriter.Writer) + func (v StatsIndex) MarshalJSON() ([]byte, error) + type SwapIndexesParams struct + Indexes []string + func (v *SwapIndexesParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *SwapIndexesParams) UnmarshalJSON(data []byte) error + func (v SwapIndexesParams) MarshalEasyJSON(w *jwriter.Writer) + func (v SwapIndexesParams) MarshalJSON() ([]byte, error) + type Task struct + CanceledBy int64 + Details Details + Duration string + EnqueuedAt time.Time + Error meilisearchApiError + FinishedAt time.Time + IndexUID string + StartedAt time.Time + Status TaskStatus + TaskUID int64 + Type string + UID int64 + func (v *Task) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *Task) UnmarshalJSON(data []byte) error + func (v Task) MarshalEasyJSON(w *jwriter.Writer) + func (v Task) MarshalJSON() ([]byte, error) + type TaskInfo struct + EnqueuedAt time.Time + IndexUID string + Status TaskStatus + TaskUID int64 + Type string + func (v *TaskInfo) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *TaskInfo) UnmarshalJSON(data []byte) error + func (v TaskInfo) MarshalEasyJSON(w *jwriter.Writer) + func (v TaskInfo) MarshalJSON() ([]byte, error) + type TaskResult struct + From int64 + Limit int64 + Next int64 + Results []Task + func (v *TaskResult) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *TaskResult) UnmarshalJSON(data []byte) error + func (v TaskResult) MarshalEasyJSON(w *jwriter.Writer) + func (v TaskResult) MarshalJSON() ([]byte, error) + type TaskStatus string + const TaskStatusEnqueued + const TaskStatusFailed + const TaskStatusProcessing + const TaskStatusSucceeded + const TaskStatusUnknown + type TasksQuery struct + AfterEnqueuedAt time.Time + AfterFinishedAt time.Time + AfterStartedAt time.Time + BeforeEnqueuedAt time.Time + BeforeFinishedAt time.Time + BeforeStartedAt time.Time + CanceledBy []int64 + From int64 + IndexUIDS []string + Limit int64 + Statuses []string + Types []string + UIDS []int64 + func (v *TasksQuery) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *TasksQuery) UnmarshalJSON(data []byte) error + func (v TasksQuery) MarshalEasyJSON(w *jwriter.Writer) + func (v TasksQuery) MarshalJSON() ([]byte, error) + type TenantTokenClaims struct + APIKeyUID string + SearchRules interface{} + func (v *TenantTokenClaims) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *TenantTokenClaims) UnmarshalJSON(data []byte) error + func (v TenantTokenClaims) MarshalEasyJSON(w *jwriter.Writer) + func (v TenantTokenClaims) MarshalJSON() ([]byte, error) + type TenantTokenOptions struct + APIKey string + ExpiresAt time.Time + func (v *TenantTokenOptions) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *TenantTokenOptions) UnmarshalJSON(data []byte) error + func (v TenantTokenOptions) MarshalEasyJSON(w *jwriter.Writer) + func (v TenantTokenOptions) MarshalJSON() ([]byte, error) + type TypoTolerance struct + DisableOnAttributes []string + DisableOnWords []string + Enabled bool + MinWordSizeForTypos MinWordSizeForTypos + func (v *TypoTolerance) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *TypoTolerance) UnmarshalJSON(data []byte) error + func (v TypoTolerance) MarshalEasyJSON(w *jwriter.Writer) + func (v TypoTolerance) MarshalJSON() ([]byte, error) + type Unknown map[string]interface + type UpdateIndexRequest struct + PrimaryKey string + func (v *UpdateIndexRequest) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *UpdateIndexRequest) UnmarshalJSON(data []byte) error + func (v UpdateIndexRequest) MarshalEasyJSON(w *jwriter.Writer) + func (v UpdateIndexRequest) MarshalJSON() ([]byte, error) + type Version struct + CommitDate string + CommitSha string + PkgVersion string + func (v *Version) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *Version) UnmarshalJSON(data []byte) error + func (v Version) MarshalEasyJSON(w *jwriter.Writer) + func (v Version) MarshalJSON() ([]byte, error) + type WaitParams struct + Context context.Context + Interval time.Duration