Skip to content

Commit dc17959

Browse files
committed
Update default values
Signed-off-by: Jin Hai <haijin.chn@gmail.com>
1 parent e60baa5 commit dc17959

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/common/default_values.cppm

+2-1
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,9 @@ export {
155155
constexpr SizeT DBT_COMPACTION_S = DEFAULT_BLOCK_CAPACITY;
156156

157157
// default query option parameter
158-
constexpr u32 DEFAULT_FULL_TEXT_OPTION_TOP_N = 10;
158+
constexpr u32 DEFAULT_MATCH_TEXT_OPTION_TOP_N = 10;
159159
constexpr u32 DEFAULT_MATCH_TENSOR_OPTION_TOP_N = 10;
160+
constexpr u32 DEFAULT_FUSION_OPTION_TOP_N = 100;
160161

161162
constexpr SizeT DEFAULT_BUFFER_MANAGER_SIZE = 4 * 1024lu * 1024lu * 1024lu; // 4Gib
162163
constexpr std::string_view DEFAULT_BUFFER_MANAGER_SIZE_STR = "4GB"; // 4Gib

src/executor/operator/physical_fusion.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ void PhysicalFusion::ExecuteRRFWeighted(const Map<u64, Vector<UniquePtr<DataBloc
118118
Vector<UniquePtr<DataBlock>> &output_data_block_array) const {
119119
SizeT num_children = 2 + other_children_.size();
120120
SizeT rank_constant = 60;
121-
SizeT topn = 100;
121+
SizeT topn = DEFAULT_FUSION_OPTION_TOP_N;
122122
Vector<float> weights;
123123
if (fusion_expr_->options_.get() != nullptr) {
124124
if (auto it = fusion_expr_->options_->options_.find("window_size"); it != fusion_expr_->options_->options_.end()) {

src/planner/bound_select_statement.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ SharedPtr<LogicalNode> BoundSelectStatement::BuildPlan(QueryContext *query_conte
222222
}
223223
match_node->top_n_ = top_n_option;
224224
} else {
225-
match_node->top_n_ = DEFAULT_FULL_TEXT_OPTION_TOP_N;
225+
match_node->top_n_ = DEFAULT_MATCH_TEXT_OPTION_TOP_N;
226226
}
227227

228228
SearchDriver search_driver(column2analyzer, default_field);

0 commit comments

Comments
 (0)