mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2025-01-25 04:08:08 +00:00
f0846ff546
* Make the search index creation during migration respect SEARCH_INDEX * Make the search subcommand respect it too
10 lines
336 B
SQL
10 lines
336 B
SQL
-- Your SQL goes here
|
|
--#!|conn: &Connection, path: &Path| {
|
|
--#! use std::env::var;
|
|
--#! let mut pb = Path::new(&var("SEARCH_INDEX")
|
|
--#! .unwrap_or_else(|_|"search_index".to_owned())).to_path_buf();
|
|
--#! let searcher = super::search::Searcher::create(&pb)?;
|
|
--#! searcher.fill(conn)?;
|
|
--#! searcher.commit();
|
|
--#! Ok(())
|
|
--#!}
|