From d00e24b73440a70a78cd235669e08c620f722f89 Mon Sep 17 00:00:00 2001 From: au70ma70n <168219140+au70ma70n@users.noreply.github.com> Date: Thu, 24 Jul 2025 15:28:52 -0500 Subject: [PATCH 1/2] Update search_documents to support fuzzy search change the WHERE clause to include the following fuzzy searches content ILIKE '%' || search_query || '%' file_name ILIKE '%' || search_query || '%' --- infra/postgres/01-schema.sql | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/infra/postgres/01-schema.sql b/infra/postgres/01-schema.sql index ec5d225..b85cfe3 100644 --- a/infra/postgres/01-schema.sql +++ b/infra/postgres/01-schema.sql @@ -281,8 +281,11 @@ AS $$ ) as rn FROM document_search_results WHERE - content_vector @@ plainto_tsquery('simple', search_query) - AND (path_pattern IS NULL OR path LIKE path_pattern) + ( + content_vector @@ plainto_tsquery('simple', search_query) + OR content ILIKE '%' || search_query || '%' + OR file_name ILIKE '%' || search_query || '%' + ) AND (path_pattern IS NULL OR path LIKE path_pattern) AND (agent_pattern IS NULL OR agent_id LIKE agent_pattern) AND (project_name IS NULL OR project = project_name) AND (start_date IS NULL OR "timestamp" >= start_date) From 0d6690905cd514c612533f05cdc988c2551896f0 Mon Sep 17 00:00:00 2001 From: guervild <11190755+guervild@users.noreply.github.com> Date: Wed, 6 Aug 2025 12:19:47 +0200 Subject: [PATCH 2/2] updated env.example with HASURA's var --- env.example | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/env.example b/env.example index 860678c..2013719 100644 --- a/env.example +++ b/env.example @@ -5,6 +5,12 @@ POSTGRES_USER=nemesis RABBITMQ_PASSWORD=Qwerty12345 RABBITMQ_USER=nemesis + +# You can change the password used by HASURA. If not defined a default password will be used. +# Example: +# HASURA_ADMIN_SECRET=Qwerty12345 + + # NEMESIS_URL is used when building hyperlinks for findings and Apprise alerts. # If you change the port Nemesis listens on using NEMESIS_PORT (below), ensure this URL's port matches. # If using a host/domain name, a FQDN (with a top level domain) is recommended.