Class CreatePitDescriptor
Descriptor for CreatePit
https://opensearch.org/docs/latest/search-plugins/point-in-time-api/#create-a-pit
Inheritance
Inherited Members
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public class CreatePitDescriptor : RequestDescriptorBase<CreatePitDescriptor, CreatePitRequestParameters, ICreatePitRequest>, IDescriptor, ICreatePitRequest, IRequest<CreatePitRequestParameters>, IRequest
Constructors
| Edit this page View SourceCreatePitDescriptor()
Used for serialization purposes, making sure we have a parameterless constructor
Declaration
protected CreatePitDescriptor()
CreatePitDescriptor(Indices)
/{index}/_search/point_in_time
Declaration
public CreatePitDescriptor(Indices index)
Parameters
Type | Name | Description |
---|---|---|
Indices | index | this parameter is required |
Methods
| Edit this page View SourceAllIndices()
A shortcut into calling Index(Indices.All)
Declaration
public CreatePitDescriptor AllIndices()
Returns
Type | Description |
---|---|
CreatePitDescriptor |
AllowPartialPitCreation(bool?)
Allow if point in time can be created with partial failures.
Declaration
public CreatePitDescriptor AllowPartialPitCreation(bool? allowpartialpitcreation = true)
Parameters
Type | Name | Description |
---|---|---|
bool? | allowpartialpitcreation |
Returns
Type | Description |
---|---|
CreatePitDescriptor |
ExpandWildcards(ExpandWildcards?)
Whether to expand wildcard expression to concrete indexes that are open, closed or both.
Declaration
public CreatePitDescriptor ExpandWildcards(ExpandWildcards? expandwildcards)
Parameters
Type | Name | Description |
---|---|---|
ExpandWildcards? | expandwildcards |
Returns
Type | Description |
---|---|
CreatePitDescriptor |
Index(Indices)
Comma-separated list of indexes; use the special string _all
or Indices.All to perform the operation on all indexes.
Declaration
public CreatePitDescriptor Index(Indices index)
Parameters
Type | Name | Description |
---|---|---|
Indices | index |
Returns
Type | Description |
---|---|
CreatePitDescriptor |
Index<TOther>()
a shortcut into calling Index(typeof(TOther))
Declaration
public CreatePitDescriptor Index<TOther>() where TOther : class
Returns
Type | Description |
---|---|
CreatePitDescriptor |
Type Parameters
Name | Description |
---|---|
TOther |
KeepAlive(Time)
Specify the keep alive for point in time.
Declaration
public CreatePitDescriptor KeepAlive(Time keepalive)
Parameters
Type | Name | Description |
---|---|---|
Time | keepalive |
Returns
Type | Description |
---|---|
CreatePitDescriptor |
Preference(string)
Specify the node or shard the operation should be performed on.
Declaration
public CreatePitDescriptor Preference(string preference)
Parameters
Type | Name | Description |
---|---|---|
string | preference |
Returns
Type | Description |
---|---|
CreatePitDescriptor |
Routing(Routing)
A document is routed to a particular shard in an index using the following formula
shard_num = hash(_routing) % num_primary_shards
OpenSearch will use the document id if not provided.
For requests that are constructed from/for a document OpenSearch.Client will automatically infer the routing key if that document has a JoinField or a routing mapping on for its type exists on ConnectionSettings
Declaration
public CreatePitDescriptor Routing(Routing routing)
Parameters
Type | Name | Description |
---|---|---|
Routing | routing |
Returns
Type | Description |
---|---|
CreatePitDescriptor |