MCPcopy Create free account
hub / github.com/olivere/elastic / UseEasyJSON

Method UseEasyJSON

bulk_create_request.go:72–75  ·  view source on GitHub ↗

UseEasyJSON is an experimental setting that enables serialization with github.com/mailru/easyjson, which should in faster serialization time and less allocations, but removed compatibility with encoding/json, usage of unsafe etc. See https://github.com/mailru/easyjson#issues-notes-and-limitations fo

(enable bool)

Source from the content-addressed store, hash-verified

70// usage of unsafe etc. See https://github.com/mailru/easyjson#issues-notes-and-limitations
71// for details. This setting is disabled by default.
72func (r *BulkCreateRequest) UseEasyJSON(enable bool) *BulkCreateRequest {
73 r.useEasyJSON = enable
74 return r
75}
76
77// Index specifies the Elasticsearch index to use for this create request.
78// If unspecified, the index set on the BulkService will be used.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected