Re-enable summary weight in search (#5871)
* re-enable summary weighting in search * prioritize tokens/drop tokens thresh
This commit is contained in:
@@ -109,28 +109,25 @@ impl Default for RequestConfig {
|
||||
}
|
||||
|
||||
fn default_query_by() -> Vec<String> {
|
||||
// [
|
||||
// "name",
|
||||
// "indexed_name",
|
||||
// "slug",
|
||||
// "author",
|
||||
// "indexed_author",
|
||||
// "summary",
|
||||
// ]
|
||||
["name", "indexed_name", "slug", "author", "indexed_author"]
|
||||
.into_iter()
|
||||
.map(str::to_string)
|
||||
.collect()
|
||||
[
|
||||
"name",
|
||||
"indexed_name",
|
||||
"slug",
|
||||
"author",
|
||||
"indexed_author",
|
||||
"summary",
|
||||
]
|
||||
.into_iter()
|
||||
.map(str::to_string)
|
||||
.collect()
|
||||
}
|
||||
|
||||
fn default_query_by_weights() -> Vec<u8> {
|
||||
// vec![15, 15, 10, 3, 3, 1]
|
||||
vec![15, 15, 10, 3, 3]
|
||||
vec![15, 15, 10, 3, 3, 1]
|
||||
}
|
||||
|
||||
fn default_prefix() -> Vec<bool> {
|
||||
// vec![true, true, true, true, true, true]
|
||||
vec![true, true, true, true, true]
|
||||
vec![true, true, true, true, true, true]
|
||||
}
|
||||
|
||||
const fn default_prioritize_exact_match() -> bool {
|
||||
@@ -142,13 +139,13 @@ const fn default_prioritize_num_matching_fields() -> bool {
|
||||
}
|
||||
|
||||
const fn default_prioritize_token_positions() -> bool {
|
||||
// true
|
||||
false
|
||||
true
|
||||
// false
|
||||
}
|
||||
|
||||
const fn default_drop_tokens_threshold() -> usize {
|
||||
// 0
|
||||
1
|
||||
0
|
||||
// 1
|
||||
}
|
||||
|
||||
const fn default_max_candidates() -> usize {
|
||||
|
||||
Reference in New Issue
Block a user