filtered_universe accepts index and txn instead of SearchContext

This commit is contained in:
Louis Dureuil
2024-04-09 12:03:03 +02:00
parent 7476ad6599
commit b4deb9b8db
5 changed files with 12 additions and 8 deletions

View File

@@ -49,7 +49,7 @@ fn main() -> Result<(), Box<dyn Error>> {
let start = Instant::now();
let mut ctx = SearchContext::new(&index, &txn);
let universe = filtered_universe(&ctx, &None)?;
let universe = filtered_universe(ctx.index, ctx.txn, &None)?;
let docs = execute_search(
&mut ctx,