Skip to content

Commit

Permalink
Forgotten staging file
Browse files Browse the repository at this point in the history
  • Loading branch information
rdettai committed Dec 9, 2024
1 parent 13f87c8 commit d8bba00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions quickwit/quickwit-query/src/query_ast/wildcard_query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ fn unescape_with_final_wildcard(phrase: &str) -> anyhow::Result<String> {
.scan(State::Normal, |state, c| {
if *saw_wildcard {
return Some(Some(Err(anyhow!(
"Wildcard iquery contains wildcard in non final position"
"Wildcard query contains wildcard in non final position"
))));
}
match state {
Expand Down Expand Up @@ -185,7 +185,7 @@ impl BuildTantivyAst for WildcardQuery {
let (_, term) = match self.extract_prefix_term(schema, tokenizer_manager) {
Ok(res) => res,
Err(InvalidQuery::FieldDoesNotExist { .. }) if self.lenient => {
return Ok(crate::MatchAllOrNone::MatchNone.into())
return Ok(TantivyQueryAst::match_none())
}
Err(e) => return Err(e),
};
Expand Down

0 comments on commit d8bba00

Please sign in to comment.