Skip to content

Commit

Permalink
Fix summary text reverse bug (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
Endle authored Nov 21, 2022
1 parent 6a27e9c commit fef8aad
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
12 changes: 9 additions & 3 deletions fire_seq_search_server/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,19 +1,25 @@
[package]
name = "fire_seq_search_server"
version = "0.0.19"
version = "0.0.20"
edition = "2021"


# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
# Http Client
tokio = { version = "1", features = ["full"] }
warp = "0.3"
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] } # https://serde.rs/derive.html

# Search Engine
tantivy = "0.18"


log = "0.4.0"
env_logger = "0.9.0"
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] } # https://serde.rs/derive.html

clap = { version = "3.0.14", features = ["derive"] }
urlencoding = "2.1.0"
jieba-rs = { version = "0.6.6" }
Expand Down
1 change: 1 addition & 0 deletions fire_seq_search_server/src/post_query/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ fn safe_generate_brief_for_too_long_segment(remained: &str, too_long_segment_rem
// let mut remain_chars = remained.chars();
let front: String = remained.chars().take(too_long_segment_remained_len).collect();
let end: String = remained.chars().rev().take(too_long_segment_remained_len).collect();
let end = end.chars().rev().collect();
vec![front, end].join("...")
}

Expand Down

0 comments on commit fef8aad

Please sign in to comment.