Lyu Zizheng
12/02/2024, 4:00 PMconst searchParams = {
q: query || '*',
include_fields: [
'merchant_name',
'product_name',
],
query_by: 'merchant_name,product_name',
query_by_weights: '3,3',
text_match_type: 'sum_score',
prioritize_num_matching_fields: false,
prioritize_exact_match: true,
typos: true,
min_len_2typo: 5,
min_len_1typo: 3,
num_typos: 2,
drop_tokens_threshold: 1,
};