FTS store bigrams in kv rather than index

This commit is contained in:
mdecimus
2023-12-04 10:23:10 +01:00
parent 7e94a08067
commit a7acc67cf1
8 changed files with 203 additions and 117 deletions

View File

@@ -29,7 +29,10 @@ use std::io::Read;
use ::store::Store;
use store::backend::{elastic::ElasticSearchStore, rocksdb::RocksDbStore};
use store::{
backend::{elastic::ElasticSearchStore, rocksdb::RocksDbStore},
FtsStore,
};
use utils::config::Config;
pub struct TempDir {
@@ -72,8 +75,8 @@ pub async fn store_tests() {
//let db: Store = PostgresStore::open(&Config::new(&config_file).unwrap())
//let db: Store = MysqlStore::open(&Config::new(&config_file).unwrap())
let db: Store = RocksDbStore::open(&config).await.unwrap().into();
//let fts_store = FtsStore::from(db.clone());
let fts_store = ElasticSearchStore::open(&config).await.unwrap().into();
let fts_store = FtsStore::from(db.clone());
//let fts_store = ElasticSearchStore::open(&config).await.unwrap().into();
if insert {
db.destroy().await;