Skip to content

Commit

Permalink
fix: fix typing in app.query module
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael0202 committed May 15, 2024
1 parent 616c657 commit 2ef3c7e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def build_search_query(
config: IndexConfig,
filter_query_builder: ElasticsearchQueryBuilder,
sort_by: str | None = None,
) -> Query:
) -> Search:
"""Build an elasticsearch_dsl Query.
:param q: the user raw query
Expand All @@ -226,7 +226,7 @@ def build_search_query(
:param config: the index configuration to use
:param filter_query_builder: luqum elasticsearch query builder
:param sort_by: sorting key, defaults to None (=relevance-based sorting)
:return: the built Query
:return: the built Search query
"""
filter_query: list[JSONType]
if q is None:
Expand Down Expand Up @@ -299,7 +299,7 @@ def build_completion_query(


def execute_query(
query: Query,
query: Search,
result_processor: BaseResultProcessor,
page: int,
page_size: int,
Expand Down

0 comments on commit 2ef3c7e

Please sign in to comment.