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
+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;
}