Interface IHitMetadata<TDocument>
Metadata about a hit matching a query
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public interface IHitMetadata<out TDocument> where TDocument : class
Type Parameters
Name | Description |
---|---|
TDocument | The type of the source document |
Properties
| Edit this page View SourceId
The id of the hit
Declaration
[DataMember(Name = "_id")]
string Id { get; }
Property Value
Type | Description |
---|---|
string |
Index
The index in which the hit resides
Declaration
[DataMember(Name = "_index")]
string Index { get; }
Property Value
Type | Description |
---|---|
string |
PrimaryTerm
The primary term of the hit
Declaration
[DataMember(Name = "_primary_term")]
long? PrimaryTerm { get; }
Property Value
Type | Description |
---|---|
long? |
Routing
The routing value for the hit
Declaration
[DataMember(Name = "_routing")]
string Routing { get; }
Property Value
Type | Description |
---|---|
string |
SequenceNumber
The sequence number for this hit
Declaration
[DataMember(Name = "_seq_no")]
long? SequenceNumber { get; }
Property Value
Type | Description |
---|---|
long? |
Source
The source document for the hit
Declaration
[DataMember(Name = "_source")]
TDocument Source { get; }
Property Value
Type | Description |
---|---|
TDocument |
Type
The type of hit
Declaration
[DataMember(Name = "_type")]
string Type { get; }
Property Value
Type | Description |
---|---|
string |
Version
The version of the hit
Declaration
[DataMember(Name = "_version")]
long Version { get; }
Property Value
Type | Description |
---|---|
long |