diff --git a/index_settings.go b/index_settings.go index 202caae0..24f0667b 100644 --- a/index_settings.go +++ b/index_settings.go @@ -494,3 +494,52 @@ func (i Index) ResetTypoTolerance() (resp *TaskInfo, err error) { } return resp, nil } + +func (i Index) GetPagination() (resp *Pagination, err error) { + resp = &Pagination{} + req := internalRequest{ + endpoint: "/indexes/" + i.UID + "/settings/pagination", + method: http.MethodGet, + withRequest: nil, + withResponse: resp, + acceptedStatusCodes: []int{http.StatusOK}, + functionName: "GetPagination", + } + if err := i.client.executeRequest(req); err != nil { + return nil, err + } + return resp, nil +} + +func (i Index) UpdatePagination(request *Pagination) (resp *TaskInfo, err error) { + resp = &TaskInfo{} + req := internalRequest{ + endpoint: "/indexes/" + i.UID + "/settings/pagination", + method: http.MethodPatch, + contentType: contentTypeJSON, + withRequest: &request, + withResponse: resp, + acceptedStatusCodes: []int{http.StatusAccepted}, + functionName: "UpdatePagination", + } + if err := i.client.executeRequest(req); err != nil { + return nil, err + } + return resp, nil +} + +func (i Index) ResetPagination() (resp *TaskInfo, err error) { + resp = &TaskInfo{} + req := internalRequest{ + endpoint: "/indexes/" + i.UID + "/settings/pagination", + method: http.MethodDelete, + withRequest: nil, + withResponse: resp, + acceptedStatusCodes: []int{http.StatusAccepted}, + functionName: "ResetPagination", + } + if err := i.client.executeRequest(req); err != nil { + return nil, err + } + return resp, nil +} diff --git a/index_settings_test.go b/index_settings_test.go index a242eb27..d36f4c1c 100644 --- a/index_settings_test.go +++ b/index_settings_test.go @@ -231,6 +231,7 @@ func TestIndex_GetSettings(t *testing.T) { FilterableAttributes: []string{}, SortableAttributes: []string{}, TypoTolerance: &defaultTypoTolerance, + Pagination: &defaultPagination, }, }, { @@ -249,6 +250,7 @@ func TestIndex_GetSettings(t *testing.T) { FilterableAttributes: []string{}, SortableAttributes: []string{}, TypoTolerance: &defaultTypoTolerance, + Pagination: &defaultPagination, }, }, } @@ -421,6 +423,47 @@ func TestIndex_GetTypoTolerance(t *testing.T) { } } +func TestIndex_GetPagination(t *testing.T) { + type args struct { + UID string + client *Client + } + tests := []struct { + name string + args args + wantResp *Pagination + }{ + { + name: "TestIndexBasicGetPagination", + args: args{ + UID: "indexUID", + client: defaultClient, + }, + wantResp: &defaultPagination, + }, + { + name: "TestIndexGetPaginationWithCustomClient", + args: args{ + UID: "indexUID", + client: customClient, + }, + wantResp: &defaultPagination, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + SetUpIndexForFaceting() + c := tt.args.client + i := c.Index(tt.args.UID) + t.Cleanup(cleanup(c)) + + gotResp, err := i.GetPagination() + require.NoError(t, err) + require.Equal(t, tt.wantResp, gotResp) + }) + } +} + func TestIndex_ResetFilterableAttributes(t *testing.T) { type args struct { UID string @@ -710,6 +753,7 @@ func TestIndex_ResetSettings(t *testing.T) { FilterableAttributes: []string{}, SortableAttributes: []string{}, TypoTolerance: &defaultTypoTolerance, + Pagination: &defaultPagination, }, }, { @@ -731,6 +775,7 @@ func TestIndex_ResetSettings(t *testing.T) { FilterableAttributes: []string{}, SortableAttributes: []string{}, TypoTolerance: &defaultTypoTolerance, + Pagination: &defaultPagination, }, }, } @@ -956,6 +1001,59 @@ func TestIndex_ResetTypoTolerance(t *testing.T) { } } +func TestIndex_ResetPagination(t *testing.T) { + type args struct { + UID string + client *Client + } + tests := []struct { + name string + args args + wantTask *TaskInfo + wantResp *Pagination + }{ + { + name: "TestIndexBasicResetPagination", + args: args{ + UID: "indexUID", + client: defaultClient, + }, + wantTask: &TaskInfo{ + TaskUID: 1, + }, + wantResp: &defaultPagination, + }, + { + name: "TestIndexResetPaginationWithCustomClient", + args: args{ + UID: "indexUID", + client: customClient, + }, + wantTask: &TaskInfo{ + TaskUID: 1, + }, + wantResp: &defaultPagination, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + SetUpIndexForFaceting() + c := tt.args.client + i := c.Index(tt.args.UID) + t.Cleanup(cleanup(c)) + + gotTask, err := i.ResetPagination() + require.NoError(t, err) + require.GreaterOrEqual(t, gotTask.TaskUID, tt.wantTask.TaskUID) + testWaitForTask(t, i, gotTask) + + gotResp, err := i.GetPagination() + require.NoError(t, err) + require.Equal(t, tt.wantResp, gotResp) + }) + } +} + func TestIndex_UpdateFilterableAttributes(t *testing.T) { type args struct { UID string @@ -1329,6 +1427,9 @@ func TestIndex_UpdateSettings(t *testing.T) { DisableOnWords: []string{}, DisableOnAttributes: []string{}, }, + Pagination: &Pagination{ + MaxTotalHits: 1200, + }, }, }, wantTask: &TaskInfo{ @@ -1344,6 +1445,7 @@ func TestIndex_UpdateSettings(t *testing.T) { FilterableAttributes: []string{}, SortableAttributes: []string{}, TypoTolerance: &defaultTypoTolerance, + Pagination: &defaultPagination, }, }, { @@ -1383,6 +1485,9 @@ func TestIndex_UpdateSettings(t *testing.T) { DisableOnWords: []string{}, DisableOnAttributes: []string{}, }, + Pagination: &Pagination{ + MaxTotalHits: 1200, + }, }, }, wantTask: &TaskInfo{ @@ -1398,6 +1503,7 @@ func TestIndex_UpdateSettings(t *testing.T) { FilterableAttributes: []string{}, SortableAttributes: []string{}, TypoTolerance: &defaultTypoTolerance, + Pagination: &defaultPagination, }, }, } @@ -1466,6 +1572,7 @@ func TestIndex_UpdateSettingsOneByOne(t *testing.T) { FilterableAttributes: []string{}, SortableAttributes: []string{}, TypoTolerance: &defaultTypoTolerance, + Pagination: &defaultPagination, }, secondRequest: Settings{ Synonyms: map[string][]string{ @@ -1486,6 +1593,7 @@ func TestIndex_UpdateSettingsOneByOne(t *testing.T) { FilterableAttributes: []string{}, SortableAttributes: []string{}, TypoTolerance: &defaultTypoTolerance, + Pagination: &defaultPagination, }, }, wantTask: &TaskInfo{ @@ -1501,6 +1609,7 @@ func TestIndex_UpdateSettingsOneByOne(t *testing.T) { FilterableAttributes: []string{}, SortableAttributes: []string{}, TypoTolerance: &defaultTypoTolerance, + Pagination: &defaultPagination, }, }, { @@ -1530,6 +1639,7 @@ func TestIndex_UpdateSettingsOneByOne(t *testing.T) { FilterableAttributes: []string{}, SortableAttributes: []string{}, TypoTolerance: &defaultTypoTolerance, + Pagination: &defaultPagination, }, secondRequest: Settings{ Synonyms: map[string][]string{ @@ -1550,6 +1660,7 @@ func TestIndex_UpdateSettingsOneByOne(t *testing.T) { FilterableAttributes: []string{}, SortableAttributes: []string{}, TypoTolerance: &defaultTypoTolerance, + Pagination: &defaultPagination, }, }, wantTask: &TaskInfo{ @@ -1565,6 +1676,7 @@ func TestIndex_UpdateSettingsOneByOne(t *testing.T) { FilterableAttributes: []string{}, SortableAttributes: []string{}, TypoTolerance: &defaultTypoTolerance, + Pagination: &defaultPagination, }, }, { @@ -1594,6 +1706,7 @@ func TestIndex_UpdateSettingsOneByOne(t *testing.T) { FilterableAttributes: []string{}, SortableAttributes: []string{}, TypoTolerance: &defaultTypoTolerance, + Pagination: &defaultPagination, }, secondRequest: Settings{ SearchableAttributes: []string{ @@ -1614,6 +1727,7 @@ func TestIndex_UpdateSettingsOneByOne(t *testing.T) { FilterableAttributes: []string{}, SortableAttributes: []string{}, TypoTolerance: &defaultTypoTolerance, + Pagination: &defaultPagination, }, }, wantTask: &TaskInfo{ @@ -1629,6 +1743,7 @@ func TestIndex_UpdateSettingsOneByOne(t *testing.T) { FilterableAttributes: []string{}, SortableAttributes: []string{}, TypoTolerance: &defaultTypoTolerance, + Pagination: &defaultPagination, }, }, { @@ -1658,6 +1773,7 @@ func TestIndex_UpdateSettingsOneByOne(t *testing.T) { FilterableAttributes: []string{}, SortableAttributes: []string{}, TypoTolerance: &defaultTypoTolerance, + Pagination: &defaultPagination, }, secondRequest: Settings{ DisplayedAttributes: []string{ @@ -1678,6 +1794,7 @@ func TestIndex_UpdateSettingsOneByOne(t *testing.T) { FilterableAttributes: []string{}, SortableAttributes: []string{}, TypoTolerance: &defaultTypoTolerance, + Pagination: &defaultPagination, }, }, wantTask: &TaskInfo{ @@ -1693,6 +1810,7 @@ func TestIndex_UpdateSettingsOneByOne(t *testing.T) { FilterableAttributes: []string{}, SortableAttributes: []string{}, TypoTolerance: &defaultTypoTolerance, + Pagination: &defaultPagination, }, }, { @@ -1722,6 +1840,7 @@ func TestIndex_UpdateSettingsOneByOne(t *testing.T) { FilterableAttributes: []string{}, SortableAttributes: []string{}, TypoTolerance: &defaultTypoTolerance, + Pagination: &defaultPagination, }, secondRequest: Settings{ StopWords: []string{ @@ -1742,6 +1861,7 @@ func TestIndex_UpdateSettingsOneByOne(t *testing.T) { FilterableAttributes: []string{}, SortableAttributes: []string{}, TypoTolerance: &defaultTypoTolerance, + Pagination: &defaultPagination, }, }, wantTask: &TaskInfo{ @@ -1757,6 +1877,7 @@ func TestIndex_UpdateSettingsOneByOne(t *testing.T) { FilterableAttributes: []string{}, SortableAttributes: []string{}, TypoTolerance: &defaultTypoTolerance, + Pagination: &defaultPagination, }, }, { @@ -1786,6 +1907,7 @@ func TestIndex_UpdateSettingsOneByOne(t *testing.T) { }, SortableAttributes: []string{}, TypoTolerance: &defaultTypoTolerance, + Pagination: &defaultPagination, }, secondRequest: Settings{ FilterableAttributes: []string{ @@ -1806,6 +1928,7 @@ func TestIndex_UpdateSettingsOneByOne(t *testing.T) { }, SortableAttributes: []string{}, TypoTolerance: &defaultTypoTolerance, + Pagination: &defaultPagination, }, }, wantTask: &TaskInfo{ @@ -1821,6 +1944,7 @@ func TestIndex_UpdateSettingsOneByOne(t *testing.T) { FilterableAttributes: []string{}, SortableAttributes: []string{}, TypoTolerance: &defaultTypoTolerance, + Pagination: &defaultPagination, }, }, { @@ -1850,6 +1974,7 @@ func TestIndex_UpdateSettingsOneByOne(t *testing.T) { "title", }, TypoTolerance: &defaultTypoTolerance, + Pagination: &defaultPagination, }, secondRequest: Settings{ SortableAttributes: []string{ @@ -1870,6 +1995,7 @@ func TestIndex_UpdateSettingsOneByOne(t *testing.T) { "title", }, TypoTolerance: &defaultTypoTolerance, + Pagination: &defaultPagination, }, }, wantTask: &TaskInfo{ @@ -1885,6 +2011,7 @@ func TestIndex_UpdateSettingsOneByOne(t *testing.T) { FilterableAttributes: []string{}, SortableAttributes: []string{}, TypoTolerance: &defaultTypoTolerance, + Pagination: &defaultPagination, }, }, { @@ -1926,6 +2053,7 @@ func TestIndex_UpdateSettingsOneByOne(t *testing.T) { }, FilterableAttributes: []string{}, SortableAttributes: []string{}, + Pagination: &defaultPagination, }, secondRequest: Settings{ TypoTolerance: &TypoTolerance{ @@ -1966,6 +2094,74 @@ func TestIndex_UpdateSettingsOneByOne(t *testing.T) { "year", }, }, + Pagination: &defaultPagination, + }, + }, + wantTask: &TaskInfo{ + TaskUID: 1, + }, + wantResp: &Settings{ + RankingRules: defaultRankingRules, + DistinctAttribute: (*string)(nil), + SearchableAttributes: []string{"*"}, + DisplayedAttributes: []string{"*"}, + StopWords: []string{}, + Synonyms: map[string][]string(nil), + FilterableAttributes: []string{}, + SortableAttributes: []string{}, + TypoTolerance: &defaultTypoTolerance, + Pagination: &defaultPagination, + }, + }, + { + name: "TestIndexUpdateJustPagination", + args: args{ + UID: "indexUID", + client: defaultClient, + firstRequest: Settings{ + RankingRules: []string{ + "typo", "words", + }, + Pagination: &Pagination{ + MaxTotalHits: 1200, + }, + }, + firstResponse: Settings{ + RankingRules: []string{ + "typo", "words", + }, + DistinctAttribute: (*string)(nil), + SearchableAttributes: []string{"*"}, + DisplayedAttributes: []string{"*"}, + StopWords: []string{}, + Synonyms: map[string][]string(nil), + FilterableAttributes: []string{}, + SortableAttributes: []string{}, + TypoTolerance: &defaultTypoTolerance, + Pagination: &Pagination{ + MaxTotalHits: 1200, + }, + }, + secondRequest: Settings{ + Pagination: &Pagination{ + MaxTotalHits: 1200, + }, + }, + secondResponse: Settings{ + RankingRules: []string{ + "typo", "words", + }, + DistinctAttribute: (*string)(nil), + SearchableAttributes: []string{"*"}, + DisplayedAttributes: []string{"*"}, + StopWords: []string{}, + Synonyms: map[string][]string(nil), + FilterableAttributes: []string{}, + SortableAttributes: []string{}, + TypoTolerance: &defaultTypoTolerance, + Pagination: &Pagination{ + MaxTotalHits: 1200, + }, }, }, wantTask: &TaskInfo{ @@ -1981,6 +2177,7 @@ func TestIndex_UpdateSettingsOneByOne(t *testing.T) { FilterableAttributes: []string{}, SortableAttributes: []string{}, TypoTolerance: &defaultTypoTolerance, + Pagination: &defaultPagination, }, }, } @@ -2319,3 +2516,67 @@ func TestIndex_UpdateTypoTolerance(t *testing.T) { }) } } + +func TestIndex_UpdatePagination(t *testing.T) { + type args struct { + UID string + client *Client + request Pagination + } + tests := []struct { + name string + args args + wantTask *TaskInfo + wantResp *Pagination + }{ + { + name: "TestIndexBasicUpdatePagination", + args: args{ + UID: "indexUID", + client: defaultClient, + request: Pagination{ + MaxTotalHits: 1200, + }, + }, + wantTask: &TaskInfo{ + TaskUID: 1, + }, + wantResp: &defaultPagination, + }, + { + name: "TestIndexUpdatePaginationWithCustomClient", + args: args{ + UID: "indexUID", + client: customClient, + request: Pagination{ + MaxTotalHits: 1200, + }, + }, + wantTask: &TaskInfo{ + TaskUID: 1, + }, + wantResp: &defaultPagination, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + SetUpIndexForFaceting() + c := tt.args.client + i := c.Index(tt.args.UID) + t.Cleanup(cleanup(c)) + + gotResp, err := i.GetPagination() + require.NoError(t, err) + require.Equal(t, tt.wantResp, gotResp) + + gotTask, err := i.UpdatePagination(&tt.args.request) + require.NoError(t, err) + require.GreaterOrEqual(t, gotTask.TaskUID, tt.wantTask.TaskUID) + testWaitForTask(t, i, gotTask) + + gotResp, err = i.GetPagination() + require.NoError(t, err) + require.Equal(t, &tt.args.request, gotResp) + }) + } +} diff --git a/main_test.go b/main_test.go index 6a11091d..953dbfab 100644 --- a/main_test.go +++ b/main_test.go @@ -231,6 +231,9 @@ var ( DisableOnWords: []string{}, DisableOnAttributes: []string{}, } + defaultPagination = Pagination{ + MaxTotalHits: 1000, + } ) var customClient = NewFastHTTPCustomClient(ClientConfig{ diff --git a/types.go b/types.go index 7102ec3e..8f806a36 100644 --- a/types.go +++ b/types.go @@ -50,6 +50,7 @@ type Settings struct { FilterableAttributes []string `json:"filterableAttributes,omitempty"` SortableAttributes []string `json:"sortableAttributes,omitempty"` TypoTolerance *TypoTolerance `json:"typoTolerance,omitempty"` + Pagination *Pagination `json:"pagination,omitempty"` } // TypoTolerance is the type that represents the typo tolerance setting in Meilisearch @@ -66,6 +67,11 @@ type MinWordSizeForTypos struct { TwoTypos int64 `json:"twoTypos,omitempty"` } +// Pagination is the type that represents the pagination setting in Meilisearch +type Pagination struct { + MaxTotalHits int64 `json:"maxTotalHits"` +} + // Version is the type that represents the versions in Meilisearch type Version struct { CommitSha string `json:"commitSha"` @@ -120,7 +126,6 @@ type Task struct { Details Details `json:"details,omitempty"` } - // TaskInfo indicates information regarding a task returned by an asynchronous method // // Documentation: https://docs.meilisearch.com/reference/api/tasks.html#tasks diff --git a/types_easyjson.go b/types_easyjson.go index cd08dbb9..ef464800 100644 --- a/types_easyjson.go +++ b/types_easyjson.go @@ -1639,6 +1639,16 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo12(in *jlexer.Lexer, } (*out.TypoTolerance).UnmarshalEasyJSON(in) } + case "pagination": + if in.IsNull() { + in.Skip() + out.Pagination = nil + } else { + if out.Pagination == nil { + out.Pagination = new(Pagination) + } + (*out.Pagination).UnmarshalEasyJSON(in) + } default: in.SkipRecursive() } @@ -1818,6 +1828,16 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo12(out *jwriter.Writ } (*in.TypoTolerance).MarshalEasyJSON(out) } + if in.Pagination != nil { + const prefix string = ",\"pagination\":" + if first { + first = false + out.RawString(prefix[1:]) + } else { + out.RawString(prefix) + } + (*in.Pagination).MarshalEasyJSON(out) + } out.RawByte('}') } @@ -2337,7 +2357,73 @@ func (v *SearchRequest) UnmarshalJSON(data []byte) error { func (v *SearchRequest) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo14(l, v) } -func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo15(in *jlexer.Lexer, out *MinWordSizeForTypos) { +func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo15(in *jlexer.Lexer, out *Pagination) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeFieldName(false) + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "maxTotalHits": + out.MaxTotalHits = int64(in.Int64()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo15(out *jwriter.Writer, in Pagination) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"maxTotalHits\":" + out.RawString(prefix[1:]) + out.Int64(int64(in.MaxTotalHits)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v Pagination) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo15(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v Pagination) MarshalEasyJSON(w *jwriter.Writer) { + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo15(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *Pagination) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo15(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *Pagination) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo15(l, v) +} +func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo16(in *jlexer.Lexer, out *MinWordSizeForTypos) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2370,7 +2456,7 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo15(in *jlexer.Lexer, in.Consumed() } } -func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo15(out *jwriter.Writer, in MinWordSizeForTypos) { +func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo16(out *jwriter.Writer, in MinWordSizeForTypos) { out.RawByte('{') first := true _ = first @@ -2396,27 +2482,27 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo15(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v MinWordSizeForTypos) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo15(&w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo16(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v MinWordSizeForTypos) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo15(w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo16(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *MinWordSizeForTypos) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo15(&r, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo16(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *MinWordSizeForTypos) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo15(l, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo16(l, v) } -func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo16(in *jlexer.Lexer, out *KeysResults) { +func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo17(in *jlexer.Lexer, out *KeysResults) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2474,7 +2560,7 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo16(in *jlexer.Lexer, in.Consumed() } } -func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo16(out *jwriter.Writer, in KeysResults) { +func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo17(out *jwriter.Writer, in KeysResults) { out.RawByte('{') first := true _ = first @@ -2515,27 +2601,27 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo16(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v KeysResults) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo16(&w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo17(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v KeysResults) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo16(w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo17(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *KeysResults) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo16(&r, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo17(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *KeysResults) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo16(l, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo17(l, v) } -func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo17(in *jlexer.Lexer, out *KeysQuery) { +func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo18(in *jlexer.Lexer, out *KeysQuery) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2568,7 +2654,7 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo17(in *jlexer.Lexer, in.Consumed() } } -func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo17(out *jwriter.Writer, in KeysQuery) { +func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo18(out *jwriter.Writer, in KeysQuery) { out.RawByte('{') first := true _ = first @@ -2594,27 +2680,27 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo17(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v KeysQuery) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo17(&w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo18(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v KeysQuery) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo17(w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo18(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *KeysQuery) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo17(&r, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo18(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *KeysQuery) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo17(l, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo18(l, v) } -func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo18(in *jlexer.Lexer, out *KeyUpdate) { +func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo19(in *jlexer.Lexer, out *KeyUpdate) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2647,7 +2733,7 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo18(in *jlexer.Lexer, in.Consumed() } } -func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo18(out *jwriter.Writer, in KeyUpdate) { +func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo19(out *jwriter.Writer, in KeyUpdate) { out.RawByte('{') first := true _ = first @@ -2673,27 +2759,27 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo18(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v KeyUpdate) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo18(&w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo19(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v KeyUpdate) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo18(w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo19(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *KeyUpdate) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo18(&r, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo19(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *KeyUpdate) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo18(l, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo19(l, v) } -func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo19(in *jlexer.Lexer, out *KeyParsed) { +func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo20(in *jlexer.Lexer, out *KeyParsed) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2792,7 +2878,7 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo19(in *jlexer.Lexer, in.Consumed() } } -func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo19(out *jwriter.Writer, in KeyParsed) { +func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo20(out *jwriter.Writer, in KeyParsed) { out.RawByte('{') first := true _ = first @@ -2864,27 +2950,27 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo19(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v KeyParsed) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo19(&w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo20(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v KeyParsed) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo19(w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo20(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *KeyParsed) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo19(&r, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo20(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *KeyParsed) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo19(l, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo20(l, v) } -func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo20(in *jlexer.Lexer, out *Key) { +func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo21(in *jlexer.Lexer, out *Key) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2979,7 +3065,7 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo20(in *jlexer.Lexer, in.Consumed() } } -func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo20(out *jwriter.Writer, in Key) { +func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo21(out *jwriter.Writer, in Key) { out.RawByte('{') first := true _ = first @@ -3052,27 +3138,27 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo20(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v Key) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo20(&w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo21(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Key) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo20(w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo21(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Key) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo20(&r, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo21(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Key) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo20(l, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo21(l, v) } -func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo21(in *jlexer.Lexer, out *IndexesResults) { +func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo22(in *jlexer.Lexer, out *IndexesResults) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3130,7 +3216,7 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo21(in *jlexer.Lexer, in.Consumed() } } -func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo21(out *jwriter.Writer, in IndexesResults) { +func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo22(out *jwriter.Writer, in IndexesResults) { out.RawByte('{') first := true _ = first @@ -3171,27 +3257,27 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo21(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v IndexesResults) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo21(&w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo22(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v IndexesResults) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo21(w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo22(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *IndexesResults) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo21(&r, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo22(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *IndexesResults) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo21(l, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo22(l, v) } -func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo22(in *jlexer.Lexer, out *IndexesQuery) { +func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo23(in *jlexer.Lexer, out *IndexesQuery) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3224,7 +3310,7 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo22(in *jlexer.Lexer, in.Consumed() } } -func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo22(out *jwriter.Writer, in IndexesQuery) { +func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo23(out *jwriter.Writer, in IndexesQuery) { out.RawByte('{') first := true _ = first @@ -3250,27 +3336,27 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo22(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v IndexesQuery) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo22(&w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo23(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v IndexesQuery) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo22(w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo23(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *IndexesQuery) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo22(&r, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo23(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *IndexesQuery) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo22(l, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo23(l, v) } -func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo23(in *jlexer.Lexer, out *Index) { +func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo24(in *jlexer.Lexer, out *Index) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3311,7 +3397,7 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo23(in *jlexer.Lexer, in.Consumed() } } -func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo23(out *jwriter.Writer, in Index) { +func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo24(out *jwriter.Writer, in Index) { out.RawByte('{') first := true _ = first @@ -3341,27 +3427,27 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo23(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v Index) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo23(&w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo24(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Index) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo23(w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo24(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Index) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo23(&r, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo24(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Index) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo23(l, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo24(l, v) } -func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo24(in *jlexer.Lexer, out *Health) { +func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo25(in *jlexer.Lexer, out *Health) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3392,7 +3478,7 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo24(in *jlexer.Lexer, in.Consumed() } } -func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo24(out *jwriter.Writer, in Health) { +func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo25(out *jwriter.Writer, in Health) { out.RawByte('{') first := true _ = first @@ -3407,27 +3493,27 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo24(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v Health) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo24(&w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo25(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Health) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo24(w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo25(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Health) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo24(&r, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo25(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Health) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo24(l, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo25(l, v) } -func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo25(in *jlexer.Lexer, out *Dump) { +func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo26(in *jlexer.Lexer, out *Dump) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3468,7 +3554,7 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo25(in *jlexer.Lexer, in.Consumed() } } -func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo25(out *jwriter.Writer, in Dump) { +func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo26(out *jwriter.Writer, in Dump) { out.RawByte('{') first := true _ = first @@ -3498,27 +3584,27 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo25(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v Dump) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo25(&w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo26(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Dump) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo25(w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo26(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Dump) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo25(&r, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo26(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Dump) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo25(l, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo26(l, v) } -func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo26(in *jlexer.Lexer, out *DocumentsResult) { +func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo27(in *jlexer.Lexer, out *DocumentsResult) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3596,7 +3682,7 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo26(in *jlexer.Lexer, in.Consumed() } } -func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo26(out *jwriter.Writer, in DocumentsResult) { +func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo27(out *jwriter.Writer, in DocumentsResult) { out.RawByte('{') first := true _ = first @@ -3659,27 +3745,27 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo26(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v DocumentsResult) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo26(&w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo27(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v DocumentsResult) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo26(w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo27(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *DocumentsResult) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo26(&r, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo27(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *DocumentsResult) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo26(l, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo27(l, v) } -func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo27(in *jlexer.Lexer, out *DocumentsQuery) { +func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo28(in *jlexer.Lexer, out *DocumentsQuery) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3735,7 +3821,7 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo27(in *jlexer.Lexer, in.Consumed() } } -func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo27(out *jwriter.Writer, in DocumentsQuery) { +func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo28(out *jwriter.Writer, in DocumentsQuery) { out.RawByte('{') first := true _ = first @@ -3780,27 +3866,27 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo27(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v DocumentsQuery) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo27(&w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo28(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v DocumentsQuery) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo27(w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo28(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *DocumentsQuery) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo27(&r, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo28(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *DocumentsQuery) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo27(l, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo28(l, v) } -func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo28(in *jlexer.Lexer, out *DocumentQuery) { +func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo29(in *jlexer.Lexer, out *DocumentQuery) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3852,7 +3938,7 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo28(in *jlexer.Lexer, in.Consumed() } } -func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo28(out *jwriter.Writer, in DocumentQuery) { +func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo29(out *jwriter.Writer, in DocumentQuery) { out.RawByte('{') first := true _ = first @@ -3877,27 +3963,27 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo28(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v DocumentQuery) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo28(&w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo29(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v DocumentQuery) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo28(w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo29(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *DocumentQuery) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo28(&r, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo29(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *DocumentQuery) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo28(l, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo29(l, v) } -func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo29(in *jlexer.Lexer, out *Details) { +func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo30(in *jlexer.Lexer, out *Details) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4123,7 +4209,7 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo29(in *jlexer.Lexer, in.Consumed() } } -func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo29(out *jwriter.Writer, in Details) { +func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo30(out *jwriter.Writer, in Details) { out.RawByte('{') first := true _ = first @@ -4328,27 +4414,27 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo29(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v Details) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo29(&w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo30(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Details) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo29(w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo30(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Details) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo29(&r, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo30(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Details) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo29(l, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo30(l, v) } -func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo30(in *jlexer.Lexer, out *CreateIndexRequest) { +func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo31(in *jlexer.Lexer, out *CreateIndexRequest) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4381,7 +4467,7 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo30(in *jlexer.Lexer, in.Consumed() } } -func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo30(out *jwriter.Writer, in CreateIndexRequest) { +func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo31(out *jwriter.Writer, in CreateIndexRequest) { out.RawByte('{') first := true _ = first @@ -4407,27 +4493,27 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo30(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v CreateIndexRequest) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo30(&w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo31(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CreateIndexRequest) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo30(w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo31(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CreateIndexRequest) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo30(&r, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo31(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CreateIndexRequest) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo30(l, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo31(l, v) } -func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo31(in *jlexer.Lexer, out *Client) { +func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo32(in *jlexer.Lexer, out *Client) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4456,7 +4542,7 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo31(in *jlexer.Lexer, in.Consumed() } } -func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo31(out *jwriter.Writer, in Client) { +func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo32(out *jwriter.Writer, in Client) { out.RawByte('{') first := true _ = first @@ -4466,23 +4552,23 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo31(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v Client) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo31(&w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo32(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Client) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo31(w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo32(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Client) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo31(&r, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo32(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Client) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo31(l, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo32(l, v) }