You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, I'm new to this library so forgive me If I've missed something but the syntax for querying multiple fields is:
query:=elastic.NewQueryStringQuery("example AND search")
query=query.Field("title")
query=query.Field("description")
query=query.Field("tags")
I imagine this syntax could get quite large/repetitive with a large number of query fields, so could would It make sense to have something like Fields that accepts a multiple strings:
query:=elastic.NewQueryStringQuery("example AND search")
query=query.Fields("title", "description", "tags")
The text was updated successfully, but these errors were encountered:
Hey. It makes sense to change the Field(field string) methods to a signature like Field(field ...string) which allows all of the above without a breaking change (in terms of recompilation at least).
Hey, I'm new to this library so forgive me If I've missed something but the syntax for querying multiple fields is:
I imagine this syntax could get quite large/repetitive with a large number of query fields, so could would It make sense to have something like
Fields
that accepts a multiple strings:The text was updated successfully, but these errors were encountered: