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:
Zhenchi
2024-07-09 04:07:34 +08:00
committed by GitHub
parent a70a6af9c6
commit b83f00958f
20 changed files with 3454 additions and 432 deletions
+3
View File
@@ -80,4 +80,7 @@ message Column {
// Extension for ColumnDataType.
ColumnDataTypeExtension datatype_extension = 6;
// Additional column options.
ColumnOptions options = 7;
}
+24
View File
@@ -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;
}
+4
View File
@@ -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 {
+4
View File
@@ -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; }