/// <summary> /// Appends a new OR query for matching one of the specified <paramref name="contentTypes"/>. /// </summary> /// <typeparam name="T">The type of the query list.</typeparam> /// <param name="list">The query list.</param> /// <param name="contentTypes">A list of content types.</param> /// <returns><paramref name="list"/> - useful for method chaining.</returns> public static T AppendNodeTypeAliases <T>(this T list, ContentTypeList contentTypes) where T : QueryList { if (contentTypes == null || contentTypes.Count == 0) { return(list); } list?.Add($"{ExamineConstants.Fields.NodeTypeAlias}:({string.Join(" ", contentTypes.ToArray())})"); return(list); }
public OffsetSearchOptionsBase() { ContentTypes = new ContentTypeList(); }