diff --git a/pillar/api/search/queries.py b/pillar/api/search/queries.py index 6ece0114..9a304025 100644 --- a/pillar/api/search/queries.py +++ b/pillar/api/search/queries.py @@ -48,7 +48,7 @@ def nested_bool(must: list, should: list, terms: dict) -> Search: return search -def do_search(query: str, terms: dict) -> dict: +def do_node_search(query: str, terms: dict) -> dict: """ Given user query input and term refinements search for public published nodes diff --git a/pillar/api/search/routes.py b/pillar/api/search/routes.py index 19a8cd1e..5c91b5df 100644 --- a/pillar/api/search/routes.py +++ b/pillar/api/search/routes.py @@ -39,7 +39,7 @@ def _term_filters() -> dict: def search_nodes(): searchword = _valid_search() terms = _term_filters() - data = queries.do_search(searchword, terms) + data = queries.do_node_search(searchword, terms) return jsonify(data)