chore: restore the typing signature for fuzzy_term_query (#261)

master
Caleb Hattingh 2024-05-03 23:35:44 +02:00 committed by GitHub
parent 983364b3a5
commit a14649f103
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 11 additions and 0 deletions

View File

@ -205,6 +205,17 @@ class Query:
def all_query() -> Query: def all_query() -> Query:
pass 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 @staticmethod
def phrase_query(schema: Schema, field_name: str, words: list[Union[str, tuple[int, str]]], slop: int = 0) -> Query: def phrase_query(schema: Schema, field_name: str, words: list[Union[str, tuple[int, str]]], slop: int = 0) -> Query:
pass pass