/// <summary> /// Creates an indices query. /// </summary> /// <param name="indices">The indices to run the query on.</param> /// <param name="matchingFilter">The filter to run on the specified indices.</param> /// <param name="nonMatchingFilterType">The type of filter to run against non specified indices. Options are none or all.</param> public IndicesFilter(IEnumerable<string> indices, IFilter matchingFilter, NonMatchingTypeEnum nonMatchingFilterType) :this(indices, matchingFilter) { if (nonMatchingFilterType == null) throw new ArgumentNullException("nonMatchingFilterType", "IndicesFilter expects a nonMatchingFilterType."); NonMatchingFilterType = nonMatchingFilterType; }
/// <summary> /// Creates an indices query. /// </summary> /// <param name="indices">The indices to run the query on.</param> /// <param name="query">The query to run on the specified indices.</param> /// <param name="nonMatchingQueryType">The type of query to run against non specified indices. Options are none or all.</param> public IndicesQuery(IEnumerable<string> indices, IQuery matchingQuery, NonMatchingTypeEnum nonMatchingQueryType) :this(indices, matchingQuery) { if (nonMatchingQueryType == null) throw new ArgumentNullException("nonMatchingQueryType", "IndicesQuery expects a nonMatchingQueryType."); NonMatchingQueryType = nonMatchingQueryType; }