From c7c7162311fd8b80f447833aa5d1720e6925d59d Mon Sep 17 00:00:00 2001 From: admin Date: Thu, 27 Nov 2025 15:35:46 +0100 Subject: [PATCH] meilisearch missing function fix --- agent_repo.py | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/agent_repo.py b/agent_repo.py index 08f9dc6..4c6ec2e 100644 --- a/agent_repo.py +++ b/agent_repo.py @@ -1027,13 +1027,13 @@ def meili_catalog_search(q: str, limit: int = 10) -> List[dict]: idx = meili_get_index(REPO_CATALOG_MEILI_INDEX) if not idx: return [] try: - #res = idx.search(q, {"limit": limit}) + res = idx.search(q, {"limit": limit}) # Gebruik ALTIJD de injectie: - res = meili_search_fn( - q, - limit=limit, - filter={"repo_full": st.owner_repo, "branch": st.branch_base} - ) + #res = meili_search_fn( + # q, + # limit=limit, + # filter={"repo_full": st.owner_repo, "branch": st.branch_base} + #) return res.get("hits", []) except Exception as e: logger.warning("WARN:agent_repo:meili_catalog_search: %s", e) @@ -1562,14 +1562,14 @@ def meili_search(owner_repo: Optional[str], branch: str, q: str, limit: int = 10 cli = get_meili() if not cli: return [] try: - #idx = cli.index(meili_index_name(owner_repo, branch)) - #res = idx.search(q, {"limit": limit}) + idx = cli.index(meili_index_name(owner_repo, branch)) + res = idx.search(q, {"limit": limit}) # Gebruik ALTIJD de injectie: - res = meili_search_fn( - q, - limit=limit, - filter={"repo_full": st.owner_repo, "branch": st.branch_base} - ) + #res = meili_search_fn( + # q, + # limit=limit, + # filter={"repo_full": st.owner_repo, "branch": st.branch_base} + #) return res.get("hits", []) except Exception as e: logger.warning("WARN:agent_repo:meili_search failed: %s", e)