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

Method MaxDeterminizedState

search_queries_query_string.go:121–124  ·  view source on GitHub ↗

MaxDeterminizedState protects against too-difficult regular expression queries.

(maxDeterminizedStates int)

Source from the content-addressed store, hash-verified

119
120// MaxDeterminizedState protects against too-difficult regular expression queries.
121func (q *QueryStringQuery) MaxDeterminizedState(maxDeterminizedStates int) *QueryStringQuery {
122 q.maxDeterminizedStates = &maxDeterminizedStates
123 return q
124}
125
126// AllowLeadingWildcard specifies whether leading wildcards should be allowed
127// or not (defaults to true).

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected