/// <summary> /// Creates a clone of this clause with the specified list of fields appended. /// </summary> /// <param name="fields">The list of fields to append.</param> /// <returns>the new clause.</returns> public Clause WithFields(params string[] fields) => new Clause(Term, Boost, EditDistance, UsePipeline, Wildcard, Presence, Fields.Concat(fields).ToArray());
/// <summary> /// Creates a clone of this clause with the specified list of fields appended. /// </summary> /// <param name="fields">The list of fields to append.</param> /// <returns>the new clause.</returns> public Clause WithFields(IEnumerable <string> fields) => new Clause(Term, Boost, EditDistance, UsePipeline, Wildcard, Presence, Fields.Concat(fields).ToArray());