//hide
        [U] public void EqualsValidation()
        {
            var relation      = (RelationName)"projects";
            var relationOther = (RelationName)"p";

            relation.Should().NotBe(relationOther);
            relation.Should().Be("projects");
            relation.Should().Be((RelationName)"projects");

            Relation <Project>().Should().Be(Relation <Project>());
            Relation <Project>().Should().NotBe(Relation <Developer>());


            Nest.Types types1 = "foo,bar";
            Nest.Types types2 = "bar,foo";
            types1.Should().Be(types2);
            (types1 == types2).Should().BeTrue();
        }
Пример #2
0
 /// <inheritdoc/>
 public Task <IExistsResponse> TypeExistsAsync(Indices indices, Types types, Func <TypeExistsDescriptor, ITypeExistsRequest> selector = null, CancellationToken cancellationToken = default(CancellationToken)) =>
 this.TypeExistsAsync(selector.InvokeOrDefault(new TypeExistsDescriptor(indices, types)), cancellationToken);
Пример #3
0
 /// <inheritdoc/>
 public IExistsResponse TypeExists(Indices indices, Types types, Func <TypeExistsDescriptor, ITypeExistsRequest> selector = null) =>
 this.TypeExists(selector.InvokeOrDefault(new TypeExistsDescriptor(indices, types)));
Пример #4
0
 /// <inheritdoc cref="IReindexSource.Type"/>
 public ReindexSourceDescriptor Type(Types types) => Assign(a => a.Type = types);
Пример #5
0
 public ReindexRequest(IndexName from, IndexName to, Types type)
 {
     this.To   = to;
     this.From = from;
     this.Type = type;
 }
Пример #6
0
 /// <summary>
 /// Specify the document types to reindex. By default, will be <typeparamref name="T"/>
 /// </summary>
 public ReindexDescriptor <T> Type(Types type) => Assign(a => a.Type = type);
 /// <inheritdoc />
 public PutDatafeedDescriptor <T> Types(Types types) => Assign(a => a.Types = types);