diff --git a/src/Our.Umbraco.Look/Models/TagQuery.cs b/src/Our.Umbraco.Look/Models/TagQuery.cs index 7963c67..48e14d6 100644 --- a/src/Our.Umbraco.Look/Models/TagQuery.cs +++ b/src/Our.Umbraco.Look/Models/TagQuery.cs @@ -15,7 +15,22 @@ public class TagQuery /// when null, facets are not calculated, but when string[], each string value represents the tag group field to facet on, the empty string or whitespace = empty group /// The count value for a returned tag indicates how may results would be expected should that tag be added into the AllTags collection of this query /// - public string[] GetFacets { get; set; } = null; + public string[] GetFacets { get; set; } + + /// + /// Create a new TagQuery + /// + /// All of these tags + /// Any of these tags + /// None of these tags + /// string array of tag groups to return facet counts for + public TagQuery(LookTag[] all = null, LookTag[] any = null, LookTag[] not = null, string[] getFacets = null) + { + this.All = all; + this.Any = any; + this.Not = not; + this.GetFacets = getFacets; + } /// /// Helper to simplify the construction of LookTag array, by being able to supply a raw collection of tag strings