This commit is contained in:
harmj0y
2025-08-19 15:39:44 -07:00
2 changed files with 11 additions and 2 deletions
+6
View File
@@ -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.
+5 -2
View File
@@ -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)