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

Method QueryName

search_queries_script_score.go:57–60  ·  view source on GitHub ↗

QueryName sets the query name for the filter.

(queryName string)

Source from the content-addressed store, hash-verified

55
56// QueryName sets the query name for the filter.
57func (q *ScriptScoreQuery) QueryName(queryName string) *ScriptScoreQuery {
58 q.queryName = queryName
59 return q
60}
61
62// Source returns JSON for the function score query.
63func (q *ScriptScoreQuery) Source() (interface{}, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected