2019-04-29 16:30:20 +02:00
|
|
|
-- Your SQL goes here
|
|
|
|
--#!|conn: &Connection, path: &Path| {
|
2019-11-03 17:51:10 +01:00
|
|
|
--#! use std::env::var;
|
|
|
|
--#! let mut pb = Path::new(&var("SEARCH_INDEX")
|
|
|
|
--#! .unwrap_or_else(|_|"search_index".to_owned())).to_path_buf();
|
2019-04-29 16:30:20 +02:00
|
|
|
--#! let searcher = super::search::Searcher::create(&pb)?;
|
|
|
|
--#! searcher.fill(conn)?;
|
|
|
|
--#! searcher.commit();
|
|
|
|
--#! Ok(())
|
|
|
|
--#!}
|