@@ -44,7 +44,7 @@ pub async fn add(add_req: &mut SearchItemAddReq, funs: &TardisFunsInst, ctx: &Ta
44
44
"{} {} {} {}" ,
45
45
add_req. title. as_str( ) ,
46
46
pinyin_vec. clone( ) . into_iter( ) . map( |pinyin| pinyin. chars( ) . next( ) . unwrap_or_default( ) ) . join( "" ) ,
47
- generate_word_combinations_with_symbol( content , vec![ "-" , "_" ] ) . join( " " ) ,
47
+ generate_word_combinations_with_symbol( add_req . title . as_str ( ) , vec![ "-" , "_" ] ) . join( " " ) ,
48
48
generate_word_combinations( pinyin_vec) . join( " " )
49
49
) ) ) ;
50
50
} else {
@@ -55,7 +55,7 @@ pub async fn add(add_req: &mut SearchItemAddReq, funs: &TardisFunsInst, ctx: &Ta
55
55
generate_word_combinations_with_length( content, 1 ) . join( " " ) ,
56
56
generate_word_combinations_with_length( content, 2 ) . join( " " ) ,
57
57
generate_word_combinations_with_length( content, 3 ) . join( " " ) ,
58
- generate_word_combinations_with_symbol( content , vec![ "-" , "_" ] ) . join( " " ) ,
58
+ generate_word_combinations_with_symbol( add_req . title . as_str ( ) , vec![ "-" , "_" ] ) . join( " " ) ,
59
59
generate_word_combinations( pinyin_vec) . join( " " )
60
60
) ) ) ;
61
61
}
@@ -133,7 +133,7 @@ pub async fn modify(tag: &str, key: &str, modify_req: &mut SearchItemModifyReq,
133
133
"{} {} {} {}" ,
134
134
title,
135
135
pinyin_vec. clone( ) . into_iter( ) . map( |pinyin| pinyin. chars( ) . next( ) . unwrap_or_default( ) ) . join( "" ) ,
136
- generate_word_combinations_with_symbol( content , vec![ "-" , "_" ] ) . join( " " ) ,
136
+ generate_word_combinations_with_symbol( title . as_str ( ) , vec![ "-" , "_" ] ) . join( " " ) ,
137
137
generate_word_combinations( pinyin_vec) . join( " " )
138
138
) ) ) ;
139
139
} else {
@@ -144,7 +144,7 @@ pub async fn modify(tag: &str, key: &str, modify_req: &mut SearchItemModifyReq,
144
144
generate_word_combinations_with_length( content, 1 ) . join( " " ) ,
145
145
generate_word_combinations_with_length( content, 2 ) . join( " " ) ,
146
146
generate_word_combinations_with_length( content, 3 ) . join( " " ) ,
147
- generate_word_combinations_with_symbol( content , vec![ "-" , "_" ] ) . join( " " ) ,
147
+ generate_word_combinations_with_symbol( title . as_str ( ) , vec![ "-" , "_" ] ) . join( " " ) ,
148
148
generate_word_combinations( pinyin_vec) . join( " " )
149
149
) ) ) ;
150
150
}
0 commit comments