From d8bba00099768051de668bdeda0a2f8b896eb7a2 Mon Sep 17 00:00:00 2001 From: Remi Dettai Date: Mon, 9 Dec 2024 16:08:51 +0100 Subject: [PATCH] Forgotten staging file --- quickwit/quickwit-query/src/query_ast/wildcard_query.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quickwit/quickwit-query/src/query_ast/wildcard_query.rs b/quickwit/quickwit-query/src/query_ast/wildcard_query.rs index 2d9a9a7efba..145e5a45bd1 100644 --- a/quickwit/quickwit-query/src/query_ast/wildcard_query.rs +++ b/quickwit/quickwit-query/src/query_ast/wildcard_query.rs @@ -69,7 +69,7 @@ fn unescape_with_final_wildcard(phrase: &str) -> anyhow::Result { .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 { @@ -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), };