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 fd2c95999d
commit 02b3d82c60
No known key found for this signature in database
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,