feat: add fulltext options for column (#179)
* feat: add fulltext options for column Signed-off-by: Zhenchi <zhongzc_arch@outlook.com> * feat: use string instead Signed-off-by: Zhenchi <zhongzc_arch@outlook.com> * chore: polish Signed-off-by: Zhenchi <zhongzc_arch@outlook.com> * chore: copy every where Signed-off-by: Zhenchi <zhongzc_arch@outlook.com> * doc: polish Signed-off-by: Zhenchi <zhongzc_arch@outlook.com> * extract as message Signed-off-by: Zhenchi <zhongzc_arch@outlook.com> --------- Signed-off-by: Zhenchi <zhongzc_arch@outlook.com>
This commit is contained in:
@@ -80,4 +80,7 @@ message Column {
|
||||
|
||||
// Extension for ColumnDataType.
|
||||
ColumnDataTypeExtension datatype_extension = 6;
|
||||
|
||||
// Additional column options.
|
||||
ColumnOptions options = 7;
|
||||
}
|
||||
|
||||
@@ -139,3 +139,27 @@ message DecimalTypeExtension {
|
||||
int32 precision = 1;
|
||||
int32 scale = 2;
|
||||
}
|
||||
|
||||
// Additional options for the column.
|
||||
message ColumnOptions {
|
||||
// Supported keys:
|
||||
// "fulltext":
|
||||
// A JSON encoded string containing full-text search options for the column.
|
||||
//
|
||||
// The fulltext options JSON structure:
|
||||
// {
|
||||
// "enable": bool, // Indicates whether full-text search is
|
||||
// // enabled for the column.
|
||||
//
|
||||
// "analyzer": string, // The language-specific text analyzer to
|
||||
// // use for indexing and searching text.
|
||||
// // Supported values: ["English" (Default), "Chinese"].
|
||||
//
|
||||
// "case-sensitive": bool // Indicates whether the text should be treated
|
||||
// // as case-sensitive during full-text search.
|
||||
// }
|
||||
//
|
||||
// Example:
|
||||
// "fulltext": "{\"enable\": true, \"analyzer\": \"English\", \"case-sensitive\": false}"
|
||||
map<string, string> options = 1;
|
||||
}
|
||||
|
||||
@@ -169,8 +169,12 @@ message ColumnDef {
|
||||
bytes default_constraint = 4;
|
||||
SemanticType semantic_type = 5;
|
||||
string comment = 6;
|
||||
|
||||
// Extension for ColumnDataType.
|
||||
ColumnDataTypeExtension datatype_extension = 7;
|
||||
|
||||
// Additional column options.
|
||||
ColumnOptions options = 8;
|
||||
}
|
||||
|
||||
message AddColumnLocation {
|
||||
|
||||
@@ -31,8 +31,12 @@ message ColumnSchema {
|
||||
string column_name = 1;
|
||||
ColumnDataType datatype = 2;
|
||||
SemanticType semantic_type = 3;
|
||||
|
||||
// Extension for ColumnDataType.
|
||||
ColumnDataTypeExtension datatype_extension = 4;
|
||||
|
||||
// Additional column options.
|
||||
ColumnOptions options = 5;
|
||||
}
|
||||
|
||||
message Row { repeated Value values = 1; }
|
||||
|
||||
Reference in New Issue
Block a user