Skip to content

Commit

Permalink
feat(compass): add search flags
Browse files Browse the repository at this point in the history
  • Loading branch information
Chief-Rishab committed Sep 27, 2023
1 parent 17305c2 commit 59013fe
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions raystack/compass/v1beta1/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,25 @@ message SearchAssetsRequest {
},
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "offset parameter defines the offset from the first result you want to fetch"}
];

SearchFlags flags = 8 [ (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
description: "flags to control the search behavior (e.g. enable highlight, disable fuzzy, etc)"
}];
}

message SearchFlags {
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
json_schema: {
title: "SearchFlags"
}
};
bool disable_fuzzy = 2 [ (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
description: "disable fuzzy search."}
];

bool enable_highlight = 3 [ (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
description: "enable highlight in search response."
}];
}

message SearchAssetsResponse {
Expand Down

0 comments on commit 59013fe

Please sign in to comment.