Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
b41sh committed Oct 16, 2024
1 parent a719e9c commit e3b6581
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/query/ee/tests/it/inverted_index/index_refresh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,14 +154,6 @@ async fn test_fuse_do_refresh_inverted_index() -> Result<()> {
field_ids.insert(1);
let index_record = IndexRecordOption::WithFreqsAndPositions;

let index_reader = InvertedIndexReader::create(
dal.clone(),
need_position,
has_score,
tokenizer_manager,
block_meta.row_count,
);

let queries = vec![
("rust".to_string(), vec![0, 1]),
("java".to_string(), vec![2]),
Expand All @@ -183,8 +175,15 @@ async fn test_fuse_do_refresh_inverted_index() -> Result<()> {
let (query, fuzziness, tokenizer_manager) =
create_inverted_index_query(&inverted_index_info)?;

let index_reader = InvertedIndexReader::create(
dal.clone(),
need_position,
has_score,
tokenizer_manager,
block_meta.row_count,
);

let matched_rows = index_reader
.clone()
.do_filter(
&settings,
query.box_clone(),
Expand Down

0 comments on commit e3b6581

Please sign in to comment.