mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-29 15:01:10 +00:00
92a386277b
* [REFACTORING]Rename whitespace_tokenizer to tag_tokenizer for registration Name representing its purpose is preferred. * Add lindera-tantivy to plume-model's dependencies * Install lindera-tantivy * Add SearchTokenizerConfig struct * Add search tokenizers to config option * Use CONFIG for tokenizers * Use enum to hold tokenizer config instead of initializing on config phase * Use guard instead of duplicate default values * Use as_deref() instead of guard * Move SearchTokenizer from plume-models to plume-models::search::tokenizer * Rename SearchTokenizer to TokenizerKind * Define SearchTokenierConfig::determine_tokenizer() * Use determine_tokenizer in SearchTokenizerConfig::init() * Pass tokenizer config to Searcher methods * Add LowerCase filter to Lindera tokenizer * Add test for Lindera tokenizer * Define SEARCH_LANG env to specify tokenizers set * Run cargo fmt * Make Lindera tokenizer optional * Fix typos
26 lines
492 B
TOML
26 lines
492 B
TOML
[package]
|
|
name = "plume-cli"
|
|
version = "0.4.0"
|
|
authors = ["Plume contributors"]
|
|
edition = "2018"
|
|
|
|
[[bin]]
|
|
name = "plm"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
clap = "2.33"
|
|
dotenv = "0.14"
|
|
rpassword = "4.0"
|
|
|
|
[dependencies.diesel]
|
|
features = ["r2d2", "chrono"]
|
|
version = "*"
|
|
|
|
[dependencies.plume-models]
|
|
path = "../plume-models"
|
|
|
|
[features]
|
|
postgres = ["plume-models/postgres", "diesel/postgres"]
|
|
sqlite = ["plume-models/sqlite", "diesel/sqlite"]
|
|
search-lindera = ["plume-models/search-lindera"]
|