Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions protos/schemas/search.proto
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,15 @@ message HitXScore {
}
}

// Content type of the source document
enum SourceContentType {
SOURCE_CONTENT_TYPE_UNSPECIFIED = 0;
SOURCE_CONTENT_TYPE_JSON = 1;
SOURCE_CONTENT_TYPE_SMILE = 2;
SOURCE_CONTENT_TYPE_CBOR = 3;
SOURCE_CONTENT_TYPE_YAML = 4;
}

message HitsMetadataHitsInner {

optional string x_type = 1;
Expand Down Expand Up @@ -427,6 +436,9 @@ message HitsMetadataHitsInner {
// [optional] Contains metadata values for the documents.
// TODO: No field named "meta_fields" in the spec. Needs adaptor_unnest.
optional ObjectMap meta_fields = 21;

// [optional] Content type of the x_source document
optional SourceContentType x_source_content_type = 22;
}

message ClusterStatistics {
Expand Down
Loading