[FEAT MERGE] Full-text Search Index + [CP]Adaptive DAS Group Rescan + Json Multi-Value Index
Co-authored-by: saltonz <saltonzh@gmail.com> Co-authored-by: pe-99y <315053752@qq.com> Co-authored-by: JinmaoLi <ljm.csmaster@gmail.com>
This commit is contained in:
@ -135,7 +135,10 @@ enum ObNameTypeClass
|
||||
|
||||
enum ObMatchAgainstMode {
|
||||
NATURAL_LANGUAGE_MODE = 0,
|
||||
BOOLEAN_MODE = 1
|
||||
NATURAL_LANGUAGE_MODE_WITH_QUERY_EXPANSION = 1,
|
||||
BOOLEAN_MODE = 2,
|
||||
WITH_QUERY_EXPANSION = 3,
|
||||
MAX_MATCH_AGAINST_MODE = 4,
|
||||
};
|
||||
|
||||
#define IS_JOIN(type) \
|
||||
@ -652,6 +655,25 @@ ObTMSegmentArray<T, max_block_size, BlockAllocatorT, auto_free,
|
||||
this->set_tenant_id(MTL_ID());
|
||||
}
|
||||
|
||||
inline const ObString &ob_match_against_mode_str(const ObMatchAgainstMode mode)
|
||||
{
|
||||
static const ObString ma_mode_str[] =
|
||||
{
|
||||
"NATURAL LANGUAGE MODE",
|
||||
"NATURAL LANGUAGE MODE WITH QUERY EXPANSION",
|
||||
"BOOLEAN MODE",
|
||||
"WITH QUERY EXPANSION",
|
||||
"UNKNOWN MATCH MODE"
|
||||
};
|
||||
|
||||
if (OB_LIKELY(mode >= ObMatchAgainstMode::NATURAL_LANGUAGE_MODE)
|
||||
&& OB_LIKELY(mode < ObMatchAgainstMode::MAX_MATCH_AGAINST_MODE)) {
|
||||
return ma_mode_str[mode];
|
||||
} else {
|
||||
return ma_mode_str[ObMatchAgainstMode::MAX_MATCH_AGAINST_MODE];
|
||||
}
|
||||
}
|
||||
|
||||
static bool is_fixed_length(ObObjType type) {
|
||||
bool is_fixed = true;
|
||||
ObObjTypeClass tc = ob_obj_type_class(type);
|
||||
|
||||
Reference in New Issue
Block a user