-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add SearchRequest/Response proto and schema proto
Signed-off-by: Shuyi Zhang <[email protected]> Signed-off-by: amberzsy <[email protected]>
- Loading branch information
Showing
97 changed files
with
4,080 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
syntax = "proto3"; | ||
|
||
package org.opensearch.common.proto; | ||
option java_multiple_files = true; | ||
option java_outer_classname = "CommonProto"; | ||
|
||
message IntArray{ | ||
repeated int32 values = 1; | ||
} | ||
|
||
message LongArray{ | ||
repeated int64 values = 1; | ||
} | ||
|
||
message FloatArray{ | ||
repeated float values = 1; | ||
} | ||
|
||
message DoubleArray{ | ||
repeated double values = 1; | ||
} | ||
|
||
message StringArray{ | ||
repeated string values = 1; | ||
} | ||
|
||
message BytesArray{ | ||
repeated bytes values = 1; | ||
} | ||
|
||
message BoolArray{ | ||
repeated bool values = 1; | ||
} | ||
|
||
/** | ||
FieldValue: | ||
description: A field value. | ||
type: | ||
- boolean | ||
- 'null' | ||
- number | ||
- object | ||
- string | ||
*/ | ||
message MultiTypeValue{ | ||
oneof value{ | ||
GeneralNumber number = 1; | ||
string string_value = 2; | ||
bytes bytes_value = 3; | ||
bool bool_value = 4; | ||
} | ||
} | ||
|
||
message GeneralNumber { | ||
oneof value{ | ||
int32 int_value = 1; | ||
int64 long_value = 2; | ||
float float_value = 3; | ||
double double_value = 4; | ||
} | ||
} |
44 changes: 44 additions & 0 deletions
44
server/src/main/proto/server/search/aggregation_breakdown.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* | ||
Schemas of _core.search category | ||
Schemas of _core.search category | ||
The version of the OpenAPI document: 1.0.0 | ||
Generated by OpenAPI Generator: https://openapi-generator.tech | ||
*/ | ||
|
||
syntax = "proto3"; | ||
|
||
package org.opensearch.search.proto; | ||
option java_multiple_files = true; | ||
|
||
|
||
|
||
message AggregationBreakdown { | ||
|
||
float build_aggregation = 361010835; | ||
|
||
float build_aggregation_count = 412657185; | ||
|
||
float build_leaf_collector = 535791328; | ||
|
||
float build_leaf_collector_count = 104325424; | ||
|
||
float collect = 412573995; | ||
|
||
float collect_count = 44823112; | ||
|
||
float initialize = 334220177; | ||
|
||
float initialize_count = 300716962; | ||
|
||
float post_collection = 107493477; | ||
|
||
float post_collection_count = 44264979; | ||
|
||
float reduce = 398002843; | ||
|
||
float reduce_count = 234521846; | ||
|
||
} |
35 changes: 35 additions & 0 deletions
35
server/src/main/proto/server/search/aggregation_profile.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
Schemas of _core.search category | ||
Schemas of _core.search category | ||
The version of the OpenAPI document: 1.0.0 | ||
Generated by OpenAPI Generator: https://openapi-generator.tech | ||
*/ | ||
|
||
syntax = "proto3"; | ||
|
||
package org.opensearch.search.proto; | ||
option java_multiple_files = true; | ||
|
||
|
||
import "server/search/aggregation_breakdown.proto"; | ||
import "server/search/aggregation_profile_debug.proto"; | ||
|
||
message AggregationProfile { | ||
|
||
AggregationBreakdown breakdown = 286857698; | ||
|
||
string description = 113933319; | ||
|
||
// Time unit for nanoseconds | ||
float time_in_nanos = 94097879; | ||
|
||
string type = 3575610; | ||
|
||
AggregationProfileDebug debug = 95458899; | ||
|
||
repeated AggregationProfile children = 48913922; | ||
|
||
} |
77 changes: 77 additions & 0 deletions
77
server/src/main/proto/server/search/aggregation_profile_debug.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
/* | ||
Schemas of _core.search category | ||
Schemas of _core.search category | ||
The version of the OpenAPI document: 1.0.0 | ||
Generated by OpenAPI Generator: https://openapi-generator.tech | ||
*/ | ||
|
||
syntax = "proto3"; | ||
|
||
package org.opensearch.search.proto; | ||
option java_multiple_files = true; | ||
|
||
|
||
import "server/search/aggregation_profile_delegate_debug_filter.proto"; | ||
|
||
message AggregationProfileDebug { | ||
|
||
float segments_with_multi_valued_ords = 175102879; | ||
|
||
string collection_strategy = 208226316; | ||
|
||
float segments_with_single_valued_ords = 242809759; | ||
|
||
float total_buckets = 138939957; | ||
|
||
float built_buckets = 64814330; | ||
|
||
string result_strategy = 84288173; | ||
|
||
bool has_filter = 191100096; | ||
|
||
string delegate = 282451334; | ||
|
||
AggregationProfileDebug delegate_debug = 27647772; | ||
|
||
float chars_fetched = 505847418; | ||
|
||
float extract_count = 278565935; | ||
|
||
float extract_ns = 214678084; | ||
|
||
float values_fetched = 373640892; | ||
|
||
float collect_analyzed_ns = 371454153; | ||
|
||
float collect_analyzed_count = 519275104; | ||
|
||
float surviving_buckets = 510424761; | ||
|
||
float ordinals_collectors_used = 276182857; | ||
|
||
float ordinals_collectors_overhead_too_high = 528686757; | ||
|
||
float string_hashing_collectors_used = 344532608; | ||
|
||
float numeric_collectors_used = 290973279; | ||
|
||
float empty_collectors_used = 267779101; | ||
|
||
repeated string deferred_aggregators = 268219033; | ||
|
||
float segments_with_doc_count_field = 303272184; | ||
|
||
float segments_with_deleted_docs = 312342887; | ||
|
||
repeated AggregationProfileDelegateDebugFilter filters = 317676550; | ||
|
||
float segments_counted = 186950737; | ||
|
||
float segments_collected = 339150187; | ||
|
||
string map_reducer = 531896345; | ||
|
||
} |
28 changes: 28 additions & 0 deletions
28
server/src/main/proto/server/search/aggregation_profile_delegate_debug_filter.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
Schemas of _core.search category | ||
Schemas of _core.search category | ||
The version of the OpenAPI document: 1.0.0 | ||
Generated by OpenAPI Generator: https://openapi-generator.tech | ||
*/ | ||
|
||
syntax = "proto3"; | ||
|
||
package org.opensearch.search.proto; | ||
option java_multiple_files = true; | ||
|
||
|
||
|
||
message AggregationProfileDelegateDebugFilter { | ||
|
||
float results_from_metadata = 132154472; | ||
|
||
string query = 107944136; | ||
|
||
string specialized_for = 208110253; | ||
|
||
float segments_counted_in_constant_time = 474566367; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
Schemas of _core.search category | ||
Schemas of _core.search category | ||
The version of the OpenAPI document: 1.0.0 | ||
Generated by OpenAPI Generator: https://openapi-generator.tech | ||
*/ | ||
|
||
syntax = "proto3"; | ||
|
||
package org.opensearch.search.proto; | ||
option java_multiple_files = true; | ||
|
||
|
||
|
||
message Collector { | ||
|
||
string name = 3373707; | ||
|
||
string reason = 398093757; | ||
|
||
// Time unit for nanoseconds | ||
float time_in_nanos = 94097879; | ||
|
||
repeated Collector children = 48913922; | ||
|
||
} |
23 changes: 23 additions & 0 deletions
23
server/src/main/proto/server/search/date_decay_function.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
Schemas of _common.query_dsl category | ||
Schemas of _common.query_dsl category | ||
The version of the OpenAPI document: 1.0.0 | ||
Generated by OpenAPI Generator: https://openapi-generator.tech | ||
*/ | ||
|
||
syntax = "proto3"; | ||
|
||
package org.opensearch.search.proto; | ||
option java_multiple_files = true; | ||
|
||
|
||
//import "server/search/multi_value_mode.proto"; | ||
|
||
message DateDecayFunction { | ||
|
||
// MultiValueMode multi_value_mode = 466997881; | ||
|
||
} |
45 changes: 45 additions & 0 deletions
45
server/src/main/proto/server/search/date_range_query.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/* | ||
Schemas of _common.query_dsl category | ||
Schemas of _common.query_dsl category | ||
The version of the OpenAPI document: 1.0.0 | ||
Generated by OpenAPI Generator: https://openapi-generator.tech | ||
*/ | ||
|
||
syntax = "proto3"; | ||
|
||
package org.opensearch.search.proto; | ||
option java_multiple_files = true; | ||
|
||
|
||
import "server/search/range_relation.proto"; | ||
import "google/protobuf/wrappers.proto"; | ||
|
||
message DateRangeQuery { | ||
|
||
// Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score. | ||
.google.protobuf.FloatValue boost = 93922211; | ||
|
||
.google.protobuf.StringValue name = 91108202; | ||
|
||
RangeRelation relation = 17565189; | ||
|
||
string gt = 3309; | ||
|
||
string gte = 102680; | ||
|
||
string lt = 3464; | ||
|
||
string lte = 107485; | ||
|
||
string from = 3151786; | ||
|
||
string to = 3707; | ||
|
||
string format = 195037195; | ||
|
||
string time_zone = 36848094; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
Schemas of _common.query_dsl category | ||
Schemas of _common.query_dsl category | ||
The version of the OpenAPI document: 1.0.0 | ||
Generated by OpenAPI Generator: https://openapi-generator.tech | ||
*/ | ||
// UNSUPPORTED | ||
syntax = "proto3"; | ||
|
||
package org.opensearch.search.proto; | ||
option java_multiple_files = true; | ||
|
||
|
||
message DecayFunction { | ||
|
||
// MultiValueMode multi_value_mode = 466997881; | ||
|
||
} |
23 changes: 23 additions & 0 deletions
23
server/src/main/proto/server/search/decay_function_base.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
Schemas of _common.query_dsl category | ||
Schemas of _common.query_dsl category | ||
The version of the OpenAPI document: 1.0.0 | ||
Generated by OpenAPI Generator: https://openapi-generator.tech | ||
*/ | ||
|
||
syntax = "proto3"; | ||
|
||
package org.opensearch.search.proto; | ||
option java_multiple_files = true; | ||
|
||
|
||
//import "server/search/multi_value_mode.proto"; | ||
|
||
message DecayFunctionBase { | ||
|
||
// MultiValueMode multi_value_mode = 466997881; | ||
|
||
} |
Oops, something went wrong.