olivere / elastic

Deprecated: Use the official Elasticsearch client for Go at https://github.com/elastic/go-elasticsearch
https://olivere.github.io/elastic/
MIT License
7.42k stars 1.15k forks source link

EasyJson compatibility issue #1683

Open shivamnutanix opened 9 months ago

shivamnutanix commented 9 months ago

Please use the following questions as a guideline to help me answer your issue/question without further inquiry. Thank you.

Error message indicates a compatibility issue between the elastic/v7 package and the easysafe dependency I am using, and I on latest stable easyjson.



/root/.go/pkg/mod/github.com/olivere/elastic/v7@v7.0.32/bulk_create_request_easyjson.go:31:13: in.UnsafeFieldName undefined (type *jlexer.Lexer has no field or method UnsafeFieldName)

/root/.go/pkg/mod/github.com/olivere/elastic/v7@v7.0.32/bulk_delete_request_easyjson.go:31:13: in.UnsafeFieldName undefined (type *jlexer.Lexer has no field or method UnsafeFieldName)

/root/.go/pkg/mod/github.com/olivere/elastic/v7@v7.0.32/bulk_index_request_easyjson.go:31:13: in.UnsafeFieldName undefined (type *jlexer.Lexer has no field or method UnsafeFieldName)

/root/.go/pkg/mod/github.com/olivere/elastic/v7@v7.0.32/bulk_update_request_easyjson.go:31:13: in.UnsafeFieldName undefined (type *jlexer.Lexer has no field or method UnsafeFieldName)

/root/.go/pkg/mod/github.com/olivere/elastic/v7@v7.0.32/bulk_update_request_easyjson.go:230:13: in.UnsafeFieldName undefined (type *jlexer.Lexer has no field or method UnsafeFieldName)```

### Which version of Elastic are you using?

[*] elastic.v7 (for Elasticsearch 7.x)
[ ] elastic.v6 (for Elasticsearch 6.x)
[ ] elastic.v5 (for Elasticsearch 5.x)
[ ] elastic.v3 (for Elasticsearch 2.x)
[ ] elastic.v2 (for Elasticsearch 1.x)

### Please describe the expected behavior
Build to work

### Please describe the actual behavior

### Any steps to reproduce the behavior?