diff --git a/pkg/es/search_queries_query_string.go b/pkg/es/search_queries_query_string.go index af328bc..6150e0f 100644 --- a/pkg/es/search_queries_query_string.go +++ b/pkg/es/search_queries_query_string.go @@ -66,6 +66,12 @@ func (q *QueryStringQuery) Field(field string) *QueryStringQuery { return q } +// Field adds a field to run the query string against. +func (q *QueryStringQuery) Fields(fields ...string) *QueryStringQuery { + q.fields = append(q.fields, fields...) + return q +} + // Type sets how multiple fields should be combined to build textual part queries, // e.g. "best_fields". func (q *QueryStringQuery) Type(typ string) *QueryStringQuery {