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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user