[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)})]");
        }
Пример #2
0
 /// <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);
Пример #4
0
 public SearchDescriptor <T> StoredFields(Fields fields) => Assign(a => a.StoredFields = fields);
Пример #5
0
 /// <inheritdoc cref="ISearchRequest.StoredFields" />
 public SearchDescriptor <TInferDocument> StoredFields(Fields fields) => Assign(fields, (a, v) => a.StoredFields = v);
Пример #6
0
 /// <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);
Пример #8
0
 /// <inheritdoc />
 public AnalysisConfigDescriptor <T> Influencers(Fields fields) => Assign(fields, (a, v) => a.Influencers = v);
Пример #9
0
 /// <inheritdoc cref="IRemoveProcessor.Field" />
 public RemoveProcessorDescriptor <T> Field(Fields fields) => Assign(fields, (a, v) => a.Field = v);
Пример #10
0
 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);
Пример #12
0
 public InnerHitsDescriptor <T> DocValueFields(Fields fields) => Assign(a => a.DocValueFields = fields);
Пример #13
0
 public MultiMatchQueryDescriptor <T> Fields(Fields fields) => Assign(a => a.Fields = fields);