@@ -4,6 +4,7 @@ package qdrant;
44option csharp_namespace = "Qdrant.Client.Grpc" ;
55
66import "collections.proto" ;
7+ import "common.proto" ;
78import "google/protobuf/timestamp.proto" ;
89import "json_with_int.proto" ;
910
@@ -31,17 +32,6 @@ message ReadConsistency {
3132 }
3233}
3334
34- // ---------------------------------------------
35- // ------------- Point Id Requests -------------
36- // ---------------------------------------------
37-
38- message PointId {
39- oneof point_id_options {
40- uint64 num = 1 ; // Numerical ID of the point
41- string uuid = 2 ; // UUID
42- }
43- }
44-
4535message SparseIndices {
4636 repeated uint32 data = 1 ;
4737}
@@ -1075,133 +1065,6 @@ message SearchMatrixOffsetsResponse {
10751065 optional Usage usage = 3 ;
10761066}
10771067
1078- // ---------------------------------------------
1079- // ------------- Filter Conditions -------------
1080- // ---------------------------------------------
1081-
1082- message Filter {
1083- repeated Condition should = 1 ; // At least one of those conditions should match
1084- repeated Condition must = 2 ; // All conditions must match
1085- repeated Condition must_not = 3 ; // All conditions must NOT match
1086- optional MinShould min_should = 4 ; // At least minimum amount of given conditions should match
1087- }
1088-
1089- message MinShould {
1090- repeated Condition conditions = 1 ;
1091- uint64 min_count = 2 ;
1092- }
1093-
1094- message Condition {
1095- oneof condition_one_of {
1096- FieldCondition field = 1 ;
1097- IsEmptyCondition is_empty = 2 ;
1098- HasIdCondition has_id = 3 ;
1099- Filter filter = 4 ;
1100- IsNullCondition is_null = 5 ;
1101- NestedCondition nested = 6 ;
1102- HasVectorCondition has_vector = 7 ;
1103- }
1104- }
1105-
1106- message IsEmptyCondition {
1107- string key = 1 ;
1108- }
1109-
1110- message IsNullCondition {
1111- string key = 1 ;
1112- }
1113-
1114- message HasIdCondition {
1115- repeated PointId has_id = 1 ;
1116- }
1117-
1118- message HasVectorCondition {
1119- string has_vector = 1 ;
1120- }
1121-
1122- message NestedCondition {
1123- string key = 1 ; // Path to nested object
1124- Filter filter = 2 ; // Filter condition
1125- }
1126-
1127- message FieldCondition {
1128- string key = 1 ;
1129- Match match = 2 ; // Check if point has field with a given value
1130- Range range = 3 ; // Check if points value lies in a given range
1131- GeoBoundingBox geo_bounding_box = 4 ; // Check if points geolocation lies in a given area
1132- GeoRadius geo_radius = 5 ; // Check if geo point is within a given radius
1133- ValuesCount values_count = 6 ; // Check number of values for a specific field
1134- GeoPolygon geo_polygon = 7 ; // Check if geo point is within a given polygon
1135- DatetimeRange datetime_range = 8 ; // Check if datetime is within a given range
1136- optional bool is_empty = 9 ; // Check if field is empty
1137- optional bool is_null = 10 ; // Check if field is null
1138- }
1139-
1140- message Match {
1141- oneof match_value {
1142- string keyword = 1 ; // Match string keyword
1143- int64 integer = 2 ; // Match integer
1144- bool boolean = 3 ; // Match boolean
1145- string text = 4 ; // Match text
1146- RepeatedStrings keywords = 5 ; // Match multiple keywords
1147- RepeatedIntegers integers = 6 ; // Match multiple integers
1148- RepeatedIntegers except_integers = 7 ; // Match any other value except those integers
1149- RepeatedStrings except_keywords = 8 ; // Match any other value except those keywords
1150- string phrase = 9 ; // Match phrase text
1151- string text_any = 10 ; // Match any word in the text
1152- }
1153- }
1154-
1155- message RepeatedStrings {
1156- repeated string strings = 1 ;
1157- }
1158-
1159- message RepeatedIntegers {
1160- repeated int64 integers = 1 ;
1161- }
1162-
1163- message Range {
1164- optional double lt = 1 ;
1165- optional double gt = 2 ;
1166- optional double gte = 3 ;
1167- optional double lte = 4 ;
1168- }
1169-
1170- message DatetimeRange {
1171- optional google.protobuf.Timestamp lt = 1 ;
1172- optional google.protobuf.Timestamp gt = 2 ;
1173- optional google.protobuf.Timestamp gte = 3 ;
1174- optional google.protobuf.Timestamp lte = 4 ;
1175- }
1176-
1177- message GeoBoundingBox {
1178- GeoPoint top_left = 1 ; // north-west corner
1179- GeoPoint bottom_right = 2 ; // south-east corner
1180- }
1181-
1182- message GeoRadius {
1183- GeoPoint center = 1 ; // Center of the circle
1184- float radius = 2 ; // In meters
1185- }
1186-
1187- message GeoLineString {
1188- repeated GeoPoint points = 1 ; // Ordered sequence of GeoPoints representing the line
1189- }
1190-
1191- // For a valid GeoPolygon, both the exterior and interior GeoLineStrings must consist of a minimum of 4 points.
1192- // Additionally, the first and last points of each GeoLineString must be the same.
1193- message GeoPolygon {
1194- GeoLineString exterior = 1 ; // The exterior line bounds the surface
1195- repeated GeoLineString interiors = 2 ; // Interior lines (if present) bound holes within the surface
1196- }
1197-
1198- message ValuesCount {
1199- optional uint64 lt = 1 ;
1200- optional uint64 gt = 2 ;
1201- optional uint64 gte = 3 ;
1202- optional uint64 lte = 4 ;
1203- }
1204-
12051068// ---------------------------------------------
12061069// -------------- Points Selector --------------
12071070// ---------------------------------------------
@@ -1229,12 +1092,6 @@ message PointStruct {
12291092 optional Vectors vectors = 4 ;
12301093}
12311094
1232-
1233- message GeoPoint {
1234- double lon = 1 ;
1235- double lat = 2 ;
1236- }
1237-
12381095// ---------------------------------------------
12391096// ----------- Measurements collector ----------
12401097// ---------------------------------------------
0 commit comments