Skip to content

Commit

Permalink
fix: correct index type of inverted index (#2715)
Browse files Browse the repository at this point in the history
before we had only Scalar/Vector for `IndexType`,
now we've added concrete types for it, so let it be `Inverted`

Signed-off-by: BubbleCal <bubble-cal@outlook.com>
  • Loading branch information
BubbleCal authored Aug 9, 2024
1 parent 2a4d22b commit 1ee119c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/lance-index/src/scalar/inverted/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ impl Index for InvertedIndex {
}

fn index_type(&self) -> crate::IndexType {
crate::IndexType::Scalar
crate::IndexType::Inverted
}

async fn calculate_included_frags(&self) -> Result<RoaringBitmap> {
Expand Down

0 comments on commit 1ee119c

Please sign in to comment.