From b00d8c97c6c52a15c1758c0f032abb73c420faa2 Mon Sep 17 00:00:00 2001 From: Caleb Hattingh Date: Fri, 3 May 2024 22:20:00 +0200 Subject: [PATCH] chore: restore the typing signature for fuzzy_term_query This was lost in PR #234. --- tantivy/tantivy.pyi | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tantivy/tantivy.pyi b/tantivy/tantivy.pyi index 131557e9..3934b627 100644 --- a/tantivy/tantivy.pyi +++ b/tantivy/tantivy.pyi @@ -205,6 +205,17 @@ class Query: def all_query() -> Query: pass + @staticmethod + def fuzzy_term_query( + schema: Schema, + field_name: str, + text: str, + distance: int = 1, + transposition_cost_one: bool = True, + prefix=False, + ) -> Query: + pass + @staticmethod def phrase_query(schema: Schema, field_name: str, words: list[Union[str, tuple[int, str]]], slop: int = 0) -> Query: pass