From f792ff591edd48a0f76f951e84a72510009fbf92 Mon Sep 17 00:00:00 2001 From: Javad Date: Wed, 31 Jul 2024 15:55:25 +0330 Subject: [PATCH] Feat get similar documents --- .code-samples.meilisearch.yaml | 5 + index.go | 1 + index_search.go | 17 + index_search_test.go | 32 + types.go | 23 + types_easyjson.go | 1398 ++++++++++++++++++++------------ 6 files changed, 970 insertions(+), 506 deletions(-) diff --git a/.code-samples.meilisearch.yaml b/.code-samples.meilisearch.yaml index 6ce81f03..24ebd198 100644 --- a/.code-samples.meilisearch.yaml +++ b/.code-samples.meilisearch.yaml @@ -898,6 +898,11 @@ distinct_attribute_guide_filterable_1: |- "url", } client.Index("products").UpdateFilterableAttributes(&filterableAttributes) +get_similar_post_1: |- + resp := new(meilisearch.SimilarDocumentResult) + client.Index("INDEX_NAME").SearchSimilarDocuments(&meilisearch.SimilarDocumentQuery{ + Id: "TARGET_DOCUMENT_ID", + }, resp) search_parameter_reference_ranking_score_threshold_1: |- client.Index("INDEX_NAME").Search("badman", &meilisearch.SearchRequest{ RankingScoreThreshold: 0.2, diff --git a/index.go b/index.go index 58236392..94caa37e 100644 --- a/index.go +++ b/index.go @@ -46,6 +46,7 @@ type IndexInterface interface { DeleteAllDocuments() (resp *TaskInfo, err error) Search(query string, request *SearchRequest) (*SearchResponse, error) SearchRaw(query string, request *SearchRequest) (*json.RawMessage, error) + SearchSimilarDocuments(param *SimilarDocumentQuery, resp *SimilarDocumentResult) error GetTask(taskUID int64) (resp *Task, err error) GetTasks(param *TasksQuery) (resp *TaskResult, err error) diff --git a/index_search.go b/index_search.go index af1e45ab..f57dc27c 100644 --- a/index_search.go +++ b/index_search.go @@ -78,6 +78,23 @@ func (i Index) Search(query string, request *SearchRequest) (*SearchResponse, er return resp, nil } +func (i Index) SearchSimilarDocuments(param *SimilarDocumentQuery, resp *SimilarDocumentResult) error { + req := internalRequest{ + endpoint: "/indexes/" + i.UID + "/similar", + method: http.MethodPost, + withRequest: param, + withResponse: resp, + acceptedStatusCodes: []int{http.StatusOK}, + functionName: "SearchSimilarDocuments", + contentType: contentTypeJSON, + } + + if err := i.client.executeRequest(req); err != nil { + return err + } + return nil +} + func searchPostRequestParams(query string, request *SearchRequest) map[string]interface{} { params := make(map[string]interface{}, 22) diff --git a/index_search_test.go b/index_search_test.go index 077a12db..f43be55f 100644 --- a/index_search_test.go +++ b/index_search_test.go @@ -1724,3 +1724,35 @@ func TestIndex_SearchWithDistinct(t *testing.T) { }) } } + +func TestIndex_SearchSimilarDocuments(t *testing.T) { + tests := []struct { + UID string + PrimaryKey string + client *Client + request *SimilarDocumentQuery + resp *SimilarDocumentResult + }{ + { + UID: "indexUID", + client: defaultClient, + request: &SimilarDocumentQuery{ + Id: "123", + }, + resp: new(SimilarDocumentResult), + }, + } + + for _, tt := range tests { + t.Run(tt.UID, func(t *testing.T) { + i, err := SetUpIndexWithVector(tt.UID) + require.NoError(t, err) + c := tt.client + t.Cleanup(cleanup(c)) + + err = i.SearchSimilarDocuments(tt.request, tt.resp) + require.NoError(t, err) + require.NotNil(t, tt.resp) + }) + } +} diff --git a/types.go b/types.go index e5841115..eac86550 100644 --- a/types.go +++ b/types.go @@ -424,6 +424,29 @@ type DocumentsQuery struct { Filter interface{} `json:"filter,omitempty"` } +// SimilarDocumentQuery is query parameters of similar documents +type SimilarDocumentQuery struct { + Id interface{} `json:"id,omitempty"` + Embedder string `json:"embedder,omitempty"` + AttributesToRetrieve []string `json:"attributesToRetrieve,omitempty"` + Offset int64 `json:"offset,omitempty"` + Limit int64 `json:"limit,omitempty"` + Filter string `json:"filter,omitempty"` + ShowRankingScore bool `json:"showRankingScore,omitempty"` + ShowRankingScoreDetails bool `json:"showRankingScoreDetails,omitempty"` + RankingScoreThreshold float64 `json:"rankingScoreThreshold,omitempty"` + RetrieveVectors bool `json:"retrieveVectors,omitempty"` +} + +type SimilarDocumentResult struct { + Hits []interface{} `json:"hits,omitempty"` + ID string `json:"id,omitempty"` + ProcessingTimeMS int64 `json:"processingTimeMs,omitempty"` + Limit int64 `json:"limit,omitempty"` + Offset int64 `json:"offset,omitempty"` + EstimatedTotalHits int64 `json:"estimatedTotalHits,omitempty"` +} + type CsvDocumentsQuery struct { PrimaryKey string `json:"primaryKey,omitempty"` CsvDelimiter string `json:"csvDelimiter,omitempty"` diff --git a/types_easyjson.go b/types_easyjson.go index 849b40cb..92f919ad 100644 --- a/types_easyjson.go +++ b/types_easyjson.go @@ -1628,7 +1628,393 @@ func (v *Stats) UnmarshalJSON(data []byte) error { func (v *Stats) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo12(l, v) } -func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo13(in *jlexer.Lexer, out *Settings) { +func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo13(in *jlexer.Lexer, out *SimilarDocumentResult) { + 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 "hits": + if in.IsNull() { + in.Skip() + out.Hits = nil + } else { + in.Delim('[') + if out.Hits == nil { + if !in.IsDelim(']') { + out.Hits = make([]interface{}, 0, 4) + } else { + out.Hits = []interface{}{} + } + } else { + out.Hits = (out.Hits)[:0] + } + for !in.IsDelim(']') { + var v32 interface{} + if m, ok := v32.(easyjson.Unmarshaler); ok { + m.UnmarshalEasyJSON(in) + } else if m, ok := v32.(json.Unmarshaler); ok { + _ = m.UnmarshalJSON(in.Raw()) + } else { + v32 = in.Interface() + } + out.Hits = append(out.Hits, v32) + in.WantComma() + } + in.Delim(']') + } + case "id": + out.ID = string(in.String()) + case "processingTimeMs": + out.ProcessingTimeMS = int64(in.Int64()) + case "limit": + out.Limit = int64(in.Int64()) + case "offset": + out.Offset = int64(in.Int64()) + case "estimatedTotalHits": + out.EstimatedTotalHits = int64(in.Int64()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo13(out *jwriter.Writer, in SimilarDocumentResult) { + out.RawByte('{') + first := true + _ = first + if len(in.Hits) != 0 { + const prefix string = ",\"hits\":" + first = false + out.RawString(prefix[1:]) + { + out.RawByte('[') + for v33, v34 := range in.Hits { + if v33 > 0 { + out.RawByte(',') + } + if m, ok := v34.(easyjson.Marshaler); ok { + m.MarshalEasyJSON(out) + } else if m, ok := v34.(json.Marshaler); ok { + out.Raw(m.MarshalJSON()) + } else { + out.Raw(json.Marshal(v34)) + } + } + out.RawByte(']') + } + } + if in.ID != "" { + const prefix string = ",\"id\":" + if first { + first = false + out.RawString(prefix[1:]) + } else { + out.RawString(prefix) + } + out.String(string(in.ID)) + } + if in.ProcessingTimeMS != 0 { + const prefix string = ",\"processingTimeMs\":" + if first { + first = false + out.RawString(prefix[1:]) + } else { + out.RawString(prefix) + } + out.Int64(int64(in.ProcessingTimeMS)) + } + if in.Limit != 0 { + const prefix string = ",\"limit\":" + if first { + first = false + out.RawString(prefix[1:]) + } else { + out.RawString(prefix) + } + out.Int64(int64(in.Limit)) + } + if in.Offset != 0 { + const prefix string = ",\"offset\":" + if first { + first = false + out.RawString(prefix[1:]) + } else { + out.RawString(prefix) + } + out.Int64(int64(in.Offset)) + } + if in.EstimatedTotalHits != 0 { + const prefix string = ",\"estimatedTotalHits\":" + if first { + first = false + out.RawString(prefix[1:]) + } else { + out.RawString(prefix) + } + out.Int64(int64(in.EstimatedTotalHits)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SimilarDocumentResult) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo13(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SimilarDocumentResult) MarshalEasyJSON(w *jwriter.Writer) { + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo13(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SimilarDocumentResult) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo13(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SimilarDocumentResult) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo13(l, v) +} +func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo14(in *jlexer.Lexer, out *SimilarDocumentQuery) { + 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 "id": + if m, ok := out.Id.(easyjson.Unmarshaler); ok { + m.UnmarshalEasyJSON(in) + } else if m, ok := out.Id.(json.Unmarshaler); ok { + _ = m.UnmarshalJSON(in.Raw()) + } else { + out.Id = in.Interface() + } + case "embedder": + out.Embedder = string(in.String()) + case "attributesToRetrieve": + if in.IsNull() { + in.Skip() + out.AttributesToRetrieve = nil + } else { + in.Delim('[') + if out.AttributesToRetrieve == nil { + if !in.IsDelim(']') { + out.AttributesToRetrieve = make([]string, 0, 4) + } else { + out.AttributesToRetrieve = []string{} + } + } else { + out.AttributesToRetrieve = (out.AttributesToRetrieve)[:0] + } + for !in.IsDelim(']') { + var v35 string + v35 = string(in.String()) + out.AttributesToRetrieve = append(out.AttributesToRetrieve, v35) + in.WantComma() + } + in.Delim(']') + } + case "offset": + out.Offset = int64(in.Int64()) + case "limit": + out.Limit = int64(in.Int64()) + case "filter": + out.Filter = string(in.String()) + case "showRankingScore": + out.ShowRankingScore = bool(in.Bool()) + case "showRankingScoreDetails": + out.ShowRankingScoreDetails = bool(in.Bool()) + case "rankingScoreThreshold": + out.RankingScoreThreshold = float64(in.Float64()) + case "retrieveVectors": + out.RetrieveVectors = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo14(out *jwriter.Writer, in SimilarDocumentQuery) { + out.RawByte('{') + first := true + _ = first + if in.Id != nil { + const prefix string = ",\"id\":" + first = false + out.RawString(prefix[1:]) + if m, ok := in.Id.(easyjson.Marshaler); ok { + m.MarshalEasyJSON(out) + } else if m, ok := in.Id.(json.Marshaler); ok { + out.Raw(m.MarshalJSON()) + } else { + out.Raw(json.Marshal(in.Id)) + } + } + if in.Embedder != "" { + const prefix string = ",\"embedder\":" + if first { + first = false + out.RawString(prefix[1:]) + } else { + out.RawString(prefix) + } + out.String(string(in.Embedder)) + } + if len(in.AttributesToRetrieve) != 0 { + const prefix string = ",\"attributesToRetrieve\":" + if first { + first = false + out.RawString(prefix[1:]) + } else { + out.RawString(prefix) + } + { + out.RawByte('[') + for v36, v37 := range in.AttributesToRetrieve { + if v36 > 0 { + out.RawByte(',') + } + out.String(string(v37)) + } + out.RawByte(']') + } + } + if in.Offset != 0 { + const prefix string = ",\"offset\":" + if first { + first = false + out.RawString(prefix[1:]) + } else { + out.RawString(prefix) + } + out.Int64(int64(in.Offset)) + } + if in.Limit != 0 { + const prefix string = ",\"limit\":" + if first { + first = false + out.RawString(prefix[1:]) + } else { + out.RawString(prefix) + } + out.Int64(int64(in.Limit)) + } + if in.Filter != "" { + const prefix string = ",\"filter\":" + if first { + first = false + out.RawString(prefix[1:]) + } else { + out.RawString(prefix) + } + out.String(string(in.Filter)) + } + if in.ShowRankingScore { + const prefix string = ",\"showRankingScore\":" + if first { + first = false + out.RawString(prefix[1:]) + } else { + out.RawString(prefix) + } + out.Bool(bool(in.ShowRankingScore)) + } + if in.ShowRankingScoreDetails { + const prefix string = ",\"showRankingScoreDetails\":" + if first { + first = false + out.RawString(prefix[1:]) + } else { + out.RawString(prefix) + } + out.Bool(bool(in.ShowRankingScoreDetails)) + } + if in.RankingScoreThreshold != 0 { + const prefix string = ",\"rankingScoreThreshold\":" + if first { + first = false + out.RawString(prefix[1:]) + } else { + out.RawString(prefix) + } + out.Float64(float64(in.RankingScoreThreshold)) + } + if in.RetrieveVectors { + const prefix string = ",\"retrieveVectors\":" + if first { + first = false + out.RawString(prefix[1:]) + } else { + out.RawString(prefix) + } + out.Bool(bool(in.RetrieveVectors)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SimilarDocumentQuery) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo14(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SimilarDocumentQuery) MarshalEasyJSON(w *jwriter.Writer) { + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo14(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SimilarDocumentQuery) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo14(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SimilarDocumentQuery) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo14(l, v) +} +func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo15(in *jlexer.Lexer, out *Settings) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1663,9 +2049,9 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo13(in *jlexer.Lexer, out.RankingRules = (out.RankingRules)[:0] } for !in.IsDelim(']') { - var v32 string - v32 = string(in.String()) - out.RankingRules = append(out.RankingRules, v32) + var v38 string + v38 = string(in.String()) + out.RankingRules = append(out.RankingRules, v38) in.WantComma() } in.Delim(']') @@ -1696,9 +2082,9 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo13(in *jlexer.Lexer, out.SearchableAttributes = (out.SearchableAttributes)[:0] } for !in.IsDelim(']') { - var v33 string - v33 = string(in.String()) - out.SearchableAttributes = append(out.SearchableAttributes, v33) + var v39 string + v39 = string(in.String()) + out.SearchableAttributes = append(out.SearchableAttributes, v39) in.WantComma() } in.Delim(']') @@ -1719,9 +2105,9 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo13(in *jlexer.Lexer, out.DisplayedAttributes = (out.DisplayedAttributes)[:0] } for !in.IsDelim(']') { - var v34 string - v34 = string(in.String()) - out.DisplayedAttributes = append(out.DisplayedAttributes, v34) + var v40 string + v40 = string(in.String()) + out.DisplayedAttributes = append(out.DisplayedAttributes, v40) in.WantComma() } in.Delim(']') @@ -1742,9 +2128,9 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo13(in *jlexer.Lexer, out.StopWords = (out.StopWords)[:0] } for !in.IsDelim(']') { - var v35 string - v35 = string(in.String()) - out.StopWords = append(out.StopWords, v35) + var v41 string + v41 = string(in.String()) + out.StopWords = append(out.StopWords, v41) in.WantComma() } in.Delim(']') @@ -1762,30 +2148,30 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo13(in *jlexer.Lexer, for !in.IsDelim('}') { key := string(in.String()) in.WantColon() - var v36 []string + var v42 []string if in.IsNull() { in.Skip() - v36 = nil + v42 = nil } else { in.Delim('[') - if v36 == nil { + if v42 == nil { if !in.IsDelim(']') { - v36 = make([]string, 0, 4) + v42 = make([]string, 0, 4) } else { - v36 = []string{} + v42 = []string{} } } else { - v36 = (v36)[:0] + v42 = (v42)[:0] } for !in.IsDelim(']') { - var v37 string - v37 = string(in.String()) - v36 = append(v36, v37) + var v43 string + v43 = string(in.String()) + v42 = append(v42, v43) in.WantComma() } in.Delim(']') } - (out.Synonyms)[key] = v36 + (out.Synonyms)[key] = v42 in.WantComma() } in.Delim('}') @@ -1806,9 +2192,9 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo13(in *jlexer.Lexer, out.FilterableAttributes = (out.FilterableAttributes)[:0] } for !in.IsDelim(']') { - var v38 string - v38 = string(in.String()) - out.FilterableAttributes = append(out.FilterableAttributes, v38) + var v44 string + v44 = string(in.String()) + out.FilterableAttributes = append(out.FilterableAttributes, v44) in.WantComma() } in.Delim(']') @@ -1829,9 +2215,9 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo13(in *jlexer.Lexer, out.SortableAttributes = (out.SortableAttributes)[:0] } for !in.IsDelim(']') { - var v39 string - v39 = string(in.String()) - out.SortableAttributes = append(out.SortableAttributes, v39) + var v45 string + v45 = string(in.String()) + out.SortableAttributes = append(out.SortableAttributes, v45) in.WantComma() } in.Delim(']') @@ -1879,9 +2265,9 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo13(in *jlexer.Lexer, for !in.IsDelim('}') { key := string(in.String()) in.WantColon() - var v40 Embedder - (v40).UnmarshalEasyJSON(in) - (out.Embedders)[key] = v40 + var v46 Embedder + (v46).UnmarshalEasyJSON(in) + (out.Embedders)[key] = v46 in.WantComma() } in.Delim('}') @@ -1896,7 +2282,7 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo13(in *jlexer.Lexer, in.Consumed() } } -func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo13(out *jwriter.Writer, in Settings) { +func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo15(out *jwriter.Writer, in Settings) { out.RawByte('{') first := true _ = first @@ -1906,11 +2292,11 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo13(out *jwriter.Writ out.RawString(prefix[1:]) { out.RawByte('[') - for v41, v42 := range in.RankingRules { - if v41 > 0 { + for v47, v48 := range in.RankingRules { + if v47 > 0 { out.RawByte(',') } - out.String(string(v42)) + out.String(string(v48)) } out.RawByte(']') } @@ -1935,11 +2321,11 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo13(out *jwriter.Writ } { out.RawByte('[') - for v43, v44 := range in.SearchableAttributes { - if v43 > 0 { + for v49, v50 := range in.SearchableAttributes { + if v49 > 0 { out.RawByte(',') } - out.String(string(v44)) + out.String(string(v50)) } out.RawByte(']') } @@ -1954,11 +2340,11 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo13(out *jwriter.Writ } { out.RawByte('[') - for v45, v46 := range in.DisplayedAttributes { - if v45 > 0 { + for v51, v52 := range in.DisplayedAttributes { + if v51 > 0 { out.RawByte(',') } - out.String(string(v46)) + out.String(string(v52)) } out.RawByte(']') } @@ -1973,11 +2359,11 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo13(out *jwriter.Writ } { out.RawByte('[') - for v47, v48 := range in.StopWords { - if v47 > 0 { + for v53, v54 := range in.StopWords { + if v53 > 0 { out.RawByte(',') } - out.String(string(v48)) + out.String(string(v54)) } out.RawByte(']') } @@ -1992,24 +2378,24 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo13(out *jwriter.Writ } { out.RawByte('{') - v49First := true - for v49Name, v49Value := range in.Synonyms { - if v49First { - v49First = false + v55First := true + for v55Name, v55Value := range in.Synonyms { + if v55First { + v55First = false } else { out.RawByte(',') } - out.String(string(v49Name)) + out.String(string(v55Name)) out.RawByte(':') - if v49Value == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + if v55Value == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') - for v50, v51 := range v49Value { - if v50 > 0 { + for v56, v57 := range v55Value { + if v56 > 0 { out.RawByte(',') } - out.String(string(v51)) + out.String(string(v57)) } out.RawByte(']') } @@ -2027,11 +2413,11 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo13(out *jwriter.Writ } { out.RawByte('[') - for v52, v53 := range in.FilterableAttributes { - if v52 > 0 { + for v58, v59 := range in.FilterableAttributes { + if v58 > 0 { out.RawByte(',') } - out.String(string(v53)) + out.String(string(v59)) } out.RawByte(']') } @@ -2046,11 +2432,11 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo13(out *jwriter.Writ } { out.RawByte('[') - for v54, v55 := range in.SortableAttributes { - if v54 > 0 { + for v60, v61 := range in.SortableAttributes { + if v60 > 0 { out.RawByte(',') } - out.String(string(v55)) + out.String(string(v61)) } out.RawByte(']') } @@ -2095,16 +2481,16 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo13(out *jwriter.Writ } { out.RawByte('{') - v56First := true - for v56Name, v56Value := range in.Embedders { - if v56First { - v56First = false + v62First := true + for v62Name, v62Value := range in.Embedders { + if v62First { + v62First = false } else { out.RawByte(',') } - out.String(string(v56Name)) + out.String(string(v62Name)) out.RawByte(':') - (v56Value).MarshalEasyJSON(out) + (v62Value).MarshalEasyJSON(out) } out.RawByte('}') } @@ -2115,27 +2501,27 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo13(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v Settings) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo13(&w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo15(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Settings) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo13(w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo15(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Settings) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo13(&r, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo15(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Settings) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo13(l, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo15(l, v) } -func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo14(in *jlexer.Lexer, out *SearchResponse) { +func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo16(in *jlexer.Lexer, out *SearchResponse) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2170,15 +2556,15 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo14(in *jlexer.Lexer, out.Hits = (out.Hits)[:0] } for !in.IsDelim(']') { - var v57 interface{} - if m, ok := v57.(easyjson.Unmarshaler); ok { + var v63 interface{} + if m, ok := v63.(easyjson.Unmarshaler); ok { m.UnmarshalEasyJSON(in) - } else if m, ok := v57.(json.Unmarshaler); ok { + } else if m, ok := v63.(json.Unmarshaler); ok { _ = m.UnmarshalJSON(in.Raw()) } else { - v57 = in.Interface() + v63 = in.Interface() } - out.Hits = append(out.Hits, v57) + out.Hits = append(out.Hits, v63) in.WantComma() } in.Delim(']') @@ -2229,7 +2615,7 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo14(in *jlexer.Lexer, in.Consumed() } } -func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo14(out *jwriter.Writer, in SearchResponse) { +func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo16(out *jwriter.Writer, in SearchResponse) { out.RawByte('{') first := true _ = first @@ -2240,16 +2626,16 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo14(out *jwriter.Writ out.RawString("null") } else { out.RawByte('[') - for v58, v59 := range in.Hits { - if v58 > 0 { + for v64, v65 := range in.Hits { + if v64 > 0 { out.RawByte(',') } - if m, ok := v59.(easyjson.Marshaler); ok { + if m, ok := v65.(easyjson.Marshaler); ok { m.MarshalEasyJSON(out) - } else if m, ok := v59.(json.Marshaler); ok { + } else if m, ok := v65.(json.Marshaler); ok { out.Raw(m.MarshalJSON()) } else { - out.Raw(json.Marshal(v59)) + out.Raw(json.Marshal(v65)) } } out.RawByte(']') @@ -2333,27 +2719,27 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo14(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v SearchResponse) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo14(&w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo16(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SearchResponse) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo14(w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo16(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SearchResponse) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo14(&r, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo16(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SearchResponse) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo14(l, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo16(l, v) } -func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo15(in *jlexer.Lexer, out *SearchRequestHybrid) { +func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo17(in *jlexer.Lexer, out *SearchRequestHybrid) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2386,7 +2772,7 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo15(in *jlexer.Lexer, in.Consumed() } } -func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo15(out *jwriter.Writer, in SearchRequestHybrid) { +func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo17(out *jwriter.Writer, in SearchRequestHybrid) { out.RawByte('{') first := true _ = first @@ -2406,27 +2792,27 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo15(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v SearchRequestHybrid) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo15(&w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo17(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SearchRequestHybrid) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo15(w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo17(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SearchRequestHybrid) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo15(&r, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo17(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SearchRequestHybrid) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo15(l, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo17(l, v) } -func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo16(in *jlexer.Lexer, out *SearchRequest) { +func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo18(in *jlexer.Lexer, out *SearchRequest) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2465,9 +2851,9 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo16(in *jlexer.Lexer, out.AttributesToRetrieve = (out.AttributesToRetrieve)[:0] } for !in.IsDelim(']') { - var v60 string - v60 = string(in.String()) - out.AttributesToRetrieve = append(out.AttributesToRetrieve, v60) + var v66 string + v66 = string(in.String()) + out.AttributesToRetrieve = append(out.AttributesToRetrieve, v66) in.WantComma() } in.Delim(']') @@ -2488,9 +2874,9 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo16(in *jlexer.Lexer, out.AttributesToSearchOn = (out.AttributesToSearchOn)[:0] } for !in.IsDelim(']') { - var v61 string - v61 = string(in.String()) - out.AttributesToSearchOn = append(out.AttributesToSearchOn, v61) + var v67 string + v67 = string(in.String()) + out.AttributesToSearchOn = append(out.AttributesToSearchOn, v67) in.WantComma() } in.Delim(']') @@ -2511,9 +2897,9 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo16(in *jlexer.Lexer, out.AttributesToCrop = (out.AttributesToCrop)[:0] } for !in.IsDelim(']') { - var v62 string - v62 = string(in.String()) - out.AttributesToCrop = append(out.AttributesToCrop, v62) + var v68 string + v68 = string(in.String()) + out.AttributesToCrop = append(out.AttributesToCrop, v68) in.WantComma() } in.Delim(']') @@ -2538,9 +2924,9 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo16(in *jlexer.Lexer, out.AttributesToHighlight = (out.AttributesToHighlight)[:0] } for !in.IsDelim(']') { - var v63 string - v63 = string(in.String()) - out.AttributesToHighlight = append(out.AttributesToHighlight, v63) + var v69 string + v69 = string(in.String()) + out.AttributesToHighlight = append(out.AttributesToHighlight, v69) in.WantComma() } in.Delim(']') @@ -2581,9 +2967,9 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo16(in *jlexer.Lexer, out.Facets = (out.Facets)[:0] } for !in.IsDelim(']') { - var v64 string - v64 = string(in.String()) - out.Facets = append(out.Facets, v64) + var v70 string + v70 = string(in.String()) + out.Facets = append(out.Facets, v70) in.WantComma() } in.Delim(']') @@ -2606,9 +2992,9 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo16(in *jlexer.Lexer, out.Sort = (out.Sort)[:0] } for !in.IsDelim(']') { - var v65 string - v65 = string(in.String()) - out.Sort = append(out.Sort, v65) + var v71 string + v71 = string(in.String()) + out.Sort = append(out.Sort, v71) in.WantComma() } in.Delim(']') @@ -2629,9 +3015,9 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo16(in *jlexer.Lexer, out.Vector = (out.Vector)[:0] } for !in.IsDelim(']') { - var v66 float32 - v66 = float32(in.Float32()) - out.Vector = append(out.Vector, v66) + var v72 float32 + v72 = float32(in.Float32()) + out.Vector = append(out.Vector, v72) in.WantComma() } in.Delim(']') @@ -2670,7 +3056,7 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo16(in *jlexer.Lexer, in.Consumed() } } -func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo16(out *jwriter.Writer, in SearchRequest) { +func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo18(out *jwriter.Writer, in SearchRequest) { out.RawByte('{') first := true _ = first @@ -2691,11 +3077,11 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo16(out *jwriter.Writ out.RawString("null") } else { out.RawByte('[') - for v67, v68 := range in.AttributesToRetrieve { - if v67 > 0 { + for v73, v74 := range in.AttributesToRetrieve { + if v73 > 0 { out.RawByte(',') } - out.String(string(v68)) + out.String(string(v74)) } out.RawByte(']') } @@ -2707,11 +3093,11 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo16(out *jwriter.Writ out.RawString("null") } else { out.RawByte('[') - for v69, v70 := range in.AttributesToSearchOn { - if v69 > 0 { + for v75, v76 := range in.AttributesToSearchOn { + if v75 > 0 { out.RawByte(',') } - out.String(string(v70)) + out.String(string(v76)) } out.RawByte(']') } @@ -2723,11 +3109,11 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo16(out *jwriter.Writ out.RawString("null") } else { out.RawByte('[') - for v71, v72 := range in.AttributesToCrop { - if v71 > 0 { + for v77, v78 := range in.AttributesToCrop { + if v77 > 0 { out.RawByte(',') } - out.String(string(v72)) + out.String(string(v78)) } out.RawByte(']') } @@ -2749,11 +3135,11 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo16(out *jwriter.Writ out.RawString("null") } else { out.RawByte('[') - for v73, v74 := range in.AttributesToHighlight { - if v73 > 0 { + for v79, v80 := range in.AttributesToHighlight { + if v79 > 0 { out.RawByte(',') } - out.String(string(v74)) + out.String(string(v80)) } out.RawByte(']') } @@ -2806,11 +3192,11 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo16(out *jwriter.Writ out.RawString("null") } else { out.RawByte('[') - for v75, v76 := range in.Facets { - if v75 > 0 { + for v81, v82 := range in.Facets { + if v81 > 0 { out.RawByte(',') } - out.String(string(v76)) + out.String(string(v82)) } out.RawByte(']') } @@ -2827,11 +3213,11 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo16(out *jwriter.Writ out.RawString("null") } else { out.RawByte('[') - for v77, v78 := range in.Sort { - if v77 > 0 { + for v83, v84 := range in.Sort { + if v83 > 0 { out.RawByte(',') } - out.String(string(v78)) + out.String(string(v84)) } out.RawByte(']') } @@ -2843,11 +3229,11 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo16(out *jwriter.Writ out.RawString("null") } else { out.RawByte('[') - for v79, v80 := range in.Vector { - if v79 > 0 { + for v85, v86 := range in.Vector { + if v85 > 0 { out.RawByte(',') } - out.Float32(float32(v80)) + out.Float32(float32(v86)) } out.RawByte(']') } @@ -2902,27 +3288,27 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo16(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v SearchRequest) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo16(&w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo18(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SearchRequest) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo16(w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo18(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SearchRequest) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo16(&r, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo18(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SearchRequest) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo16(l, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo18(l, v) } -func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo17(in *jlexer.Lexer, out *Pagination) { +func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo19(in *jlexer.Lexer, out *Pagination) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2953,7 +3339,7 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo17(in *jlexer.Lexer, in.Consumed() } } -func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo17(out *jwriter.Writer, in Pagination) { +func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo19(out *jwriter.Writer, in Pagination) { out.RawByte('{') first := true _ = first @@ -2968,27 +3354,27 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo17(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v Pagination) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo17(&w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo19(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Pagination) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo17(w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo19(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Pagination) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo17(&r, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo19(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Pagination) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo17(l, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo19(l, v) } -func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo18(in *jlexer.Lexer, out *MultiSearchResponse) { +func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo20(in *jlexer.Lexer, out *MultiSearchResponse) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3023,9 +3409,9 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo18(in *jlexer.Lexer, out.Results = (out.Results)[:0] } for !in.IsDelim(']') { - var v81 SearchResponse - (v81).UnmarshalEasyJSON(in) - out.Results = append(out.Results, v81) + var v87 SearchResponse + (v87).UnmarshalEasyJSON(in) + out.Results = append(out.Results, v87) in.WantComma() } in.Delim(']') @@ -3040,7 +3426,7 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo18(in *jlexer.Lexer, in.Consumed() } } -func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo18(out *jwriter.Writer, in MultiSearchResponse) { +func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo20(out *jwriter.Writer, in MultiSearchResponse) { out.RawByte('{') first := true _ = first @@ -3051,11 +3437,11 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo18(out *jwriter.Writ out.RawString("null") } else { out.RawByte('[') - for v82, v83 := range in.Results { - if v82 > 0 { + for v88, v89 := range in.Results { + if v88 > 0 { out.RawByte(',') } - (v83).MarshalEasyJSON(out) + (v89).MarshalEasyJSON(out) } out.RawByte(']') } @@ -3066,27 +3452,27 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo18(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v MultiSearchResponse) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo18(&w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo20(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v MultiSearchResponse) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo18(w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo20(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *MultiSearchResponse) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo18(&r, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo20(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *MultiSearchResponse) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo18(l, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo20(l, v) } -func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo19(in *jlexer.Lexer, out *MultiSearchRequest) { +func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo21(in *jlexer.Lexer, out *MultiSearchRequest) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3121,9 +3507,9 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo19(in *jlexer.Lexer, out.Queries = (out.Queries)[:0] } for !in.IsDelim(']') { - var v84 SearchRequest - (v84).UnmarshalEasyJSON(in) - out.Queries = append(out.Queries, v84) + var v90 SearchRequest + (v90).UnmarshalEasyJSON(in) + out.Queries = append(out.Queries, v90) in.WantComma() } in.Delim(']') @@ -3138,7 +3524,7 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo19(in *jlexer.Lexer, in.Consumed() } } -func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo19(out *jwriter.Writer, in MultiSearchRequest) { +func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo21(out *jwriter.Writer, in MultiSearchRequest) { out.RawByte('{') first := true _ = first @@ -3149,11 +3535,11 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo19(out *jwriter.Writ out.RawString("null") } else { out.RawByte('[') - for v85, v86 := range in.Queries { - if v85 > 0 { + for v91, v92 := range in.Queries { + if v91 > 0 { out.RawByte(',') } - (v86).MarshalEasyJSON(out) + (v92).MarshalEasyJSON(out) } out.RawByte(']') } @@ -3164,27 +3550,27 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo19(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v MultiSearchRequest) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo19(&w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo21(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v MultiSearchRequest) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo19(w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo21(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *MultiSearchRequest) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo19(&r, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo21(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *MultiSearchRequest) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo19(l, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo21(l, v) } -func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo20(in *jlexer.Lexer, out *MinWordSizeForTypos) { +func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo22(in *jlexer.Lexer, out *MinWordSizeForTypos) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3217,7 +3603,7 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo20(in *jlexer.Lexer, in.Consumed() } } -func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo20(out *jwriter.Writer, in MinWordSizeForTypos) { +func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo22(out *jwriter.Writer, in MinWordSizeForTypos) { out.RawByte('{') first := true _ = first @@ -3243,27 +3629,27 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo20(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v MinWordSizeForTypos) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo20(&w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo22(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v MinWordSizeForTypos) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo20(w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo22(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *MinWordSizeForTypos) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo20(&r, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo22(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *MinWordSizeForTypos) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo20(l, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo22(l, v) } -func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo21(in *jlexer.Lexer, out *KeysResults) { +func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo23(in *jlexer.Lexer, out *KeysResults) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3298,9 +3684,9 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo21(in *jlexer.Lexer, out.Results = (out.Results)[:0] } for !in.IsDelim(']') { - var v87 Key - (v87).UnmarshalEasyJSON(in) - out.Results = append(out.Results, v87) + var v93 Key + (v93).UnmarshalEasyJSON(in) + out.Results = append(out.Results, v93) in.WantComma() } in.Delim(']') @@ -3321,7 +3707,7 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo21(in *jlexer.Lexer, in.Consumed() } } -func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo21(out *jwriter.Writer, in KeysResults) { +func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo23(out *jwriter.Writer, in KeysResults) { out.RawByte('{') first := true _ = first @@ -3332,11 +3718,11 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo21(out *jwriter.Writ out.RawString("null") } else { out.RawByte('[') - for v88, v89 := range in.Results { - if v88 > 0 { + for v94, v95 := range in.Results { + if v94 > 0 { out.RawByte(',') } - (v89).MarshalEasyJSON(out) + (v95).MarshalEasyJSON(out) } out.RawByte(']') } @@ -3362,27 +3748,27 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo21(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v KeysResults) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo21(&w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo23(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v KeysResults) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo21(w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo23(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *KeysResults) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo21(&r, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo23(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *KeysResults) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo21(l, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo23(l, v) } -func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo22(in *jlexer.Lexer, out *KeysQuery) { +func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo24(in *jlexer.Lexer, out *KeysQuery) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3415,7 +3801,7 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo22(in *jlexer.Lexer, in.Consumed() } } -func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo22(out *jwriter.Writer, in KeysQuery) { +func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo24(out *jwriter.Writer, in KeysQuery) { out.RawByte('{') first := true _ = first @@ -3435,27 +3821,27 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo22(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v KeysQuery) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo22(&w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo24(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v KeysQuery) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo22(w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo24(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *KeysQuery) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo22(&r, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo24(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *KeysQuery) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo22(l, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo24(l, v) } -func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo23(in *jlexer.Lexer, out *KeyUpdate) { +func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo25(in *jlexer.Lexer, out *KeyUpdate) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3488,7 +3874,7 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo23(in *jlexer.Lexer, in.Consumed() } } -func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo23(out *jwriter.Writer, in KeyUpdate) { +func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo25(out *jwriter.Writer, in KeyUpdate) { out.RawByte('{') first := true _ = first @@ -3514,27 +3900,27 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo23(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v KeyUpdate) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo23(&w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo25(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v KeyUpdate) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo23(w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo25(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *KeyUpdate) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo23(&r, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo25(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *KeyUpdate) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo23(l, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo25(l, v) } -func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo24(in *jlexer.Lexer, out *KeyParsed) { +func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo26(in *jlexer.Lexer, out *KeyParsed) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3575,9 +3961,9 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo24(in *jlexer.Lexer, out.Actions = (out.Actions)[:0] } for !in.IsDelim(']') { - var v90 string - v90 = string(in.String()) - out.Actions = append(out.Actions, v90) + var v96 string + v96 = string(in.String()) + out.Actions = append(out.Actions, v96) in.WantComma() } in.Delim(']') @@ -3598,9 +3984,9 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo24(in *jlexer.Lexer, out.Indexes = (out.Indexes)[:0] } for !in.IsDelim(']') { - var v91 string - v91 = string(in.String()) - out.Indexes = append(out.Indexes, v91) + var v97 string + v97 = string(in.String()) + out.Indexes = append(out.Indexes, v97) in.WantComma() } in.Delim(']') @@ -3625,7 +4011,7 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo24(in *jlexer.Lexer, in.Consumed() } } -func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo24(out *jwriter.Writer, in KeyParsed) { +func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo26(out *jwriter.Writer, in KeyParsed) { out.RawByte('{') first := true _ = first @@ -3649,11 +4035,11 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo24(out *jwriter.Writ out.RawString(prefix) { out.RawByte('[') - for v92, v93 := range in.Actions { - if v92 > 0 { + for v98, v99 := range in.Actions { + if v98 > 0 { out.RawByte(',') } - out.String(string(v93)) + out.String(string(v99)) } out.RawByte(']') } @@ -3663,11 +4049,11 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo24(out *jwriter.Writ out.RawString(prefix) { out.RawByte('[') - for v94, v95 := range in.Indexes { - if v94 > 0 { + for v100, v101 := range in.Indexes { + if v100 > 0 { out.RawByte(',') } - out.String(string(v95)) + out.String(string(v101)) } out.RawByte(']') } @@ -3687,27 +4073,27 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo24(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v KeyParsed) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo24(&w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo26(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v KeyParsed) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo24(w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo26(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *KeyParsed) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo24(&r, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo26(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *KeyParsed) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo24(l, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo26(l, v) } -func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo25(in *jlexer.Lexer, out *Key) { +func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo27(in *jlexer.Lexer, out *Key) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3750,9 +4136,9 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo25(in *jlexer.Lexer, out.Actions = (out.Actions)[:0] } for !in.IsDelim(']') { - var v96 string - v96 = string(in.String()) - out.Actions = append(out.Actions, v96) + var v102 string + v102 = string(in.String()) + out.Actions = append(out.Actions, v102) in.WantComma() } in.Delim(']') @@ -3773,9 +4159,9 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo25(in *jlexer.Lexer, out.Indexes = (out.Indexes)[:0] } for !in.IsDelim(']') { - var v97 string - v97 = string(in.String()) - out.Indexes = append(out.Indexes, v97) + var v103 string + v103 = string(in.String()) + out.Indexes = append(out.Indexes, v103) in.WantComma() } in.Delim(']') @@ -3802,7 +4188,7 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo25(in *jlexer.Lexer, in.Consumed() } } -func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo25(out *jwriter.Writer, in Key) { +func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo27(out *jwriter.Writer, in Key) { out.RawByte('{') first := true _ = first @@ -3831,11 +4217,11 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo25(out *jwriter.Writ out.RawString(prefix) { out.RawByte('[') - for v98, v99 := range in.Actions { - if v98 > 0 { + for v104, v105 := range in.Actions { + if v104 > 0 { out.RawByte(',') } - out.String(string(v99)) + out.String(string(v105)) } out.RawByte(']') } @@ -3845,11 +4231,11 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo25(out *jwriter.Writ out.RawString(prefix) { out.RawByte('[') - for v100, v101 := range in.Indexes { - if v100 > 0 { + for v106, v107 := range in.Indexes { + if v106 > 0 { out.RawByte(',') } - out.String(string(v101)) + out.String(string(v107)) } out.RawByte(']') } @@ -3875,27 +4261,27 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo25(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v Key) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo25(&w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo27(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Key) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo25(w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo27(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Key) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo25(&r, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo27(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Key) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo25(l, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo27(l, v) } -func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo26(in *jlexer.Lexer, out *IndexesResults) { +func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo28(in *jlexer.Lexer, out *IndexesResults) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3930,9 +4316,9 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo26(in *jlexer.Lexer, out.Results = (out.Results)[:0] } for !in.IsDelim(']') { - var v102 Index - (v102).UnmarshalEasyJSON(in) - out.Results = append(out.Results, v102) + var v108 Index + (v108).UnmarshalEasyJSON(in) + out.Results = append(out.Results, v108) in.WantComma() } in.Delim(']') @@ -3953,7 +4339,7 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo26(in *jlexer.Lexer, in.Consumed() } } -func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo26(out *jwriter.Writer, in IndexesResults) { +func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo28(out *jwriter.Writer, in IndexesResults) { out.RawByte('{') first := true _ = first @@ -3964,11 +4350,11 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo26(out *jwriter.Writ out.RawString("null") } else { out.RawByte('[') - for v103, v104 := range in.Results { - if v103 > 0 { + for v109, v110 := range in.Results { + if v109 > 0 { out.RawByte(',') } - (v104).MarshalEasyJSON(out) + (v110).MarshalEasyJSON(out) } out.RawByte(']') } @@ -3994,27 +4380,27 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo26(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v IndexesResults) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo26(&w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo28(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v IndexesResults) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo26(w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo28(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *IndexesResults) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo26(&r, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo28(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *IndexesResults) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo26(l, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo28(l, v) } -func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo27(in *jlexer.Lexer, out *IndexesQuery) { +func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo29(in *jlexer.Lexer, out *IndexesQuery) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4047,7 +4433,7 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo27(in *jlexer.Lexer, in.Consumed() } } -func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo27(out *jwriter.Writer, in IndexesQuery) { +func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo29(out *jwriter.Writer, in IndexesQuery) { out.RawByte('{') first := true _ = first @@ -4067,27 +4453,27 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo27(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v IndexesQuery) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo27(&w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo29(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v IndexesQuery) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo27(w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo29(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *IndexesQuery) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo27(&r, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo29(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *IndexesQuery) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo27(l, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo29(l, v) } -func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo28(in *jlexer.Lexer, out *Index) { +func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo30(in *jlexer.Lexer, out *Index) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4128,7 +4514,7 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo28(in *jlexer.Lexer, in.Consumed() } } -func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo28(out *jwriter.Writer, in Index) { +func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo30(out *jwriter.Writer, in Index) { out.RawByte('{') first := true _ = first @@ -4158,27 +4544,27 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo28(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v Index) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo28(&w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo30(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Index) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo28(w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo30(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Index) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo28(&r, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo30(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Index) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo28(l, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo30(l, v) } -func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo29(in *jlexer.Lexer, out *Health) { +func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo31(in *jlexer.Lexer, out *Health) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4209,7 +4595,7 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo29(in *jlexer.Lexer, in.Consumed() } } -func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo29(out *jwriter.Writer, in Health) { +func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo31(out *jwriter.Writer, in Health) { out.RawByte('{') first := true _ = first @@ -4224,27 +4610,27 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo29(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v Health) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo29(&w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo31(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Health) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo29(w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo31(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Health) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo29(&r, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo31(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Health) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo29(l, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo31(l, v) } -func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo30(in *jlexer.Lexer, out *Faceting) { +func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo32(in *jlexer.Lexer, out *Faceting) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4275,7 +4661,7 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo30(in *jlexer.Lexer, in.Consumed() } } -func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo30(out *jwriter.Writer, in Faceting) { +func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo32(out *jwriter.Writer, in Faceting) { out.RawByte('{') first := true _ = first @@ -4290,27 +4676,27 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo30(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v Faceting) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo30(&w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo32(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Faceting) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo30(w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo32(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Faceting) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo30(&r, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo32(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Faceting) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo30(l, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo32(l, v) } -func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo31(in *jlexer.Lexer, out *FacetSearchResponse) { +func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo33(in *jlexer.Lexer, out *FacetSearchResponse) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4345,15 +4731,15 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo31(in *jlexer.Lexer, out.FacetHits = (out.FacetHits)[:0] } for !in.IsDelim(']') { - var v105 interface{} - if m, ok := v105.(easyjson.Unmarshaler); ok { + var v111 interface{} + if m, ok := v111.(easyjson.Unmarshaler); ok { m.UnmarshalEasyJSON(in) - } else if m, ok := v105.(json.Unmarshaler); ok { + } else if m, ok := v111.(json.Unmarshaler); ok { _ = m.UnmarshalJSON(in.Raw()) } else { - v105 = in.Interface() + v111 = in.Interface() } - out.FacetHits = append(out.FacetHits, v105) + out.FacetHits = append(out.FacetHits, v111) in.WantComma() } in.Delim(']') @@ -4372,7 +4758,7 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo31(in *jlexer.Lexer, in.Consumed() } } -func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo31(out *jwriter.Writer, in FacetSearchResponse) { +func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo33(out *jwriter.Writer, in FacetSearchResponse) { out.RawByte('{') first := true _ = first @@ -4383,16 +4769,16 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo31(out *jwriter.Writ out.RawString("null") } else { out.RawByte('[') - for v106, v107 := range in.FacetHits { - if v106 > 0 { + for v112, v113 := range in.FacetHits { + if v112 > 0 { out.RawByte(',') } - if m, ok := v107.(easyjson.Marshaler); ok { + if m, ok := v113.(easyjson.Marshaler); ok { m.MarshalEasyJSON(out) - } else if m, ok := v107.(json.Marshaler); ok { + } else if m, ok := v113.(json.Marshaler); ok { out.Raw(m.MarshalJSON()) } else { - out.Raw(json.Marshal(v107)) + out.Raw(json.Marshal(v113)) } } out.RawByte(']') @@ -4414,27 +4800,27 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo31(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v FacetSearchResponse) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo31(&w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo33(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v FacetSearchResponse) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo31(w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo33(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *FacetSearchResponse) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo31(&r, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo33(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *FacetSearchResponse) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo31(l, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo33(l, v) } -func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo32(in *jlexer.Lexer, out *FacetSearchRequest) { +func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo34(in *jlexer.Lexer, out *FacetSearchRequest) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4479,9 +4865,9 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo32(in *jlexer.Lexer, out.AttributesToSearchOn = (out.AttributesToSearchOn)[:0] } for !in.IsDelim(']') { - var v108 string - v108 = string(in.String()) - out.AttributesToSearchOn = append(out.AttributesToSearchOn, v108) + var v114 string + v114 = string(in.String()) + out.AttributesToSearchOn = append(out.AttributesToSearchOn, v114) in.WantComma() } in.Delim(']') @@ -4496,7 +4882,7 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo32(in *jlexer.Lexer, in.Consumed() } } -func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo32(out *jwriter.Writer, in FacetSearchRequest) { +func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo34(out *jwriter.Writer, in FacetSearchRequest) { out.RawByte('{') first := true _ = first @@ -4556,11 +4942,11 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo32(out *jwriter.Writ } { out.RawByte('[') - for v109, v110 := range in.AttributesToSearchOn { - if v109 > 0 { + for v115, v116 := range in.AttributesToSearchOn { + if v115 > 0 { out.RawByte(',') } - out.String(string(v110)) + out.String(string(v116)) } out.RawByte(']') } @@ -4571,27 +4957,27 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo32(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v FacetSearchRequest) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo32(&w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo34(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v FacetSearchRequest) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo32(w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo34(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *FacetSearchRequest) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo32(&r, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo34(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *FacetSearchRequest) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo32(l, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo34(l, v) } -func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo33(in *jlexer.Lexer, out *Embedder) { +func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo35(in *jlexer.Lexer, out *Embedder) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4630,7 +5016,7 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo33(in *jlexer.Lexer, in.Consumed() } } -func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo33(out *jwriter.Writer, in Embedder) { +func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo35(out *jwriter.Writer, in Embedder) { out.RawByte('{') first := true _ = first @@ -4665,27 +5051,27 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo33(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v Embedder) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo33(&w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo35(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Embedder) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo33(w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo35(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Embedder) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo33(&r, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo35(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Embedder) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo33(l, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo35(l, v) } -func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo34(in *jlexer.Lexer, out *DocumentsResult) { +func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo36(in *jlexer.Lexer, out *DocumentsResult) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4720,29 +5106,29 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo34(in *jlexer.Lexer, out.Results = (out.Results)[:0] } for !in.IsDelim(']') { - var v111 map[string]interface{} + var v117 map[string]interface{} if in.IsNull() { in.Skip() } else { in.Delim('{') - v111 = make(map[string]interface{}) + v117 = make(map[string]interface{}) for !in.IsDelim('}') { key := string(in.String()) in.WantColon() - var v112 interface{} - if m, ok := v112.(easyjson.Unmarshaler); ok { + var v118 interface{} + if m, ok := v118.(easyjson.Unmarshaler); ok { m.UnmarshalEasyJSON(in) - } else if m, ok := v112.(json.Unmarshaler); ok { + } else if m, ok := v118.(json.Unmarshaler); ok { _ = m.UnmarshalJSON(in.Raw()) } else { - v112 = in.Interface() + v118 = in.Interface() } - (v111)[key] = v112 + (v117)[key] = v118 in.WantComma() } in.Delim('}') } - out.Results = append(out.Results, v111) + out.Results = append(out.Results, v117) in.WantComma() } in.Delim(']') @@ -4763,7 +5149,7 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo34(in *jlexer.Lexer, in.Consumed() } } -func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo34(out *jwriter.Writer, in DocumentsResult) { +func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo36(out *jwriter.Writer, in DocumentsResult) { out.RawByte('{') first := true _ = first @@ -4774,29 +5160,29 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo34(out *jwriter.Writ out.RawString("null") } else { out.RawByte('[') - for v113, v114 := range in.Results { - if v113 > 0 { + for v119, v120 := range in.Results { + if v119 > 0 { out.RawByte(',') } - if v114 == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { + if v120 == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { out.RawString(`null`) } else { out.RawByte('{') - v115First := true - for v115Name, v115Value := range v114 { - if v115First { - v115First = false + v121First := true + for v121Name, v121Value := range v120 { + if v121First { + v121First = false } else { out.RawByte(',') } - out.String(string(v115Name)) + out.String(string(v121Name)) out.RawByte(':') - if m, ok := v115Value.(easyjson.Marshaler); ok { + if m, ok := v121Value.(easyjson.Marshaler); ok { m.MarshalEasyJSON(out) - } else if m, ok := v115Value.(json.Marshaler); ok { + } else if m, ok := v121Value.(json.Marshaler); ok { out.Raw(m.MarshalJSON()) } else { - out.Raw(json.Marshal(v115Value)) + out.Raw(json.Marshal(v121Value)) } } out.RawByte('}') @@ -4826,27 +5212,27 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo34(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v DocumentsResult) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo34(&w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo36(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v DocumentsResult) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo34(w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo36(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *DocumentsResult) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo34(&r, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo36(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *DocumentsResult) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo34(l, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo36(l, v) } -func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo35(in *jlexer.Lexer, out *DocumentsQuery) { +func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo37(in *jlexer.Lexer, out *DocumentsQuery) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4885,9 +5271,9 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo35(in *jlexer.Lexer, out.Fields = (out.Fields)[:0] } for !in.IsDelim(']') { - var v116 string - v116 = string(in.String()) - out.Fields = append(out.Fields, v116) + var v122 string + v122 = string(in.String()) + out.Fields = append(out.Fields, v122) in.WantComma() } in.Delim(']') @@ -4910,7 +5296,7 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo35(in *jlexer.Lexer, in.Consumed() } } -func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo35(out *jwriter.Writer, in DocumentsQuery) { +func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo37(out *jwriter.Writer, in DocumentsQuery) { out.RawByte('{') first := true _ = first @@ -4940,11 +5326,11 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo35(out *jwriter.Writ } { out.RawByte('[') - for v117, v118 := range in.Fields { - if v117 > 0 { + for v123, v124 := range in.Fields { + if v123 > 0 { out.RawByte(',') } - out.String(string(v118)) + out.String(string(v124)) } out.RawByte(']') } @@ -4971,27 +5357,27 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo35(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v DocumentsQuery) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo35(&w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo37(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v DocumentsQuery) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo35(w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo37(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *DocumentsQuery) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo35(&r, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo37(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *DocumentsQuery) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo35(l, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo37(l, v) } -func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo36(in *jlexer.Lexer, out *DocumentQuery) { +func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo38(in *jlexer.Lexer, out *DocumentQuery) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5026,9 +5412,9 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo36(in *jlexer.Lexer, out.Fields = (out.Fields)[:0] } for !in.IsDelim(']') { - var v119 string - v119 = string(in.String()) - out.Fields = append(out.Fields, v119) + var v125 string + v125 = string(in.String()) + out.Fields = append(out.Fields, v125) in.WantComma() } in.Delim(']') @@ -5043,7 +5429,7 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo36(in *jlexer.Lexer, in.Consumed() } } -func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo36(out *jwriter.Writer, in DocumentQuery) { +func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo38(out *jwriter.Writer, in DocumentQuery) { out.RawByte('{') first := true _ = first @@ -5053,11 +5439,11 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo36(out *jwriter.Writ out.RawString(prefix[1:]) { out.RawByte('[') - for v120, v121 := range in.Fields { - if v120 > 0 { + for v126, v127 := range in.Fields { + if v126 > 0 { out.RawByte(',') } - out.String(string(v121)) + out.String(string(v127)) } out.RawByte(']') } @@ -5068,27 +5454,27 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo36(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v DocumentQuery) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo36(&w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo38(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v DocumentQuery) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo36(w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo38(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *DocumentQuery) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo36(&r, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo38(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *DocumentQuery) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo36(l, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo38(l, v) } -func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo37(in *jlexer.Lexer, out *Details) { +func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo39(in *jlexer.Lexer, out *Details) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5133,9 +5519,9 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo37(in *jlexer.Lexer, out.RankingRules = (out.RankingRules)[:0] } for !in.IsDelim(']') { - var v122 string - v122 = string(in.String()) - out.RankingRules = append(out.RankingRules, v122) + var v128 string + v128 = string(in.String()) + out.RankingRules = append(out.RankingRules, v128) in.WantComma() } in.Delim(']') @@ -5166,9 +5552,9 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo37(in *jlexer.Lexer, out.SearchableAttributes = (out.SearchableAttributes)[:0] } for !in.IsDelim(']') { - var v123 string - v123 = string(in.String()) - out.SearchableAttributes = append(out.SearchableAttributes, v123) + var v129 string + v129 = string(in.String()) + out.SearchableAttributes = append(out.SearchableAttributes, v129) in.WantComma() } in.Delim(']') @@ -5189,9 +5575,9 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo37(in *jlexer.Lexer, out.DisplayedAttributes = (out.DisplayedAttributes)[:0] } for !in.IsDelim(']') { - var v124 string - v124 = string(in.String()) - out.DisplayedAttributes = append(out.DisplayedAttributes, v124) + var v130 string + v130 = string(in.String()) + out.DisplayedAttributes = append(out.DisplayedAttributes, v130) in.WantComma() } in.Delim(']') @@ -5212,9 +5598,9 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo37(in *jlexer.Lexer, out.StopWords = (out.StopWords)[:0] } for !in.IsDelim(']') { - var v125 string - v125 = string(in.String()) - out.StopWords = append(out.StopWords, v125) + var v131 string + v131 = string(in.String()) + out.StopWords = append(out.StopWords, v131) in.WantComma() } in.Delim(']') @@ -5232,30 +5618,30 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo37(in *jlexer.Lexer, for !in.IsDelim('}') { key := string(in.String()) in.WantColon() - var v126 []string + var v132 []string if in.IsNull() { in.Skip() - v126 = nil + v132 = nil } else { in.Delim('[') - if v126 == nil { + if v132 == nil { if !in.IsDelim(']') { - v126 = make([]string, 0, 4) + v132 = make([]string, 0, 4) } else { - v126 = []string{} + v132 = []string{} } } else { - v126 = (v126)[:0] + v132 = (v132)[:0] } for !in.IsDelim(']') { - var v127 string - v127 = string(in.String()) - v126 = append(v126, v127) + var v133 string + v133 = string(in.String()) + v132 = append(v132, v133) in.WantComma() } in.Delim(']') } - (out.Synonyms)[key] = v126 + (out.Synonyms)[key] = v132 in.WantComma() } in.Delim('}') @@ -5276,9 +5662,9 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo37(in *jlexer.Lexer, out.FilterableAttributes = (out.FilterableAttributes)[:0] } for !in.IsDelim(']') { - var v128 string - v128 = string(in.String()) - out.FilterableAttributes = append(out.FilterableAttributes, v128) + var v134 string + v134 = string(in.String()) + out.FilterableAttributes = append(out.FilterableAttributes, v134) in.WantComma() } in.Delim(']') @@ -5299,9 +5685,9 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo37(in *jlexer.Lexer, out.SortableAttributes = (out.SortableAttributes)[:0] } for !in.IsDelim(']') { - var v129 string - v129 = string(in.String()) - out.SortableAttributes = append(out.SortableAttributes, v129) + var v135 string + v135 = string(in.String()) + out.SortableAttributes = append(out.SortableAttributes, v135) in.WantComma() } in.Delim(']') @@ -5360,9 +5746,9 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo37(in *jlexer.Lexer, out.Swaps = (out.Swaps)[:0] } for !in.IsDelim(']') { - var v130 SwapIndexesParams - (v130).UnmarshalEasyJSON(in) - out.Swaps = append(out.Swaps, v130) + var v136 SwapIndexesParams + (v136).UnmarshalEasyJSON(in) + out.Swaps = append(out.Swaps, v136) in.WantComma() } in.Delim(']') @@ -5379,7 +5765,7 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo37(in *jlexer.Lexer, in.Consumed() } } -func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo37(out *jwriter.Writer, in Details) { +func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo39(out *jwriter.Writer, in Details) { out.RawByte('{') first := true _ = first @@ -5439,11 +5825,11 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo37(out *jwriter.Writ } { out.RawByte('[') - for v131, v132 := range in.RankingRules { - if v131 > 0 { + for v137, v138 := range in.RankingRules { + if v137 > 0 { out.RawByte(',') } - out.String(string(v132)) + out.String(string(v138)) } out.RawByte(']') } @@ -5468,11 +5854,11 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo37(out *jwriter.Writ } { out.RawByte('[') - for v133, v134 := range in.SearchableAttributes { - if v133 > 0 { + for v139, v140 := range in.SearchableAttributes { + if v139 > 0 { out.RawByte(',') } - out.String(string(v134)) + out.String(string(v140)) } out.RawByte(']') } @@ -5487,11 +5873,11 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo37(out *jwriter.Writ } { out.RawByte('[') - for v135, v136 := range in.DisplayedAttributes { - if v135 > 0 { + for v141, v142 := range in.DisplayedAttributes { + if v141 > 0 { out.RawByte(',') } - out.String(string(v136)) + out.String(string(v142)) } out.RawByte(']') } @@ -5506,11 +5892,11 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo37(out *jwriter.Writ } { out.RawByte('[') - for v137, v138 := range in.StopWords { - if v137 > 0 { + for v143, v144 := range in.StopWords { + if v143 > 0 { out.RawByte(',') } - out.String(string(v138)) + out.String(string(v144)) } out.RawByte(']') } @@ -5525,24 +5911,24 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo37(out *jwriter.Writ } { out.RawByte('{') - v139First := true - for v139Name, v139Value := range in.Synonyms { - if v139First { - v139First = false + v145First := true + for v145Name, v145Value := range in.Synonyms { + if v145First { + v145First = false } else { out.RawByte(',') } - out.String(string(v139Name)) + out.String(string(v145Name)) out.RawByte(':') - if v139Value == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + if v145Value == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') - for v140, v141 := range v139Value { - if v140 > 0 { + for v146, v147 := range v145Value { + if v146 > 0 { out.RawByte(',') } - out.String(string(v141)) + out.String(string(v147)) } out.RawByte(']') } @@ -5560,11 +5946,11 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo37(out *jwriter.Writ } { out.RawByte('[') - for v142, v143 := range in.FilterableAttributes { - if v142 > 0 { + for v148, v149 := range in.FilterableAttributes { + if v148 > 0 { out.RawByte(',') } - out.String(string(v143)) + out.String(string(v149)) } out.RawByte(']') } @@ -5579,11 +5965,11 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo37(out *jwriter.Writ } { out.RawByte('[') - for v144, v145 := range in.SortableAttributes { - if v144 > 0 { + for v150, v151 := range in.SortableAttributes { + if v150 > 0 { out.RawByte(',') } - out.String(string(v145)) + out.String(string(v151)) } out.RawByte(']') } @@ -5668,11 +6054,11 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo37(out *jwriter.Writ } { out.RawByte('[') - for v146, v147 := range in.Swaps { - if v146 > 0 { + for v152, v153 := range in.Swaps { + if v152 > 0 { out.RawByte(',') } - (v147).MarshalEasyJSON(out) + (v153).MarshalEasyJSON(out) } out.RawByte(']') } @@ -5693,27 +6079,27 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo37(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v Details) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo37(&w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo39(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Details) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo37(w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo39(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Details) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo37(&r, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo39(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Details) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo37(l, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo39(l, v) } -func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo38(in *jlexer.Lexer, out *DeleteTasksQuery) { +func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo40(in *jlexer.Lexer, out *DeleteTasksQuery) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5748,9 +6134,9 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo38(in *jlexer.Lexer, out.UIDS = (out.UIDS)[:0] } for !in.IsDelim(']') { - var v148 int64 - v148 = int64(in.Int64()) - out.UIDS = append(out.UIDS, v148) + var v154 int64 + v154 = int64(in.Int64()) + out.UIDS = append(out.UIDS, v154) in.WantComma() } in.Delim(']') @@ -5771,9 +6157,9 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo38(in *jlexer.Lexer, out.IndexUIDS = (out.IndexUIDS)[:0] } for !in.IsDelim(']') { - var v149 string - v149 = string(in.String()) - out.IndexUIDS = append(out.IndexUIDS, v149) + var v155 string + v155 = string(in.String()) + out.IndexUIDS = append(out.IndexUIDS, v155) in.WantComma() } in.Delim(']') @@ -5794,9 +6180,9 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo38(in *jlexer.Lexer, out.Statuses = (out.Statuses)[:0] } for !in.IsDelim(']') { - var v150 TaskStatus - v150 = TaskStatus(in.String()) - out.Statuses = append(out.Statuses, v150) + var v156 TaskStatus + v156 = TaskStatus(in.String()) + out.Statuses = append(out.Statuses, v156) in.WantComma() } in.Delim(']') @@ -5817,9 +6203,9 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo38(in *jlexer.Lexer, out.Types = (out.Types)[:0] } for !in.IsDelim(']') { - var v151 TaskType - v151 = TaskType(in.String()) - out.Types = append(out.Types, v151) + var v157 TaskType + v157 = TaskType(in.String()) + out.Types = append(out.Types, v157) in.WantComma() } in.Delim(']') @@ -5840,9 +6226,9 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo38(in *jlexer.Lexer, out.CanceledBy = (out.CanceledBy)[:0] } for !in.IsDelim(']') { - var v152 int64 - v152 = int64(in.Int64()) - out.CanceledBy = append(out.CanceledBy, v152) + var v158 int64 + v158 = int64(in.Int64()) + out.CanceledBy = append(out.CanceledBy, v158) in.WantComma() } in.Delim(']') @@ -5881,7 +6267,7 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo38(in *jlexer.Lexer, in.Consumed() } } -func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo38(out *jwriter.Writer, in DeleteTasksQuery) { +func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo40(out *jwriter.Writer, in DeleteTasksQuery) { out.RawByte('{') first := true _ = first @@ -5892,11 +6278,11 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo38(out *jwriter.Writ out.RawString("null") } else { out.RawByte('[') - for v153, v154 := range in.UIDS { - if v153 > 0 { + for v159, v160 := range in.UIDS { + if v159 > 0 { out.RawByte(',') } - out.Int64(int64(v154)) + out.Int64(int64(v160)) } out.RawByte(']') } @@ -5908,11 +6294,11 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo38(out *jwriter.Writ out.RawString("null") } else { out.RawByte('[') - for v155, v156 := range in.IndexUIDS { - if v155 > 0 { + for v161, v162 := range in.IndexUIDS { + if v161 > 0 { out.RawByte(',') } - out.String(string(v156)) + out.String(string(v162)) } out.RawByte(']') } @@ -5924,11 +6310,11 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo38(out *jwriter.Writ out.RawString("null") } else { out.RawByte('[') - for v157, v158 := range in.Statuses { - if v157 > 0 { + for v163, v164 := range in.Statuses { + if v163 > 0 { out.RawByte(',') } - out.String(string(v158)) + out.String(string(v164)) } out.RawByte(']') } @@ -5940,11 +6326,11 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo38(out *jwriter.Writ out.RawString("null") } else { out.RawByte('[') - for v159, v160 := range in.Types { - if v159 > 0 { + for v165, v166 := range in.Types { + if v165 > 0 { out.RawByte(',') } - out.String(string(v160)) + out.String(string(v166)) } out.RawByte(']') } @@ -5956,11 +6342,11 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo38(out *jwriter.Writ out.RawString("null") } else { out.RawByte('[') - for v161, v162 := range in.CanceledBy { - if v161 > 0 { + for v167, v168 := range in.CanceledBy { + if v167 > 0 { out.RawByte(',') } - out.Int64(int64(v162)) + out.Int64(int64(v168)) } out.RawByte(']') } @@ -6001,27 +6387,27 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo38(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v DeleteTasksQuery) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo38(&w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo40(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v DeleteTasksQuery) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo38(w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo40(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *DeleteTasksQuery) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo38(&r, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo40(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *DeleteTasksQuery) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo38(l, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo40(l, v) } -func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo39(in *jlexer.Lexer, out *CsvDocumentsQuery) { +func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo41(in *jlexer.Lexer, out *CsvDocumentsQuery) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -6054,7 +6440,7 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo39(in *jlexer.Lexer, in.Consumed() } } -func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo39(out *jwriter.Writer, in CsvDocumentsQuery) { +func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo41(out *jwriter.Writer, in CsvDocumentsQuery) { out.RawByte('{') first := true _ = first @@ -6080,27 +6466,27 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo39(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v CsvDocumentsQuery) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo39(&w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo41(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CsvDocumentsQuery) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo39(w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo41(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CsvDocumentsQuery) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo39(&r, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo41(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CsvDocumentsQuery) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo39(l, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo41(l, v) } -func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo40(in *jlexer.Lexer, out *CreateIndexRequest) { +func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo42(in *jlexer.Lexer, out *CreateIndexRequest) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -6133,7 +6519,7 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo40(in *jlexer.Lexer, in.Consumed() } } -func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo40(out *jwriter.Writer, in CreateIndexRequest) { +func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo42(out *jwriter.Writer, in CreateIndexRequest) { out.RawByte('{') first := true _ = first @@ -6159,27 +6545,27 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo40(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v CreateIndexRequest) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo40(&w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo42(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CreateIndexRequest) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo40(w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo42(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CreateIndexRequest) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo40(&r, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo42(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CreateIndexRequest) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo40(l, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo42(l, v) } -func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo41(in *jlexer.Lexer, out *Client) { +func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo43(in *jlexer.Lexer, out *Client) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -6208,7 +6594,7 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo41(in *jlexer.Lexer, in.Consumed() } } -func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo41(out *jwriter.Writer, in Client) { +func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo43(out *jwriter.Writer, in Client) { out.RawByte('{') first := true _ = first @@ -6218,27 +6604,27 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo41(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v Client) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo41(&w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo43(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Client) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo41(w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo43(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Client) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo41(&r, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo43(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Client) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo41(l, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo43(l, v) } -func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo42(in *jlexer.Lexer, out *CancelTasksQuery) { +func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo44(in *jlexer.Lexer, out *CancelTasksQuery) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -6273,9 +6659,9 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo42(in *jlexer.Lexer, out.UIDS = (out.UIDS)[:0] } for !in.IsDelim(']') { - var v163 int64 - v163 = int64(in.Int64()) - out.UIDS = append(out.UIDS, v163) + var v169 int64 + v169 = int64(in.Int64()) + out.UIDS = append(out.UIDS, v169) in.WantComma() } in.Delim(']') @@ -6296,9 +6682,9 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo42(in *jlexer.Lexer, out.IndexUIDS = (out.IndexUIDS)[:0] } for !in.IsDelim(']') { - var v164 string - v164 = string(in.String()) - out.IndexUIDS = append(out.IndexUIDS, v164) + var v170 string + v170 = string(in.String()) + out.IndexUIDS = append(out.IndexUIDS, v170) in.WantComma() } in.Delim(']') @@ -6319,9 +6705,9 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo42(in *jlexer.Lexer, out.Statuses = (out.Statuses)[:0] } for !in.IsDelim(']') { - var v165 TaskStatus - v165 = TaskStatus(in.String()) - out.Statuses = append(out.Statuses, v165) + var v171 TaskStatus + v171 = TaskStatus(in.String()) + out.Statuses = append(out.Statuses, v171) in.WantComma() } in.Delim(']') @@ -6342,9 +6728,9 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo42(in *jlexer.Lexer, out.Types = (out.Types)[:0] } for !in.IsDelim(']') { - var v166 TaskType - v166 = TaskType(in.String()) - out.Types = append(out.Types, v166) + var v172 TaskType + v172 = TaskType(in.String()) + out.Types = append(out.Types, v172) in.WantComma() } in.Delim(']') @@ -6375,7 +6761,7 @@ func easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo42(in *jlexer.Lexer, in.Consumed() } } -func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo42(out *jwriter.Writer, in CancelTasksQuery) { +func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo44(out *jwriter.Writer, in CancelTasksQuery) { out.RawByte('{') first := true _ = first @@ -6386,11 +6772,11 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo42(out *jwriter.Writ out.RawString("null") } else { out.RawByte('[') - for v167, v168 := range in.UIDS { - if v167 > 0 { + for v173, v174 := range in.UIDS { + if v173 > 0 { out.RawByte(',') } - out.Int64(int64(v168)) + out.Int64(int64(v174)) } out.RawByte(']') } @@ -6402,11 +6788,11 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo42(out *jwriter.Writ out.RawString("null") } else { out.RawByte('[') - for v169, v170 := range in.IndexUIDS { - if v169 > 0 { + for v175, v176 := range in.IndexUIDS { + if v175 > 0 { out.RawByte(',') } - out.String(string(v170)) + out.String(string(v176)) } out.RawByte(']') } @@ -6418,11 +6804,11 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo42(out *jwriter.Writ out.RawString("null") } else { out.RawByte('[') - for v171, v172 := range in.Statuses { - if v171 > 0 { + for v177, v178 := range in.Statuses { + if v177 > 0 { out.RawByte(',') } - out.String(string(v172)) + out.String(string(v178)) } out.RawByte(']') } @@ -6434,11 +6820,11 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo42(out *jwriter.Writ out.RawString("null") } else { out.RawByte('[') - for v173, v174 := range in.Types { - if v173 > 0 { + for v179, v180 := range in.Types { + if v179 > 0 { out.RawByte(',') } - out.String(string(v174)) + out.String(string(v180)) } out.RawByte(']') } @@ -6469,23 +6855,23 @@ func easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo42(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v CancelTasksQuery) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo42(&w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo44(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CancelTasksQuery) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo42(w, v) + easyjson6601e8cdEncodeGithubComMeilisearchMeilisearchGo44(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CancelTasksQuery) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo42(&r, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo44(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CancelTasksQuery) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo42(l, v) + easyjson6601e8cdDecodeGithubComMeilisearchMeilisearchGo44(l, v) }