Skip to content

Commit

Permalink
chore: rename varient
Browse files Browse the repository at this point in the history
Signed-off-by: Zhenchi <[email protected]>
  • Loading branch information
zhongzc committed Dec 5, 2023
1 parent ccac231 commit c05c99e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/index/src/inverted_index/search/index_apply.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ pub enum IndexNotFoundStrategy {
#[default]
ReturnEmpty,

/// Return the full range of indices.
ReturnFullRange,
/// Ignore the index and continue.
Ignore,

/// Throw an error.
ThrowError,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ impl IndexApplier for PredicatesIndexApplier {
IndexNotFoundStrategy::ReturnEmpty => {
return Ok(vec![]);
}
IndexNotFoundStrategy::ReturnFullRange => {
IndexNotFoundStrategy::Ignore => {
continue;
}
IndexNotFoundStrategy::ThrowError => {
Expand Down Expand Up @@ -335,7 +335,7 @@ mod tests {
let indices = applier
.apply(
SearchContext {
index_not_found_strategy: IndexNotFoundStrategy::ReturnFullRange,
index_not_found_strategy: IndexNotFoundStrategy::Ignore,
},
&mut mock_reader,
)
Expand Down

0 comments on commit c05c99e

Please sign in to comment.