package
1.49.2
Repository: https://github.com/onsdigital/dp-search-api.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

FormatMultiQuery minifies and reformats an elasticsearch MultiQuery.
LegacyFormatMultiQuery minifies and reformats an elasticsearch MultiQuery.
No description provided by the author
No description provided by the author
NewQueryBuilder loads the elastic search templates and returns a query builder instance.
No description provided by the author
NewReleaseQueryParamValidator creates a validator to validate parameters for the Release endpoint.
NewSearchQueryParamValidator creates a validator to validate parameters for the Search endpoint.
No description provided by the author
ParseQuery : escapes double quotes (") in the given query q, so that ElasticSearch will accept them looks for a prefix in the given query q (which can be used to determine the type of query passed to ElasticSearch) returns the escaped query with the prefix removed (if any was prefixed), together with the name of the template to use to generate the ElasticSearch query.
No description provided by the author
No description provided by the author
SetupSearch loads templates for use by the search handler and should be done only once.
SetupV710Count loads v710 templates for use by the search handler and should be done only once.
SetupV710Search loads v710 templates for use by the search handler and should be done only once.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

AggregationFields are the elasticsearch keys for which the aggregations will be done.
Builder represents an instance of a query builder.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SearchRequest holds the values provided by a request against Search API The values are used to build the elasticsearch query using the corresponding template/s.

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
ParamValidator is a map of parameters to their corresponding validator func.
No description provided by the author
No description provided by the author