aboutsummaryrefslogtreecommitdiff
path: root/src/backend/search.rs
diff options
context:
space:
mode:
authorlukeflo2024-10-19 23:06:19 +0200
committerlukeflo2024-10-19 23:06:19 +0200
commitf58527652547061e1349864c41d8daf5a1017a6e (patch)
tree36c6567f71ef7dd9db36a457227fbfdbb72fd2bb /src/backend/search.rs
parent5114820b9733bfb4daeedaef4f892ba9f5f023a0 (diff)
parentcf6a8d0c25bba1ee767c1dcc945cfbb577dbd13c (diff)
downloadbibiman-f58527652547061e1349864c41d8daf5a1017a6e.tar.gz
bibiman-f58527652547061e1349864c41d8daf5a1017a6e.zip
Merge branch 'value-parsing-and-hayagriva'
Sorting and other stuff implemented
Diffstat (limited to 'src/backend/search.rs')
-rw-r--r--src/backend/search.rs23
1 files changed, 12 insertions, 11 deletions
diff --git a/src/backend/search.rs b/src/backend/search.rs
index f9062c8..65d97d7 100644
--- a/src/backend/search.rs
+++ b/src/backend/search.rs
@@ -114,17 +114,18 @@ mod tests {
#[test]
fn test_vector_join() {
- let bibvec: EntryTableItem = EntryTableItem::new(
- "Author",
- "Title",
- "1999",
- "article",
- "hello, bye",
- "author_1999",
- "An abstract with multiple sentences. Here is the second",
- "https://www.bibiman.org",
- "/home/file/path.pdf",
- );
+ let bibvec: EntryTableItem = EntryTableItem {
+ authors: "Author".to_string(),
+ short_author: "".to_string(),
+ title: "Title".to_string(),
+ year: "1999".to_string(),
+ pubtype: "article".to_string(),
+ keywords: "hello, bye".to_string(),
+ citekey: "author_1999".to_string(),
+ abstract_text: "An abstract with multiple sentences. Here is the second".to_string(),
+ doi_url: "https://www.bibiman.org".to_string(),
+ filepath: "/home/file/path.pdf".to_string(),
+ };
let joined_vec = BibiSearch::convert_to_string(&bibvec);