[U] public void FieldsDebug() { Nest.Fields fromString = "field1, field2"; Nest.Fields multiple = Infer.Field("somefield").And <Project>(p => p.Description, 12); DebugFor(fromString).Should().Be($"Count: 2 [(1: field1),(2: field2)]"); DebugFor(multiple).Should().Be($"Count: 2 [(1: somefield),(2: p => p.Description^12 typeof: {nameof(Project)})]"); }
/// <inheritdoc cref="ICsvProcessor.TargetFields" /> public CsvProcessorDescriptor <T> TargetFields(Fields targetFields) => Assign(targetFields, (a, v) => a.TargetFields = v);
public QueryStringQueryDescriptor <T> Fields(Fields fields) => Assign(a => a.Fields = fields);
public SearchDescriptor <T> StoredFields(Fields fields) => Assign(a => a.StoredFields = fields);
/// <inheritdoc cref="ISearchRequest.StoredFields" /> public SearchDescriptor <TInferDocument> StoredFields(Fields fields) => Assign(fields, (a, v) => a.StoredFields = v);
/// <inheritdoc cref="ISearchRequest.DocValueFields" /> public SearchDescriptor <TInferDocument> DocValueFields(Fields fields) => Assign(fields, (a, v) => a.DocValueFields = v);
public MoreLikeThisQueryDescriptor <T> Fields(Fields fields) => Assign(fields, (a, v) => a.Fields = v);
/// <inheritdoc /> public AnalysisConfigDescriptor <T> Influencers(Fields fields) => Assign(fields, (a, v) => a.Influencers = v);
/// <inheritdoc cref="IRemoveProcessor.Field" /> public RemoveProcessorDescriptor <T> Field(Fields fields) => Assign(fields, (a, v) => a.Field = v);
public UpdateDescriptor <TDocument, TPartialDocument> Fields(Fields fields) => Assign(a => a.RequestParameters.AddQueryString("fields", fields));
public MoreLikeThisQueryDescriptor <T> Fields(Fields fields) => Assign(a => a.Fields = fields);
public InnerHitsDescriptor <T> DocValueFields(Fields fields) => Assign(a => a.DocValueFields = fields);
public MultiMatchQueryDescriptor <T> Fields(Fields fields) => Assign(a => a.Fields = fields);