Пример #1
0
 /// <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());
Пример #2
0
 /// <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());