NEST by Elastic and contributors

<PackageReference Include="NEST" Version="5.4.0" />

.NET API 4,554,240 bytes

 IndexDescriptor<TDocument>

descriptor for Index https://www.elastic.co/guide/en/elasticsearch/reference/5.x/docs-index_.html
public IndexDescriptor(IndexName index, TypeName type)

/{index}/{type}

public IndexDescriptor(DocumentPath<TDocument> document)

/{index}/{type}

public IndexDescriptor<TDocument> ErrorTrace(bool error_trace = true)

Include the stack trace of returned errors.

public IndexDescriptor<TDocument> FilterPath(string[] filter_path)

A comma-separated list of filters used to reduce the respone.

public IndexDescriptor<TDocument> Human(bool human = true)

Return human readable values for statistics.

public IndexDescriptor<TDocument> Id(Id id)

Document ID

public IndexDescriptor<TDocument> Index(IndexName index)

The name of the index

public IndexDescriptor<TDocument> Index<TOther>()

a shortcut into calling Index(typeof(TOther))

public IndexDescriptor<TDocument> OpType(OpType op_type)

Explicit operation type

public IndexDescriptor<TDocument> Parent(string parent)

ID of the parent document

public IndexDescriptor<TDocument> Pipeline(string pipeline)

The pipeline id to preprocess incoming documents with

public IndexDescriptor<TDocument> Pretty(bool pretty = true)

Pretty format the returned JSON response.

public IndexDescriptor<TDocument> Refresh(Refresh refresh)

If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` (the default) then do nothing with refreshes.

public IndexDescriptor<TDocument> Routing(string routing)

Specific routing value

public IndexDescriptor<TDocument> Source(string source)

The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests.

public IndexDescriptor<TDocument> Timeout(Time timeout)

Explicit operation timeout

public IndexDescriptor<TDocument> Timestamp(Time timestamp)

Explicit timestamp for the document

public IndexDescriptor<TDocument> Ttl(Time ttl)

Expiration time for the document

public IndexDescriptor<TDocument> Type(TypeName type)

The type of the document

public IndexDescriptor<TDocument> Type<TOther>()

a shortcut into calling Type(typeof(TOther))

public IndexDescriptor<TDocument> Version(long version)

Explicit version number for concurrency control

public IndexDescriptor<TDocument> VersionType(VersionType version_type)

Specific version type

public IndexDescriptor<TDocument> WaitForActiveShards(string wait_for_active_shards)

Sets the number of shard copies that must be active before proceeding with the index operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)