|
|
@ -66,6 +66,12 @@ func (q *QueryStringQuery) Field(field string) *QueryStringQuery { |
|
|
|
return q |
|
|
|
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,
|
|
|
|
// Type sets how multiple fields should be combined to build textual part queries,
|
|
|
|
// e.g. "best_fields".
|
|
|
|
// e.g. "best_fields".
|
|
|
|
func (q *QueryStringQuery) Type(typ string) *QueryStringQuery { |
|
|
|
func (q *QueryStringQuery) Type(typ string) *QueryStringQuery { |
|
|
|